:root {
  --color-red-500: oklch(.637 .237 25.331);
  --color-green-50: oklch(.982 .018 155.826);
  --color-green-200: oklch(.925 .084 155.995);
  --color-green-500: oklch(.723 .219 149.579);
  --color-green-600: oklch(.627 .194 149.214);
  --color-green-700: oklch(.527 .154 150.069);
  --color-green-900: oklch(.393 .095 152.535);
  --color-blue-50: oklch(.97 .014 254.604);
  --color-blue-100: oklch(.932 .032 255.585);
  --color-blue-200: oklch(.882 .059 254.128);
  --color-blue-300: oklch(.809 .105 251.813);
  --color-blue-400: oklch(.707 .165 254.624);
  --color-blue-500: oklch(.623 .214 259.815);
  --color-blue-600: oklch(.546 .245 262.881);
  --color-blue-700: oklch(.488 .243 264.376);
  --color-blue-800: oklch(.424 .199 265.638);
  --color-blue-900: oklch(.379 .146 265.522);
  --color-gray-50: oklch(.985 .002 247.839);
  --color-gray-100: oklch(.967 .003 264.542);
  --color-gray-200: oklch(.928 .006 264.531);
  --color-gray-300: oklch(.872 .01 258.338);
  --color-gray-500: oklch(.551 .027 264.364);
  --color-gray-600: oklch(.446 .03 256.802);
  --color-gray-700: oklch(.373 .034 259.733);
  --color-white: #fff;
}

.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.whatsapp-btn img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.whatsapp-tooltip {
  position: absolute;
  bottom: 70px;
  right: 0;
  background-color: #25D366;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.whatsapp-btn:hover .whatsapp-tooltip {
  opacity: 1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

body {
  background-color: #F9FAFB;
}

/* ====== MENU ====== */
.navbar {
  width: 100%;
  position: fixed;
  top: 0;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1535px;
  margin: 0 auto;
  padding: 16px 32px;
}

.volver-servicios {
  display: inline-block;
  line-height: 24px;
  color: var(--color-blue-600);
  font-weight: 400;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.volver-servicios i {
  margin-right: 0.5rem;
}

.volver-servicios:hover {
  color: #003d9e;
}


/* ====== HERO SECTION ====== */
.hero {
  height: 400px;
  margin-top: 56px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  color: white;
}


.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #107086;
  opacity: 0.8;
  z-index: 1;
}


.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1535px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-content h2 {
  font-size: 60px;
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 60px;
  color: #fff;
}

.hero-content p {
  max-width: 770px;
  line-height: 28px;
  font-size: 20px;
  font-weight: 400;
  color: #fff;
}

.detalle-servicio {
  padding: 64px 32px;
  max-width: 1535px;
  margin: 0 auto;
}

.detalle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  max-width: 1472px;
  margin: 0 auto;
  gap: 48px;
}

.detalle-contenido {
  display: flex;
  flex-direction: column;
}

.detalle-box {
  background: var(--color-white);
  padding: 32px;
  margin-bottom: 32px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}


.detalle-box h3 {
  font-weight: 400;
  line-height: 32px;
  font-size: 24px;
  color: var(--color-blue-900);
  margin-bottom: 24px;
}

.detalle-box ul {
  list-style: none;
  padding-left: 0;
}

.detalle-box li {
  line-height: 24px;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-gray-700);
}

.detalle-box li i {
  color: #155DFC;
  margin-right: 0.5rem;
}

.cita-header {
  background: #107086;
  padding: 24px;
  max-width: 712px;
  border-radius: 14px 14px 0 0;
}

.cita-header h3 {
  color: var(--color-white);
  font-size: 24px;
  line-height: 32px;
  font-weight: 400;
  margin-bottom: 24px;
}

/* ===== BOTONES PRESENCIAL / VIRTUAL ===== */
.cita-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cita-button {
  padding: 16px;
  border-radius: 12px;
  background: white;
  color: #107086;
  border: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all .3s ease;
}

/* ===== Hover ===== */
.cita-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.cita-button.active {
  background: #13B6CB;
  color: white;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ===== CONTENEDOR BLANCO INFERIOR ===== */
.cita-form {
  background: var(--color-white);
  padding: 24px;
  max-width: 712px;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-section {
  animation: fadeIn .3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.fecha-animada {
  animation: fadeIn 0.3s ease;
}

/* ===== GRUPOS DE FORMULARIO ===== */
.form-group {
  margin-bottom: 16px;
}

/* ===== LABEL ===== */
.cita-label {
  color: var(--color-gray-700);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

/* ===== SELECT / INPUT ===== */
.cita-select,
.cita-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-gray-300);
  border-radius: 10px;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cita-select:focus,
.cita-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
  outline: none;
}

.asterisco-rojo {
  color: #dc2626;
}

.hidden {
  display: none !important;
}

.horarios {
  margin-top: 20px;
  margin-bottom: 24px;
  animation: fadeIn .3s ease;
}

.label-horario {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--color-gray-700);
  margin-bottom: 8px;
}

.horas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}

@media(min-width: 640px) {
  .horas-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media(min-width: 768px) {
  .horas-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.horas-grid button {
  padding: 8px 12px;
  border: none;
  background: var(--color-gray-100);
  color: var(--color-gray-700);
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s ease;
}

.horas-grid button:hover {
  background: var(--color-gray-200);
}

.horas-grid button.active {
  background: var(--color-blue-600);
  color: var(--color-white);
}

.info-cupo {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
}

#datosPersonalesPresencial,
#datosPersonalesVirtual {
  animation: fadeIn 0.3s ease;
}

.form-group.grid-cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.resumen-cita {
  background: #eff6ff;
  border-radius: 0.5rem;
  border: 1px solid #bfdbfe;
  padding: 16px;
  margin-bottom: 16px;
}

.resumen-cita h4 {
  font-size: 16px;
  color: var(--color-blue-900);
  line-height: 24px;
  margin-bottom: 8px;
  font-weight: 400;
}

.resumen-cita p {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--color-gray-700);
  margin: 4px 0px;
}

.cita-button-submit {
  padding: 16px 72px;
  border-radius: 0.5rem;
  background-color: var(--color-blue-600);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  outline: none;
}

.cita-button-submit:hover {
  background-color: var(--color-blue-700);
  transform: scale(1.05);
}

.cita-button-call {
  padding: 16px 24px;
  border-radius: 0.5rem;
  background-color: var(--color-green-600);
  color: var(--color-white);
  font-weight: 400;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  outline: none;
}

.cita-button-call:hover {
  background-color: var(--color-green-700);
  transform: scale(1.05);
}

.form-group.one-button {
  display: flex;
  justify-content: center;
}


/* Contenedor general */
.confirmacion {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.confirmacion.activo {
  opacity: 1;
  transform: scale(1);
}

.confirmacion .card {
  background: var(--color-green-50);
  border: 2px solid var(--color-green-200);
  border-radius: 16px;
  padding: 32px;
  margin-top: 2rem;
  text-align: center;
}

.confirmacion .icono i {
  width: 64px;
  height: 64px;
  background: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.confirmacion .icono i.fa-circle-check {
  font-size: 30px;
  color: var(--color-white);
  display: block;
  line-height: 65px;
  text-align: center;
}

.confirmacion h3 {
  font-size: 24px;
  font-weight: 400;
  color: var(--color-green-900);
  margin-bottom: 8px;
}

.confirmacion p {
  color: #047857;
}


.info-extra {
  display: flex;
  gap: 1rem;
}

.info-box {
  flex: 1;
  background-color: #13B6CB;
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.info-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.info-subtitulo {
  font-size: 18px;
  line-height: 27px;
  margin-bottom: 8px;
  font-weight: 500;
  color: #ffffff;
}

.info-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--color-blue-100);
}

/* ANIMACION */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1400px) {

  .nav-content {
    max-width: 1280px;
  }

  .hero-content {
    max-width: 1280px;
  }

  .detalle-servicio {
    max-width: 1280px;
  }

  .detalle-grid {
    max-width: 1216px;
  }

}

@media (max-width: 1200px) {

  .nav-content {
    max-width: 1024px;
  }

  .hero-content {
    max-width: 1024px;
  }

  .detalle-servicio {
    max-width: 1024px;
  }

  .detalle-grid {
    max-width: 960px;
  }

  .form-group.grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {

  .nav-content {
    max-width: 768px;
  }

  .hero-content {
    max-width: 768px;
  }

  .detalle-servicio {
    max-width: 768px;
  }

  .detalle-grid {
    max-width: 720px;
    grid-template-columns: 1fr;
  }

  .form-group.grid-cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  .nav-content {
    max-width: 640px;
  }

  .hero-content {
    max-width: 640px;
  }

  .detalle-servicio {
    max-width: 640px;
  }

  .detalle-grid {
    max-width: 592px;
  }

  .form-group.grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .info-extra {
    flex-direction: column;
  }

  .hero-content h2 {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 40px;
    color: var(--color-white);
  }

  .hero-content p {
    line-height: 28px;
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    width: 90%;
  }
}

.horas-grid button.ocupado,
.horas-grid button.ocupado:hover,
.horas-grid button.ocupado:focus {
  background: var(--color-gray-300) !important;
  color: var(--color-gray-500) !important;
  cursor: not-allowed !important;
  opacity: .6 !important;
  pointer-events: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.horas-grid button.ocupado:hover {
  background: var(--color-gray-300) !important;
}