@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Plus Jakarta Sans", sans-serif;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #fff;
  color: #333;
}

main {
  background-image: url("../src/img/plantel1.JPG");
  background-position: center;
  background-size: cover;
  position: relative;
  min-height: 90dvh;
  padding: 60px 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  z-index: 0;
}
main > * {
  position: relative;
  z-index: 1;
}

/*Header y Footer*/
header,
footer {
  width: 100%;
  background: #011e41;
  color: #fff;
  opacity: 0.95;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

header {
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  padding: 0 20px;
  letter-spacing: 1px;
  position: relative;
}

header img {
  width: 180px;
}

header h1 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  font-size: 2.2rem;
  white-space: nowrap;
}

footer {
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  padding: 0 10px;
  flex-wrap: wrap;
}

footer p {
  text-align: center;
}

/*Formulario de registro*/
.registro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  background-color: #fff;
  padding: 2rem 1rem;
  border-radius: 10px;
  width: 360px;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px,
    rgba(0, 0, 0, 0.22) 0px 10px 10px;
}

.registro h2 {
  color: #333;
  font-size: 1.6rem;
  text-align: center;
}

.registro .container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 0 13px;
  width: 100%;
}

.registro .div-inputs input {
  height: 40px;
  background-color: #eef3f7;
  border: 1px solid #cfdce7;
  width: 100%;
  font-size: 15px;
  padding: 0 10px;
  color: #2a3d66;
  border-radius: 9px;
}

.registro button {
  background-color: #13235b;
  color: #fff;
  border: none;
  padding: 14px 0;
  font-size: 15px;
  cursor: pointer;
  border-radius: 10px;
  margin-top: 7px;
  transition: 0.3s ease-out;
}

.registro button:hover {
  background-color: #182e7c;
}

.registro .div-inputs {
  position: relative;
}

.registro .div-inputs i {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: #444;
}

/* CARD */
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 26px 20px;
  margin-bottom: 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: none;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* FORM */
.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

label {
  margin-bottom: 6px;
  font-weight: 500;
  color: #13235b;
}

select,
input[type="radio"] {
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #cfd8dc;
  margin-bottom: 10px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

select:focus,
input[type="radio"]:focus {
  border-color: #13235b;
  box-shadow: 0 0 6px rgba(19, 35, 91, 0.3);
  outline: none;
}

input[type="radio"] {
  width: auto;
  margin-right: 6px;
  vertical-align: middle;
}

.form-group > div label {
  display: inline-block;
  margin-right: 18px;
  margin-bottom: 0;
  font-weight: normal;
}

/* BOTONES */
.btn {
  background: #13235b;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 26px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  margin-top: 15px;
}
.btn:hover {
  background: #04001e;
  transform: scale(1.05);
}

/* OCULTOS */
.hidden {
  display: none;
}

/* RESULTADOS */
.career-result {
  background: #f6f8fa;
  border-radius: 16px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  padding: 20px 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform 0.22s, background 0.22s;
}
.career-result:hover {
  transform: scale(1.04);
  background: #e9f5ff;
}

.career-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.career-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e3e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.25s;
}
.career-result:hover .career-icon {
  transform: rotate(6deg) scale(1.05);
}
.career-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.career-title {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  color: #13235b;
  margin-right: 8px;
}

/* PROGRESS */
.progress-circle {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  position: relative;
}
.progress-circle svg {
  width: 64px;
  height: 64px;
}
.progress-circle .circle-bg {
  stroke: #e3e8f0;
}
.progress-circle .circle {
  transition: stroke-dashoffset 0.5s;
  stroke-width: 10px;
  stroke-linecap: round;
}
.progress-circle text {
  font-size: 18px;
  fill: #13235b;
  font-family: "Segoe UI", Arial, sans-serif;
  dominant-baseline: middle;
}

.progress-bar-container {
  margin: 20px 0;
  text-align: center;
}
.progress-text {
  margin-bottom: 5px;
  color: #fff;
  font-weight: bold;
}
.progress {
  width: 100%;
  height: 12px;
  background: #e3e8f0;
  border-radius: 6px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: #00e1ff;
  transition: width 0.4s ease;
}
.hidden {
  display: none;
}

/* Responsividad */
@media (max-width: 970px) {
  header {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    padding: 15px 10px;
    text-align: center;
  }

  header img {
    width: 140px;
    margin-bottom: 8px;
  }

  header h1 {
    position: static;
    transform: none;
    font-size: 1.5rem;
    white-space: normal;
  }
}

@media (max-width: 600px) {
  .career-icon {
    width: 54px;
    height: 54px;
  }
  .career-icon img {
    width: 32px;
    height: 32px;
  }
  .progress-circle {
    width: 48px;
    height: 48px;
  }
  .progress-circle svg {
    width: 48px;
    height: 48px;
  }

  header h1 {
    font-size: 1.5rem;
  }

  main{
    min-height: 80dvh;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.4rem;
  }

  .registro {
    width: 300px;
  }

  .registro h2 {
    font-size: 1.1rem;
  }

  .registro .div-inputs input {
    font-size: 13px;
    height: 36px;
  }

  .registro button {
    font-size: 14px;
    padding: 8px 0;
  }

  footer p {
    font-size: 14px;
  }
}
