@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap');

/* =========================
   Variables CSS
========================= */
:root {
  --primary-color: #007bff;
  --secondary-color: #fab013;
  --dark-orange: #e69a00;

  --text-color-dark: #222;
  --text-color-medium: #333;
  --text-color-light: #444;
  --text-color-lighter: #555;
  --text-color-lightest: #666;

  --bg-white: #fff;
  --bg-light-gray: #f8f8f8;
  --bg-light-blue: #eef6ff;
  --bg-extra-light-blue: #e9f5ff;

  --border-color-light: #ddd;

  --section-color: #ffcf2f;
  --section-color-dos: #c8f9ef;
  --secondary-gradient: linear-gradient(90deg, #ffe2b5, #ffc56c, #ffae3d);

  --shadow-extra-light: 0 2px 10px rgba(0,0,0,.05);
  --shadow-light: 0 4px 15px rgba(0,0,0,.03);
  --shadow-medium: 0 5px 15px rgba(0,0,0,.05);
  --shadow-hover: 0 8px 20px rgba(0,0,0,.08);
  --shadow-button: 0 3px 10px rgba(250,176,19,.2);
  --shadow-button-hover: 0 5px 15px rgba(250,176,19,.3);
  --shadow-footer: 0 -5px 15px rgba(0,0,0,.08);

  --font-family-poppins: "Poppins", sans-serif;

  --border-radius-small: 5px;
  --border-radius-medium: 8px;
  --border-radius-large: 10px;
  --border-radius-extra-large: 12px;
  --border-radius-round: 50%;

  --color-black-main: var(--text-color-dark);
  --color-gold-main: var(--secondary-color);

  --acento-guinda: #8B1C3F;           /* guinda institucional */
  --acento-guinda-suave: rgba(139,28,63,.10);
  --texto-titulo: #1f2937;            /* gris muy oscuro */
  --texto-parrafo: #374151;           /* gris sobrio */
  --borde-glass: rgba(255,255,255,.22);
  --sombra: 0 12px 28px rgba(0,0,0,.10);
  --sombra-hover: 0 18px 45px rgba(0,0,0,.15);
  --radi: 16px;
}

/* =========================
   Base / Reset
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family-poppins);
  font-weight: 300;
}

html,
body {
  overflow-x: hidden;
  height: auto;
  line-height: 1.6;
  color: var(--text-color-medium);
  background-color: var(--bg-light-gray);
  width: 100%;
}
.cerrar-responsive {
  display: none;
}

/* Cursor personalizado */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  transition: transform .06s ease-out;
}
#custom-cursor img {
  width: 50px;
  height: auto;
}

/* =========================
   Header / Nav (desktop)
========================= */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.98);
  box-shadow: var(--shadow-extra-light);
  transition: all .4s ease-in-out;
}

.logo-circulo {
  max-width: 12rem;
  height: auto;
  transition: max-width .3s ease;
  border-radius: var(--border-radius-medium);
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  font-size: 1rem;
  font-weight: 500;
  align-items: center;
}

.nav-list li a {
  text-decoration: none;
  color: var(--text-color-light);
  padding: .5rem .8rem;
  border-radius: var(--border-radius-small);
  transition: all .3s ease;
  position: relative;
}
.nav-list li a:hover {
  color: var(--primary-color);
  background-color: var(--bg-extra-light-blue);
}
.nav-list li a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transition: width .3s ease;
}

/* BotÃƒÆ’Ã‚Â³n hamburguesa oculto en desktop */
.abrir-responsive {
  display: none;
}

/* Redes del header ocultas en desktop (solo en menÃƒÆ’Ã‚Âº mÃƒÆ’Ã‚Â³vil) */
.social-icons-dropdown,
.social-icons-dropdown .social-icons {
  display: none;
}


/* =========================
    Hero / Formulario de cita
 ========================= */
.hero-agenda {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 60px 8%;
  background-color: var(--bg-light-gray);
  flex-wrap: wrap;
  margin-top: 120px;
  max-width: 100%;
  gap: 5rem;
}

.hero-right {
  flex: 1 1 520px;
  min-width: 380px;
  max-width: 720px;
  text-align: center;
}

.hero-right h2 {
  margin-top: 50px;
  font-size: clamp(2rem, 4vw, 50px);
  color: #1f2937;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.hero-right h2::before {
  content: '';
  display: inline-block;
  width: 15px;
  height: 15px;
  background-color: #ffc107;
  border-radius: 50%;
}

.hero-right p {
  color: #4b5563;
  font-size: clamp(1rem, 1.5vw, 18px);
  font-weight: 500;
  margin-bottom: 20px;
  text-align: center;
}

/* ====== Formulario compacto ====== */
.form-cita {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* Estado invÃƒÆ’Ã‚Â¡lido: borde rojo fuerte + sombra mÃƒÆ’Ã‚Â¡s notoria */
.is-invalid { 
  border-color: #ef4444; 
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.35); /* subimos opacidad de .12 ÃƒÂ¢Ã¢â‚¬ Ã¢â‚¬â„¢ .35 */
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Si mÃƒÆ’Ã‚Â¡s adelante quisieras mostrar mensajes, mantenemos esto */
.field-error {
  color: #ef4444;
  font-size: 12px;
  margin: 4px 0 0;
}

/* Pulso rojo mÃƒÆ’Ã‚Â¡s evidente */
.invalid-pulse {
  animation: invalidPulse .45s ease;
}

@keyframes invalidPulse {
  0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.00); }
  50%  { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.35); } /* subimos intensidad */
  100% { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.35); }
}

/* Opciones: salto ordenado si no cabe */
.opciones-cita {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.opcion {
  flex: 1 1 240px;
  max-width: 300px;
  padding: 10px 12px;
  border: 1.25px solid #dbe6f4;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s ease;
}

.opcion img {
  width: 20px;
  height: 20px;
}

.opcion.seleccionada {
  border-color: var(--color-gold-main);
  background: #fefbe8;
}

/* Filas de input alineadas */
.input-email {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  column-gap: 14px;
  row-gap: 12px;
  margin-bottom: 12px;
}

.input-email label {
  width: auto;
  font-size: 15px;
  color: var(--color-black-main);
  font-weight: 500;
}

.input-email input,
.input-email select {
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  outline: none;
  height: 42px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.input-email input:focus,
.input-email select:focus {
  border-color: #89b6ff;
  box-shadow: 0 0 0 3px rgba(0,123,255,.12);
}

/* BotÃƒÆ’Ã‚Â³n compacto y sin estirarse */
.continuar{
  background: var(--secondary-color);
  color:#fff;
  padding:12px 18px;
  border:none;
  border-radius:10px;
  font-weight:600;
  font-size:15px;
  cursor:pointer;
  transition:background .25s ease, transform .08s ease, opacity .2s ease;
  display:inline-flex;
  align-items:center;
  gap:8px;
  line-height:1;
  white-space:nowrap;
  align-self:flex-start;

  /* FUERZA tamaÃƒÆ’Ã‚Â±o compacto */
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
}

.continuar:hover{ background:#ffd501; }
.continuar:active{ transform:translateY(1px); }
.continuar:disabled{ opacity:.85; cursor:not-allowed; }

/* Spinner/Check */
.continuar .icon{ width:18px; height:18px; display:none; }
.continuar.loading .icon.spinner{ display:inline-block; }
.continuar.success .icon.check{ display:inline-block; }

@keyframes spin{ to{ transform:rotate(360deg); } }
.icon.spinner svg{ animation:spin .9s linear infinite; }

/* Mata cualquier regla mÃƒÆ’Ã‚Â³vil que lo ponga 100% */
@media (max-width:768px){
  .continuar{ width:auto !important; max-width:none !important; align-self:flex-start; }
}
@media (max-width:640px){
  .continuar{ width:auto !important; max-width:none !important; align-self:flex-start; }
}
/* =========================
    Responsive Fix
 ========================= */
@media (max-width: 768px) {
  .hero-agenda {
    padding: 30px 16px;
    margin-top: 100px;
    gap: 2rem;
  }

  .hero-right {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
  }

  .input-email {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .input-email input,
  .input-email select {
    width: 100%;
    min-width: 0;
  }

  .opcion {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 14px;
    font-size: 16px;
  }

  .continuar {
    width: 100%;
    max-width: 280px;
    align-self: center;
  }
}

@media (max-width: 400px) {
  .hero-agenda {
    padding: 20px 12px;
    margin-top: 90px;
    gap: 1.5rem;
  }

  .continuar {
    max-width: 260px;
  }
}

/* =========================
    Ofertas - SecciÃƒÆ’Ã‚Â³n y Carrusel
 ========================= */

.seccion-ofertas {
  flex: 1 1 520px;
  min-width: 380px;
  padding: 50px 0 8px;
  background: transparent;
  box-shadow: none;
  position: relative;
  margin-left: 0;
}

.seccion-ofertas h3 {
  margin-top: 50px;
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 600;
  color: var(--color-black-main);
  text-align: center;
}

.carrusel-container {
  position: relative;
  max-width: 1355px;
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(40px, 5vw, 60px);
  overflow: hidden;
}

.carrusel-ofertas {
  display: flex;
  justify-content: flex-start;
  gap: 30px;
  flex-wrap: nowrap;
  overflow: visible;
  padding: 20px 0;
  will-change: transform;
  transition: transform .45s ease;
}

/* Flechas: ocultas por defecto; se activan con .is-active (evita FOUC) */
.seccion-ofertas .carrusel-overlay {
  display: none;
  visibility: hidden;
}
.seccion-ofertas .carrusel-overlay.is-active {
  display: block;
  visibility: visible;
}

.carrusel-arrow {
  position: absolute;
  top: 60%;
  transform: translateY(-50%);
  background-color: transparent;
  color: var(--secondary-color);
  border: none;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 2.3rem;
  z-index: 100;
  transition: transform .3s ease, color .3s ease, opacity .2s ease;
  opacity: 1;
  pointer-events: all;
  box-shadow: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}

/* Flechas mÃƒÆ’Ã‚Â¡s hacia dentro en escritorio */
.carrusel-arrow.left {
  left: 40px;
}

.carrusel-arrow.right {
  right: 40px;
}

.carrusel-arrow:hover {
  color: var(--dark-orange);
  transform: translateY(-50%) scale(1.15);
}

.carrusel-arrow:disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: translateY(-50%) scale(1);
}

/* En mÃƒÆ’Ã‚Â³vil se separan un poco mÃƒÆ’Ã‚Â¡s */
@media (max-width: 768px) {
  .carrusel-arrow {
    width: 34px;
    height: 34px;
    font-size: 1.9rem;
  }

  .carrusel-arrow.left {
    left: 2px;
  }

  .carrusel-arrow.right {
    right: 2px;
  }
}

/* =========================
    Tarjetas Ofertas con Flip
 ========================= */

.oferta {
  width: 280px;
  height: 340px;
  perspective: 1000px;
  background-color: transparent;
  border-radius: var(--border-radius-extra-large);
  flex-shrink: 0;
  cursor: pointer; /* UX: indica que se puede interactuar */
}

.oferta-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .6s ease;
  border-radius: var(--border-radius-extra-large);
  will-change: transform;
  transform: translateZ(0); /* asegura capa propia para suavizar animaciÃƒÆ’Ã‚Â³n */
}

/* Flip: funciona tanto por hover como por click/tap */
.oferta:hover .oferta-inner,
.oferta.tocada .oferta-inner {
  transform: rotateY(180deg) translateZ(0);
}

.oferta-front,
.oferta-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--border-radius-extra-large);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.oferta-front {
  background-color: var(--bg-white);
  color: var(--text-color-medium);
}

.oferta-front img {
  width: 100%;
  height: auto;
  object-fit: cover;
  flex-grow: 1;
  display: block;
  margin-bottom: 0;
}

.oferta-front p {
  width: 100%;
  background-color: var(--secondary-color);
  color: #fff;
  font-size: .95rem;
  padding: 10px 15px;
  margin: 0;
  font-weight: 500;
  text-align: center;
}

.oferta-back {
  background-color: var(--secondary-color);
  color: #fff;
  transform: rotateY(180deg);
  padding: 25px;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
}

.oferta-back h4 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  font-weight: 600;
  width: 100%;
  color: #fff;
}

.oferta-back ul {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
  width: 100%;
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 5px;
  color: #fff;
  font-size: 1rem;
}

.oferta-back ul li {
  font-size: .95rem;
  margin-bottom: 5px;
  position: relative;
  padding-left: 20px;
}

.oferta-back ul li::before {
  content: "ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¢";
  color: #fff;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  position: absolute;
  left: 0;
}

.oferta-back .btn-ver-mas {
  background-color: var(--dark-orange);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--border-radius-medium);
  text-decoration: none;
  margin-top: 15px;
  font-weight: 600;
  transition: background-color .3s ease, transform .2s ease, box-shadow .3s ease;
  box-shadow: var(--shadow-hover);
}


/* 1 sola oferta: track sin transiciÃƒÆ’Ã‚Â³n y centrado; flip activo */
#carrusel-ofertas.carrusel-static {
  transition: none;
  will-change: auto;
  justify-content: center;
}

#carrusel-ofertas.carrusel-static .oferta,
#carrusel-ofertas.carrusel-static .oferta-inner {
  pointer-events: auto;
}

/* =========================
    Responsive
 ========================= */
@media (max-width: 1200px) {
  .hero-agenda .seccion-ofertas {
    flex: 1 1 100%;
    min-width: 100%;
    margin-left: 0;
    padding-top: 20px;                 /* mantiene buen alineado en stack */
  }

  .hero-agenda {
    gap: 1.5rem;
  }

  .form-cita {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  /* Alinea la etiqueta sobre el input */
  .input-email {
    grid-template-columns: 1fr;
    row-gap: 8px; /* Espacio entre label y input */
  }

  .input-email label {
    font-size: 14px;
  }

  .input-email input,
  .input-email select {
    width: 100%;
    font-size: 16px; /* Aumentado */
    height: 44px;     /* Aumentado */
  }

  /* Opciones de cita a ancho completo en mÃƒÆ’Ã‚Â³viles */
  .opcion {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 14px 16px; /* Aumentado */
    font-size: 16px;    /* Aumentado */
  }

  /* BotÃƒÆ’Ã‚Â³n de continuar a ancho completo */
  .continuar {
    width: 100%;
    max-width: 280px; /* Ancho agradable en mÃƒÆ’Ã‚Â³vil */
    align-self: center; /* Centramos el botÃƒÆ’Ã‚Â³n */
  }

  .carrusel-container {
    padding: 0 48px;
  }

  .carrusel-arrow.left {
    left: 8px;
  }

  .carrusel-arrow.right {
    right: 8px;
  }
}



/* =========================
   FilosofÃƒÆ’Ã‚Â­a (glass)
========================= */
/* Contenedor de la secciÃƒÆ’Ã‚Â³n (full-bleed con padding limpio) */
.filosofia-section{
  padding: 4.5rem 0;
  background: transparent;
}

/* Grid responsivo centrado */
.filosofia-bg{
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: clamp(20px, 2.5vw, 28px);
  width: min(1200px, 94%);
  margin: 0 auto;
}

@media (max-width: 1024px){
  .filosofia-bg{ grid-template-columns: repeat(2, minmax(260px, 1fr)); }
}
@media (max-width: 640px){
  .filosofia-bg{ grid-template-columns: 1fr; }
}

/* Tarjeta con ÃƒÂ¢Ã¢â€šÂ¬Ã…â€œglassÃƒÂ¢Ã¢â€šÂ¬Ã‚Â sobrio */
.filosofia-item{
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--borde-glass);
  border-radius: var(--radi);
  box-shadow: var(--sombra);
  padding: 2.25rem 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.filosofia-item:hover{
  transform: translateY(-6px);
  box-shadow: var(--sombra-hover);
  border-color: rgba(139,28,63,.28);
}

/* Icono dentro de ÃƒÂ¢Ã¢â€šÂ¬Ã…â€œmedallÃƒÆ’Ã‚Â³nÃƒÂ¢Ã¢â€šÂ¬Ã‚Â sutil */
.filosofia-icon{
  width: 84px; height: 84px; border-radius: 999px;
  background: var(--acento-guinda-suave);
  display: grid; place-items: center;
  margin-bottom: 1rem;
  transition: transform .28s ease, box-shadow .28s ease;
  box-shadow: inset 0 0 0 1px rgba(139,28,63,.12);
}
.filosofia-item:hover .filosofia-icon{ transform: scale(1.05); }

.filosofia-icon img{
  width: 44px; height: 44px; display: block;
  filter: none; /* mantiene tu SVG guinda intacto */
}

/* TipografÃƒÆ’Ã‚Â­a con jerarquÃƒÆ’Ã‚Â­a sobria */
.filosofia-section h2{
  text-align: center;
  font-weight: 700;
  color: var(--texto-titulo);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  margin-bottom: 1.6rem;
  letter-spacing: .2px;
}

.filosofia-item h3{
  margin: .6rem 0 .4rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--acento-guinda);
}

.filosofia-item p{
  color: var(--texto-parrafo);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 38ch;
  margin: .25rem auto 0;
}

/* Accesibilidad: reduce animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce){
  .filosofia-item,
  .filosofia-icon{ transition: none; }
  .filosofia-item:hover{ transform: none; }
}
/* =========================
   Secciones generales / TÃƒÆ’Ã‚Â­tulos
========================= */
section {
  padding: 6rem 3rem;
  text-align: center;
  margin-bottom: 2.5rem;
  border-radius: var(--border-radius-extra-large);
  box-shadow: var(--shadow-light);
}

h2 {
  font-size: 3.5rem;
  margin-bottom: 3.5rem;
  color: var(--text-color-dark);
  font-weight: 600;
  position: relative;
  padding-bottom: 20px;
}
h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}
h3 {
  font-size: 1.6rem;
  margin-bottom: .8rem;
  color: var(--text-color-medium);
  font-weight: 500;
}

/* =========================
   Servicios
========================= */
#servicios {
  padding: 100px 40px;
  background-color: #FFF9C4;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}
#servicios h2 {
  font-size: 2.5rem;
  color: #2d2d2d;
  margin-bottom: 60px;
  font-weight: 700;
}
.servicio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
}
.servicio div {
  background-color: #f8f8f8;
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,.08);
  transition: transform .3s ease;
}
.servicio div:hover {
  transform: translateY(-6px);
}
.servicio img {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}
.servicio h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}
.servicio p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* =========================
   Especialistas
========================= */
/* DiseÃƒÆ’Ã‚Â±o general */
#especialistas {
  background: var(--bg-light-blue);
  padding: 4rem 1rem 3rem;
}
#especialistas h3 {
  text-align: center;
  color: var(--bg-white);
}

/* Carrusel con flex/grid en mobile, posicionamiento absoluto en desktop */
.cards-rotator {
  --card-w: clamp(280px, 30vw, 340px);
  --card-radius: 18px;
  --gap: 42px;
  --bar-h: 56px;

  max-width: 1120px;
  margin: 0 auto;
  perspective: 1200px;
  position: relative; /* clave para apilar en desktop */
  height: clamp(460px, 62vh, 540px); /* altura para 3D */
}

/* Tarjeta base */
.especialista {
  width: var(--card-w);
  aspect-ratio: 3 / 4;
  border-radius: var(--card-radius);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    z-index 0.2s ease,
    border-color 0.25s ease,
    filter 0.25s ease,
    opacity 0.35s ease;
  will-change: transform, opacity;
  opacity: 0; /* Oculta las tarjetas por defecto */
}
.cards-rotator.cards-loaded .especialista {
  opacity: 1; /* Muestra las tarjetas una vez que el JS las ha posicionado */
}

/* Medios */
.especialista-media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f6f7f9;
}
.especialista img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.02);
  transition: transform 0.4s ease;
}

/* Barra de nombre */
.name-bar {
  position: absolute;
  left: 0; /* Ahora la barra va de borde a borde */
  right: 0; /* Ahora la barra va de borde a borde */
  bottom: 0; /* Se elimina el espacio debajo de la barra */
  height: var(--bar-h);
  padding: 0 14px;
  border-radius: 0 0 var(--card-radius) var(--card-radius); /* Se ajusta el borde para que coincida con la tarjeta */
  display: grid;
  align-items: center;
  background: color-mix(in srgb, #4b5563 90%, transparent); /* Color gris clÃƒÆ’Ã‚Â­nico */
  color: #fff;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  transition: height 0.25s ease, gap 0.25s ease, background 0.25s ease;
}
.name-bar .name-doc {
  margin: 0;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 700;
  white-space: normal; /* Ahora el texto puede envolverse en varias lÃƒÆ’Ã‚Â­neas */
  overflow: visible; /* Asegura que el texto no se oculte */
  text-overflow: clip; /* Evita que el texto sea cortado con puntos suspensivos */
}
.name-bar .role {
  margin: 0;
  font-size: clamp(0.78rem, 0.9vw, 0.85rem);
  opacity: 0.95; /* Ahora el rol siempre es visible */
  max-height: 24px; /* Se asegura de que siempre haya espacio para el rol */
  overflow: hidden;
  transition: none; /* Se elimina la transiciÃƒÆ’Ã‚Â³n de apariciÃƒÆ’Ã‚Â³n */
  color: #e3e9ff;
}

/* Estado de 'hover' */
@media (hover: hover) {
  /* Se eliminÃƒÆ’Ã‚Â³ el efecto de zoom en la imagen al pasar el cursor */
  .especialista:hover img { transform: scale(1.02); }
  /* Se eliminÃƒÆ’Ã‚Â³ el efecto de cambio de tamaÃƒÆ’Ã‚Â±o en la barra de nombre al pasar el cursor */
  .especialista:hover .name-bar {
    height: var(--bar-h);
    gap: 0px;
    background: color-mix(in srgb, #0b1a2b 72%, transparent);
  }
  .especialista:hover .name-bar .role {
    opacity: 0.95;
    max-height: 24px;
  }
}

/* ===== Escritorio: efecto 3D y apilado ===== */
@media (min-width: 821px) {
  .especialista {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    z-index: 1;
  }

  .especialista.is-center {
    transform: translate(-50%, -58%) scale(1.06);
    z-index: 30;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
    border-color: rgba(77, 148, 224, 0.25);
    filter: saturate(1);
  }
  .especialista.is-left {
    transform: translate(calc(-50% - (var(--card-w) + var(--gap))), -42%) scale(0.94);
    z-index: 20;
  }
  .especialista.is-right {
    transform: translate(calc(-50% + (var(--card-w) + var(--gap))), -42%) scale(0.94);
    z-index: 20;
  }
  .especialista.is-back {
    transform: translate(-50%, -28%) scale(0.9);
    z-index: 10;
    filter: saturate(0.9);
    pointer-events: none;
  }

  .cards-rotator.is-stacked .especialista {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 10;
    pointer-events: none;
  }

  .cards-rotator.is-stacked .especialista.especialista-jefe {
    opacity: 1;
    transform: translate(-50%, -58%) scale(1.06);
    z-index: 40;
    pointer-events: auto;
  }
}

/* ===== MÃƒÆ’Ã‚Â³vil: layout limpio con carrusel horizontal ===== */
@media (max-width: 820px) {
  .cards-rotator {
    display: flex; /* Cambiado de grid a flex */
    overflow-x: auto; /* Permite el desplazamiento horizontal */
    -webkit-overflow-scrolling: touch; /* Desplazamiento suave en iOS */
    gap: 18px;
    height: auto;
    perspective: none;
    padding: 0 20px 20px;
    scroll-snap-type: x mandatory; /* Hacemos que se ajuste al centro */
  }

  .cards-rotator .especialista {
    scroll-snap-align: center;
    flex: 0 0 calc(90% - 18px); /* Ancho ajustado para compensar el gap */
    position: relative;
    transform: none;
    max-width: 100%;
    margin: 0;
    z-index: auto;
    filter: none;
    opacity: 1;
    pointer-events: auto;
  }

  .especialista-media {
    aspect-ratio: 3 / 4;
    height: auto;
  }

  .cards-rotator.is-stacked .especialista {
    opacity: 1;
    transform: none;
    z-index: auto;
    pointer-events: auto;
  }
}


/* =========================
   Footer
========================= */
.footer {
  background-color: var(--secondary-color);
  color: var(--text-color-dark);
  padding: 70px 50px 40px; /* +10px arriba, +10px laterales */
  box-shadow: var(--shadow-footer);
  font-size: 15px;
  position: relative;
}

/* Contenedor general */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Tres columnas iguales */
  gap: 80px; /* MÃƒÆ’Ã‚ÂS espacio entre columnas para sensaciÃƒÆ’Ã‚Â³n premium */
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: 0 40px; /* +10px de padding lateral */
}

/* Bloques de sucursales y horarios */
.footer-sucursales {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 20px; /* SeparaciÃƒÆ’Ã‚Â³n interna entre items */
}

.footer-sucursales h4 {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-color-dark);
  letter-spacing: 0.5px; /* Toque elegante */
}

.footer-sucursales .sucursal {
  margin-bottom: 26px;
}

.footer-sucursales strong {
  color: #000;
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

.footer-sucursales p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-color-light);
}

.footer-sucursales a {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
}
.footer-sucursales a:hover {
  text-decoration: underline;
}

/* Redes sociales */
.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 15px;
}

.footer-social h4 {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-color-dark);
}

.social-icons {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}
.social-icons a {
  font-size: 22px;
  color: var(--text-color-medium);
  transition: color 0.3s ease, transform 0.3s ease;
}
.social-icons a:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

/* LÃƒÆ’Ã‚Â­nea inferior */
.footer-bottom {
  grid-column: 1 / -1; /* Ocupar todo el ancho debajo de las columnas */
  text-align: center;
  margin-top: 45px; /* MÃƒÆ’Ã‚Â¡s espacio para separar */
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-color-lightest);
  margin: 0;
  line-height: 1.5;
}

/* Responsivo elegante */
@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr 1fr; /* Dos columnas en tablets */
    gap: 50px;
    text-align: center;
  }
  .footer-sucursales,
  .footer-social {
    align-items: center;
    text-align: center;
  }
}
@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr; /* Una sola columna en mÃƒÆ’Ã‚Â³viles */
    gap: 35px;
    text-align: center;
    padding: 0 20px;
  }
}
/* =========================
   Testimonios (cards)
========================= */
.testimonials-section {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(145deg, #ffffff, #f6f6f6);
}

.testimonials-title {
  font-size: 2.2rem;
  color: #1b1b1b;
  margin-bottom: .5rem;
}

.testimonials-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}

.testimonials-carousel-wrapper {
  position: relative;
  max-width: 100%;
  overflow: hidden; /* oculta el contenido que no estÃƒÆ’Ã‚Â¡ en la vista */
  padding: 1rem 0;
}

.testimonials-track {
  display: flex;
  gap: 2.5rem; /* espacio entre tarjetas */
  padding: 0 1rem;
  transition: transform .4s ease;
  will-change: transform;
}

/* === Tarjetas === */
/* Antes usabas min-width fijo de 320px ÃƒÂ¢Ã¢â‚¬ Ã¢â‚¬â„¢ lo quitamos para que quepan 4 exactas */
.testimonial-card {
  min-width: 0;
  flex: 0 0 calc((100% - (3 * 2.5rem)) / 4); /* 4 columnas exactas */
  border-radius: 20px;
  perspective: 1000px;
  transition: transform .3s ease;
}

.testimonial-card:hover {
  transform: translateY(-10px);
}

/* === Contenedor interior estilo "glass" === */
.testimonial-glass {
  background: rgba(255,255,255,.3);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0,0,0,.1);
  padding: 1rem;
  text-align: center;
  transition: all .3s ease;
}

/* Video responsivo dentro de cada tarjeta */
.testimonial-glass iframe {
  width: 100%;
  aspect-ratio: 16 / 9; /* mantiene proporciÃƒÆ’Ã‚Â³n del video */
  height: auto;
  border-radius: 12px;
  border: none;
  margin-bottom: .75rem;
}

.testimonial-glass p {
  font-size: .95rem;
  color: #333;
}

/* === Botones del carrusel === */
.testimonial-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  background: rgba(255,255,255,.6);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 10;
  transition: background .3s ease;
}

.testimonial-btn:hover {
  background: rgba(255,255,255,.9);
}

.testimonial-left {
  left: 10px;
}

.testimonial-right {
  right: 10px;
}

/* === Estado deshabilitado para flechas en extremos === */
.testimonial-btn[aria-disabled="true"],
.testimonial-btn:disabled {
  opacity: .35;
  pointer-events: none;
}

/* =========================
   Ubicaciones
========================= */
.ubicaciones {
  padding: 100px 40px;
  background-color: #fff;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}
.ubicaciones h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d2d2d;
  margin-bottom: 70px;
}
.fila-ubicaciones {
  display: flex;
  flex-direction: column;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
}
.columna-ubicacion {
  width: 100%;
  background-color: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.contenido-ubicacion {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  align-items: center;
}
.contenido-ubicacion.reverse {
  flex-direction: row-reverse;
}
.ubicacion-info {
  flex: 1.1;
  text-align: left;
  padding: 0 10px;
}
.ubicacion-info h3 {
  font-size: 1.9rem;
  color: #E47C00;
  font-weight: 700;
  margin-bottom: 18px;
}
.direccion,
.telefono {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 12px;
  line-height: 1.8;
}
.ubicacion-info a {
  color: #E47C00;
  text-decoration: none;
  font-weight: 500;
}
.ubicacion-info a:hover {
  text-decoration: underline;
}
.ubicacion-mapa {
  flex: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mapa {
  width: 100%;
  height: 350px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,.1);
}
.ubicacion-info .btn-wp {
  display: inline-block;
  margin-top: 18px;
  background-color: #25D366;
  color: #fff;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color .3s ease, box-shadow .3s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,.2);
}
.btn-wp:hover {
  background-color: #1ebe57;
  color: #fff;
  box-shadow: 0 5px 12px rgba(0,0,0,.25);
  outline: none;
}
.btn-wp i {
  margin-right: 10px;
  color: #fff;
  text-decoration: none;
}


/* =========================
    Hero / Formulario de cita
 ========================= */
.hero-agenda {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 60px 8%;
  background-color: var(--bg-light-gray);
  flex-wrap: wrap;
  margin-top: 120px;
  max-width: 100%;
  gap: 5rem;
}

.hero-right {
  flex: 1 1 520px;
  min-width: 380px;
  max-width: 720px;
  text-align: center;
}

.hero-right h2 {
  margin-top: 50px;
  font-size: clamp(2rem, 4vw, 50px);
  color: #1f2937;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.hero-right h2::before {
  content: '';
  display: inline-block;
  width: 15px;
  height: 15px;
  background-color: #ffc107;
  border-radius: 50%;
}

.hero-right p {
  color: #4b5563;
  font-size: clamp(1rem, 1.5vw, 18px);
  font-weight: 500;
  margin-bottom: 20px;
  text-align: center;
}

/* ====== Formulario compacto ====== */
.form-cita {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Opciones: salto ordenado si no cabe */
.opciones-cita {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.opcion {
  flex: 1 1 240px;
  max-width: 300px;
  padding: 10px 12px;
  border: 1.25px solid #dbe6f4;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s ease;
}

.opcion img {
  width: 20px;
  height: 20px;
}

.opcion.seleccionada {
  border-color: var(--color-gold-main);
  background: #fefbe8;
}

/* Filas de input alineadas */
.input-email {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  column-gap: 14px;
  row-gap: 12px;
  margin-bottom: 12px;
}

.input-email label {
  width: auto;
  font-size: 15px;
  color: var(--color-black-main);
  font-weight: 500;
}

.input-email input,
.input-email select {
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  outline: none;
  height: 42px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.input-email input:focus,
.input-email select:focus {
  border-color: #89b6ff;
  box-shadow: 0 0 0 3px rgba(0,123,255,.12);
}

/* BotÃƒÆ’Ã‚Â³n de agendar */
.continuar {
  background: var(--secondary-color);
  color: #fff;
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background .25s ease, transform .08s ease;
  align-self: flex-start;
  min-width: 200px;
}

.continuar:hover {
  background: #ffd501;
}

.continuar:active {
  transform: translateY(1px);
}

/* =========================
    Responsive Fix
 ========================= */
@media (max-width: 768px) {
  .hero-agenda {
    padding: 30px 16px;
    margin-top: 100px;
    gap: 2rem;
  }

  .hero-right {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
  }

  .input-email {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .input-email input,
  .input-email select {
    width: 100%;
    min-width: 0;
  }

  .opcion {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 14px;
    font-size: 16px;
  }

  .continuar {
    width: 100%;
    max-width: 280px;
    align-self: center;
  }
}

@media (max-width: 400px) {
  .hero-agenda {
    padding: 20px 12px;
    margin-top: 90px;
    gap: 1.5rem;
  }

  .continuar {
    max-width: 260px;
  }
}

/* =========================
    Hero / Formulario de cita
 ========================= */
.hero-agenda {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 60px 8%;
  background-color: var(--bg-light-gray);
  flex-wrap: wrap;
  margin-top: 120px;
  max-width: 100%;
  gap: 5rem;
}

.hero-right {
  flex: 1 1 520px;
  min-width: 380px;
  max-width: 720px;
  text-align: center;
}

.hero-right h2 {
  margin-top: 50px;
  font-size: clamp(2rem, 4vw, 50px);
  color: #1f2937;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.hero-right h2::before {
  content: '';
  display: inline-block;
  width: 15px;
  height: 15px;
  background-color: #ffc107;
  border-radius: 50%;
}

.hero-right p {
  color: #4b5563;
  font-size: clamp(1rem, 1.5vw, 18px);
  font-weight: 500;
  margin-bottom: 20px;
  text-align: center;
}

/* ====== Formulario compacto ====== */
.form-cita {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Opciones: salto ordenado si no cabe */
.opciones-cita {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.opcion {
  flex: 1 1 240px;
  max-width: 300px;
  padding: 10px 12px;
  border: 1.25px solid #dbe6f4;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s ease;
}

.opcion img {
  width: 20px;
  height: 20px;
}

.opcion.seleccionada {
  border-color: var(--color-gold-main);
  background: #fefbe8;
}

/* Filas de input alineadas */
.input-email {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  column-gap: 14px;
  row-gap: 12px;
  margin-bottom: 12px;
}

.input-email label {
  width: auto;
  font-size: 15px;
  color: var(--color-black-main);
  font-weight: 500;
}

.input-email input,
.input-email select {
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  outline: none;
  height: 42px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.input-email input:focus,
.input-email select:focus {
  border-color: #89b6ff;
  box-shadow: 0 0 0 3px rgba(0,123,255,.12);
}

/* BotÃƒÆ’Ã‚Â³n de agendar */
.continuar {
  background: var(--secondary-color);
  color: #fff;
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background .25s ease, transform .08s ease;
  align-self: flex-start;
  min-width: 200px;
}

.continuar:hover {
  background: #ffd501;
}

.continuar:active {
  transform: translateY(1px);
}

/* =========================
    Responsive Fix
 ========================= */
@media (max-width: 768px) {
  .hero-agenda {
    padding: 30px 16px;
    margin-top: 100px;
    gap: 2rem;
  }

  .hero-right {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
  }

  .input-email {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .input-email input,
  .input-email select {
    width: 100%;
    min-width: 0;
  }

  .opcion {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 14px;
    font-size: 16px;
  }

  .continuar {
    width: 100%;
    max-width: 280px;
    align-self: center;
  }
}

@media (max-width: 400px) {
  .hero-agenda {
    padding: 20px 12px;
    margin-top: 90px;
    gap: 1.5rem;
  }

  .continuar {
    max-width: 260px;
  }
}

/* =========================
    Hero / Formulario de cita
 ========================= */
.hero-agenda {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 60px 8%;
  background-color: var(--bg-light-gray);
  flex-wrap: wrap;
  margin-top: 120px;
  max-width: 100%;
  gap: 5rem;
}

.hero-right {
  flex: 1 1 520px;
  min-width: 380px;
  max-width: 720px;
  text-align: center;
}

.hero-right h2 {
  margin-top: 50px;
  font-size: clamp(2rem, 4vw, 50px);
  color: #1f2937;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.hero-right h2::before {
  content: '';
  display: inline-block;
  width: 15px;
  height: 15px;
  background-color: #ffc107;
  border-radius: 50%;
}

.hero-right p {
  color: #4b5563;
  font-size: clamp(1rem, 1.5vw, 18px);
  font-weight: 500;
  margin-bottom: 20px;
  text-align: center;
}

/* ====== Formulario compacto ====== */
.form-cita {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Opciones: salto ordenado si no cabe */
.opciones-cita {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.opcion {
  flex: 1 1 240px;
  max-width: 300px;
  padding: 10px 12px;
  border: 1.25px solid #dbe6f4;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s ease;
}

.opcion img {
  width: 20px;
  height: 20px;
}

.opcion.seleccionada {
  border-color: var(--color-gold-main);
  background: #fefbe8;
}

/* Filas de input alineadas */
.input-email {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  column-gap: 14px;
  row-gap: 12px;
  margin-bottom: 12px;
}

.input-email label {
  width: auto;
  font-size: 15px;
  color: var(--color-black-main);
  font-weight: 500;
}

.input-email input,
.input-email select {
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  outline: none;
  height: 42px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.input-email input:focus,
.input-email select:focus {
  border-color: #89b6ff;
  box-shadow: 0 0 0 3px rgba(0,123,255,.12);
}

/* BotÃƒÆ’Ã‚Â³n de agendar */
.continuar {
  background: var(--secondary-color);
  color: #fff;
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background .25s ease, transform .08s ease;
  align-self: flex-start;
  min-width: 200px;
}

.continuar:hover {
  background: #ffd501;
}

.continuar:active {
  transform: translateY(1px);
}

/* =========================
    Responsive Fix
 ========================= */
@media (max-width: 768px) {
  .hero-agenda {
    padding: 30px 16px;
    margin-top: 100px;
    gap: 2rem;
  }

  .hero-right {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
  }

  .input-email {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .input-email input,
  .input-email select {
    width: 100%;
    min-width: 0;
  }

  .opcion {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 14px;
    font-size: 16px;
  }

  .continuar {
    width: 100%;
    max-width: 280px;
    align-self: center;
  }
}

@media (max-width: 400px) {
  .hero-agenda {
    padding: 20px 12px;
    margin-top: 90px;
    gap: 1.5rem;
  }

  .continuar {
    max-width: 260px;
  }
}

/* =========================
   ReseÃƒÆ’Ã‚Â±as Google (versiÃƒÆ’Ã‚Â³n compacta + mÃƒÆ’Ã‚Â¡s anchas)
========================= */
.google-reviews {
  background: var(--bg-light-gray);
  padding: 50px 16px;
  max-width: 100%;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  margin-top: clamp(48px, 8vh, 96px);
  overflow: hidden;
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 28px;
  gap: 16px;
}

.reviews-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews-info img {
  width: 32px;
  height: 32px;
}

.reviews-info h3 {
  margin: 0;
  font-size: 1rem;
  color: #111827;
}

.rating {
  font-size: .85rem;
  color: #555;
}

.rating strong {
  color: #111;
  font-size: 1rem;
  margin-right: 4px;
}

.rating span:first-of-type {
  color: #fbbf24;
  font-size: 1rem;
  margin-right: 4px;
}

.clinic-tabs {
  display: flex;
  gap: 8px;
}

.clinic-btn {
  background: #e5e7eb;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  color: #111827;
  font-size: .85rem;
}

.clinic-btn.active {
  background: #1a73e8;
  color: #fff;
}

/* Carrusel + Tarjetas - CORREGIDO */
.carousel-container {
  position: relative;
  overflow: visible; /* Cambio crÃƒÆ’Ã‚Â­tico: permite que las flechas se vean */
  margin-top: 24px;
  padding: 0 50px; /* Espacio para las flechas en desktop */
  box-sizing: border-box;
}

.reviews-frame {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Permite que las tarjetas bajen de lÃƒÆ’Ã‚Â­nea */
  padding-bottom: 8px;
  box-sizing: border-box;
  /* Removido el scroll horizontal problemÃƒÆ’Ã‚Â¡tico */
}

.review-card {
  flex: 1 1 280px; /* Base flexible pero con mÃƒÆ’Ã‚Â­nimo */
  max-width: 320px;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 6px 18px rgba(0,0,0,.10), 0 0 16px rgba(255, 193, 7, .18);
}

.review-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-top img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.google-reviews .name {
  margin: 0;
  font-weight: 600;
  font-size: .9rem;
  color: black;
}

.date {
  font-size: .75rem;
  color: #6b7280;
}

.stars {
  color: #fbbf24;
  font-size: 1rem;
}

.comment {
  font-size: .75rem;
  color: #374151;
  line-height: 1.45;
}

/* Flechas carrusel - MEJORADAS */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: transform .15s ease, box-shadow .2s ease;
  z-index: 10; /* Mayor z-index para asegurar visibilidad */
  touch-action: manipulation;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}

/* PaginaciÃƒÆ’Ã‚Â³n */
.reviews-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  user-select: none;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  color: var(--text-color-medium);
  font-weight: 600;
  font-size: .8rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.page-btn:hover:not(.active) {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}

.page-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0,123,255,.25);
}

.page-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

#testimonios.google-reviews {
  margin-top: clamp(32px, 6vh, 96px);
  padding-top: clamp(48px, 7vh, 120px);
}

/* ===================
   Responsive - MEJORADO
=================== */
@media (max-width: 1024px) {
  .carousel-container {
    padding: 0 45px; /* Menos padding en tablet */
  }
  
  .carousel-track {
    justify-content: center;
    gap: 16px;
  }

  .review-card {
    flex: 1 1 320px; /* MÃƒÆ’Ã‚Â¡s ancho en tablet */
    max-width: 450px;
  }
}

@media (max-width: 768px) {
  .reviews-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .reviews-info {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .reviews-info h3 {
    font-size: 0.9rem;
  }

  .clinic-tabs {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }

  .google-reviews {
    padding: 50px 16px;
  }

  .carousel-container {
    padding: 0 40px;
    overflow: visible;
  }

  .reviews-frame {
    overflow: visible; /* CRÃƒÆ’Ã‚ÂTICO: Sin overflow hidden */
    width: 100%;
  }

  /* SOLUCIÃƒÆ’Ã¢â‚¬Å“N MÃƒÆ’Ã¢â‚¬Å“VIL: Sin scroll, tarjetas apiladas verticalmente */
  .carousel-track {
    display: block; /* Cambio de flex a block */
    width: 100%;
    overflow: visible;
    padding: 0;
  }

  .review-card {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px 0; /* SeparaciÃƒÆ’Ã‚Â³n vertical entre tarjetas */
    flex: none; /* Elimina propiedades flex */
  }

  .arrow {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }

  .arrow.left {
    left: 8px;
  }

  .arrow.right {
    right: 8px;
  }
}

/* Para pantallas muy pequeÃƒÆ’Ã‚Â±as */
@media (max-width: 480px) {
  .carousel-container {
    padding: 0 35px;
  }
  
  .google-reviews {
    padding: 40px 12px;
  }
  
  .arrow {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }
  
  .arrow.left {
    left: 4px;
  }

  .arrow.right {
    right: 4px;
  }
}

/* =========================
   Videos (carrusel)
========================= */
.seccion-videos {
  padding: 3rem 1.5rem;
}

/* Vars base (desktop) */
.video-carrusel-wrapper {
  --gap: 16px;              /* espacio entre videos */
  --pad-x: 32px;            /* respiraciÃƒÆ’Ã‚Â³n lateral del wrapper */
  --arrow-size: 44px;       /* tamaÃƒÆ’Ã‚Â±o de flecha */
  --arrow-out: 56px;        /* cuÃƒÆ’Ã‚Â¡nto ÃƒÂ¢Ã¢â€šÂ¬Ã…â€œsaleÃƒÂ¢Ã¢â€šÂ¬Ã‚Â la flecha hacia afuera */

  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: visible;        /* permite que las flechas salgan */
  padding: 0 var(--pad-x);
}

.video-viewport {
  position: relative;
  overflow: hidden;         /* recorta el track */
  width: 100%;
}

.video-track {
  display: flex;
  gap: var(--gap);
  will-change: transform;
  transition: transform .4s ease;
  padding: 0;               /* importante: sin padding aquÃƒÆ’Ã‚Â­ */
  box-sizing: border-box;
}

/* 4 columnas exactas por vista (100% - 3 gaps) / 4 */
.video-slide {
  flex: 0 0 calc((100% - (var(--gap) * 3)) / 4);
  display: flex;
}

.video-slide iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;     /* cambia a 16 / 9 si lo prefieres */
  border: 0;
  border-radius: 12px;
}

/* Flechas SIEMPRE fuera del viewport */
.video-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--arrow-size);
  height: var(--arrow-size);
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,.06);
  font-size: calc(var(--arrow-size) * 0.45);
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: background .2s ease, transform .2s ease;
  /* sombra ligera para legibilidad */
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.video-arrow:hover { background: rgba(0,0,0,.12); transform: translateY(-50%) scale(1.04); }
.video-arrow.left  { left: calc(-1 * var(--arrow-out)); }
.video-arrow.right { right: calc(-1 * var(--arrow-out)); }
.video-arrow:disabled { opacity: .35; cursor: default; }

/* =========================
   Breakpoints
========================= */

/* Tablet: 3 columnas si quieres mantener 4, deja el flex como estÃƒÆ’Ã‚Â¡ */
@media (max-width: 1024px) {
  .video-carrusel-wrapper {
    --pad-x: 24px;
    --arrow-size: 42px;
    --arrow-out: 46px;  /* sigue fuera del contenedor */
  }
}

/* MÃƒÆ’Ã‚Â³vil: 2 por vista y flechas aÃƒÆ’Ã‚Âºn por fuera */
@media (max-width: 760px) {
  .video-carrusel-wrapper {
    --pad-x: 16px;
    --arrow-size: 40px;
    --arrow-out: 28px;  /* ajuste fino: fuera pero cercano al borde */
  }
  .video-slide {
    flex: 0 0 calc((100% - var(--gap)) / 2);
  }
}

/* MÃƒÆ’Ã‚Â³vil chico: mÃƒÆ’Ã‚Â¡s afuera y flechas un poco mÃƒÆ’Ã‚Â¡s chicas */
@media (max-width: 420px) {
  .video-carrusel-wrapper {
    --pad-x: 12px;
    --arrow-size: 36px;
    --arrow-out: 24px;  /* aÃƒÆ’Ã‚Âºn fuera del viewport */
  }
}

/* =========================
   Utilidades / NavegaciÃƒÆ’Ã‚Â³n
========================= */
.nav.visible .nav-list,
.nav.visible .nav-list a,
.nav.visible .social-icons a {
  pointer-events: auto;
}
section[id] {
  scroll-margin-top: calc(var(--header-offset, 82px));
}

/* Mascota fija */
.footer-mascota-sello {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  z-index: 999;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  will-change: transform;
}

/* ============================================================
   MEDIA QUERIES (todas al final, agrupadas por secciÃƒÆ’Ã‚Â³n)
   Orden: ÃƒÂ¢Ã¢â‚¬Â°Ã‚Â¥1400, ÃƒÂ¢Ã¢â‚¬Â°Ã‚Â¤1400, ÃƒÂ¢Ã¢â‚¬Â°Ã‚Â¤1200, ÃƒÂ¢Ã¢â‚¬Â°Ã‚Â¤1024, ÃƒÂ¢Ã¢â‚¬Â°Ã‚Â¤992, ÃƒÂ¢Ã¢â‚¬Â°Ã‚Â¤768, ÃƒÂ¢Ã¢â‚¬Â°Ã‚Â¤576, ÃƒÂ¢Ã¢â‚¬Â°Ã‚Â¤400
============================================================ */
/* ÃƒÂ¢Ã¢â‚¬Â°Ã‚Â¥1400px ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Å“ Ajustes generales */
@media (min-width: 1400px) {
  /* Generales */
  body {
    font-size: 1.05rem;
  }

  /* Servicios */
  .servicio {
    gap: 50px;
  }

  /* Especialistas */
  .otros-especialistas-container {
    gap: 40px;
  }

  /* ReseÃƒÆ’Ã‚Â±as (espaciado del carrusel) */
  .carousel-track {
    gap: 30px;
  }
}

/* ÃƒÂ¢Ã¢â‚¬Â°Ã‚Â¤1400px ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Å“ Espaciados generales */
@media (max-width: 1400px) {
  section {
    padding: 5rem 2.5rem;
  }

  h2 {
    font-size: 3rem;
  }
}

/* ÃƒÂ¢Ã¢â‚¬Â°Ã‚Â¤1200px ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Å“ Laptops */
@media (max-width: 1200px) {
  .hero-agenda {
    padding: 50px 5%;
  }

  .review-card {
    flex-basis: 240px;
  }
}

/* ÃƒÂ¢Ã¢â‚¬Â°Ã‚Â¤1024px ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Å“ Ubicaciones */
@media (max-width: 1024px) {
  .contenido-ubicacion {
    flex-direction: column;
  }

  .contenido-ubicacion.reverse {
    flex-direction: column;
  }

  .ubicacion-info {
    text-align: center;
  }

  .mapa {
    height: 240px;
  }

  .ubicacion-info h3 {
    font-size: 1.5rem;
  }

  .direccion,
  .telefono {
    font-size: 1rem;
  }

  .btn-wp {
    font-size: .95rem;
    padding: 12px 24px;
  }
}

/* ÃƒÂ¢Ã¢â‚¬Â°Ã‚Â¥992px ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Å“ Desktop: mostrar paginaciÃƒÆ’Ã‚Â³n de Reviews */
@media (min-width: 992px) {
  .reviews-pagination {
    display: flex;
  }
}

/* ÃƒÂ¢Ã¢â‚¬Â°Ã‚Â¤992px ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Å“ Titulares, carruseles */
@media (max-width: 992px) {
  header {
    padding: 1.2rem 1.5rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  .review-card {
    flex-basis: 260px;
  }

  .especialista-jefe {
    max-width: 260px;
  }

  .carrusel-container {
    padding: 0 30px;
  }
}

/* ÃƒÂ¢Ã¢â‚¬Â°Ã‚Â¤768px ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Å“ MÃƒÆ’Ã‚Â³vil / tablet vertical */
@media (max-width: 768px) {
  /* ===== Header / MenÃƒÆ’Ã‚Âº mÃƒÆ’Ã‚Â³vil ===== */
  body,
  button,
  a,
  input,
  textarea,
  select {
    cursor: auto;
  }

  #custom-cursor {
    display: none;
  }

  header {
    padding: 1.5rem;
  }

  .logo-circulo {
    max-width: 10rem;
  }

  .abrir-responsive {
    display: block;
    font-size: 2.2rem;
    color: var(--text-color-medium);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1101;
  }

  .nav-list {
    position: fixed;
    top: 72px;
    right: 16px;
    width: min(92vw, 360px);
    max-height: 70vh;
    padding: 22px 18px;
    background: var(--dark-orange);
    color: #f1f1f1;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,.25);
    overflow-y: auto;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    transform: translateX(120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .35s ease, opacity .25s ease;
  }

  .nav.visible::before {
    content: "";
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    height: 70vh;
    z-index: 1100;
  }

  .nav.visible .nav-list {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
    z-index: 1102;
  }

  .nav.visible ~ .abrir-responsive {
    display: none;
  }

  .social-icons-dropdown {
    display: block;
    margin-top: 6px;
  }

  .social-icons-dropdown .social-icons {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding-top: 10px;
  }

  .social-icons-dropdown .social-icons a {
    color: #f1f1f1;
  }

  /* ===== Hero ===== */
  .hero-agenda {
    flex-direction: column;
    text-align: center;
    padding: 40px 5%;
  }

  .hero-left img {
    max-width: 260px;
    margin-top: 20px;
  }

  .hero-right h2 {
    font-size: 1.3rem;
  }

  .hero-right p {
    font-size: .9rem;
  }

  .form-cita input,
  .form-cita select {
    font-size: .9rem;
  }

  /* ===== Footer ===== */
  .footer {
    padding: 40px 20px;
  }

  .footer h4 {
    font-size: 1.3rem;
  }

  .footer p {
    font-size: .9rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .footer-bottom {
    text-align: center;
  }

  /* ===== ReseÃƒÆ’Ã‚Â±as Google ===== */
  .google-reviews .carousel-container {
    padding: 0 48px;
  }

  .google-reviews .carousel-track {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    gap: 16px;
    padding: 0;
  }

  .google-reviews .carousel-track::-webkit-scrollbar {
    display: none;
  }

  .google-reviews .review-card {
    flex: 0 0 88vw;
    max-width: 360px;
    margin: 0 auto;
    scroll-snap-align: center;
  }

  .google-reviews .arrow {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
  }

  .google-reviews .arrow.left {
    left: 8px;
  }

  .google-reviews .arrow.right {
    right: 8px;
  }
}

/* ÃƒÂ¢Ã¢â‚¬Â°Ã‚Â¤576px ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Å“ MÃƒÆ’Ã‚Â³viles comunes */
@media (max-width: 576px) {
  header {
    padding: 1rem;
  }

  .logo-circulo {
    max-width: 8rem;
  }

  h2 {
    font-size: 2rem;
  }

  section {
    padding: 3rem 1rem;
  }

  .hero-left img {
    max-width: 220px;
  }

  .opcion {
    font-size: .9rem;
    padding: 8px 10px;
  }

  .servicio {
    gap: 20px;
  }

  .servicio div {
    padding: 20px 12px;
  }

  .servicio h3 {
    font-size: 1rem;
  }

  .servicio p {
    font-size: .85rem;
  }

  .page-btn {
    min-width: 32px;
    height: 32px;
    font-size: .85rem;
  }

  .reviews-pagination {
    display: none;
  }
}

/* ÃƒÂ¢Ã¢â‚¬Â°Ã‚Â¤400px ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Å“ MÃƒÆ’Ã‚Â³viles muy pequeÃƒÆ’Ã‚Â±os */
@media (max-width: 400px) {
  .hero-right h2 {
    font-size: 1.1rem;
  }

  .hero-right p {
    font-size: .85rem;
  }

  .continuar {
    font-size: .9rem;
    padding: 10px;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .google-reviews .carousel-container {
    padding: 0 44px;
  }

  .google-reviews .review-card {
    flex: 0 0 92vw;
    max-width: 120vw;
  }

  .google-reviews .arrow {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }

  .reviews-pagination {
    display: none;
  }
}
/* ======================================================================
   CÃƒÆ’Ã‚ÂRCULO DENTAL ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â CAPA VISUAL PREMIUM
   Esta secciÃƒÆ’Ã‚Â³n debe permanecer al FINAL del archivo para unificar y
   modernizar la interfaz sin alterar el JavaScript existente.
====================================================================== */

:root {
  --clinic-navy: #102a43;
  --clinic-navy-2: #183b56;
  --clinic-blue: #2f80ed;
  --clinic-blue-soft: #eaf3ff;
  --clinic-gold: #d7a62a;
  --clinic-gold-dark: #b88713;
  --clinic-ivory: #fbfaf6;
  --clinic-white: #ffffff;
  --clinic-surface: #f5f8fb;
  --clinic-border: #dfe7ef;
  --clinic-text: #243447;
  --clinic-muted: #627386;
  --clinic-success: #1fa463;
  --clinic-shadow-sm: 0 8px 24px rgba(16, 42, 67, .07);
  --clinic-shadow-md: 0 18px 50px rgba(16, 42, 67, .11);
  --clinic-shadow-lg: 0 28px 80px rgba(16, 42, 67, .15);
  --clinic-radius: 20px;
  --clinic-radius-sm: 12px;
  --clinic-container: 1240px;
}

html {
  scroll-behavior: smooth;
  background: var(--clinic-surface);
}

body {
  color: var(--clinic-text);
  background:
    radial-gradient(circle at 10% 0%, rgba(47,128,237,.055), transparent 30%),
    linear-gradient(180deg, #fff 0%, var(--clinic-surface) 34%, #fff 100%);
  font-weight: 400;
}

body,
button,
input,
select,
textarea {
  font-family: "Poppins", sans-serif;
}

p,
li,
input,
select,
button,
a {
  font-weight: 400;
}

::selection {
  color: #fff;
  background: var(--clinic-blue);
}

img {
  max-width: 100%;
}

/* ---------- Encabezado ---------- */
header {
  min-height: 88px;
  padding: 14px clamp(20px, 4vw, 64px);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(16, 42, 67, .08);
  box-shadow: 0 8px 35px rgba(16, 42, 67, .06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.logo-circulo,
.header-logo {
  width: clamp(145px, 14vw, 205px);
  max-width: 205px;
  border-radius: 0;
}

.nav-list {
  gap: clamp(8px, 1.25vw, 22px);
  font-size: .91rem;
}

.nav-list li a {
  color: var(--clinic-navy-2);
  font-weight: 500;
  padding: 10px 4px;
  background: transparent;
  border-radius: 0;
}

.nav-list li a::before {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, var(--clinic-blue), var(--clinic-gold));
  transition: left .25s ease, right .25s ease;
}

.nav-list li a:hover,
.nav-list li a.active {
  color: var(--clinic-blue);
  background: transparent;
}

.nav-list li a:hover::before,
.nav-list li a.active::before {
  left: 0;
  right: 0;
}

.nav-list li a.active::after {
  display: none;
}

/* ---------- Base de secciones ---------- */
section {
  width: 100%;
  margin: 0;
  padding: clamp(72px, 8vw, 118px) clamp(18px, 5vw, 70px);
  border-radius: 0;
  box-shadow: none;
}

section > h2,
.filosofia-section > h2,
.seccion-videos > h2,
.ubicaciones > h2,
#servicios > h2,
#especialistas > h2 {
  max-width: 900px;
  margin: 0 auto clamp(42px, 5vw, 70px);
  padding-bottom: 18px;
  color: var(--clinic-navy);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.035em;
}

section > h2::after,
.filosofia-section > h2::after,
.seccion-videos > h2::after,
.ubicaciones > h2::after,
#servicios > h2::after,
#especialistas > h2::after {
  width: 72px;
  height: 3px;
  background: linear-gradient(90deg, var(--clinic-blue), var(--clinic-gold));
}

/* ---------- Hero y agenda ---------- */
.hero-agenda {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .95fr);
  align-items: center;
  gap: clamp(48px, 7vw, 104px);
  min-height: 720px;
  margin-top: 88px;
  padding: clamp(65px, 8vw, 112px) clamp(22px, 7vw, 110px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(240,247,255,.96)),
    var(--clinic-surface);
}

.hero-agenda::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  top: -230px;
  right: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,128,237,.18), rgba(47,128,237,0) 70%);
}

.hero-agenda::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  bottom: -260px;
  left: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215,166,42,.14), rgba(215,166,42,0) 72%);
}

.hero-right {
  min-width: 0;
  max-width: 690px;
  text-align: left;
}

.hero-right h2 {
  display: block;
  margin: 0 0 22px;
  padding: 0;
  color: var(--clinic-navy);
  font-size: clamp(2.35rem, 4.5vw, 4.55rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.05em;
  text-align: left;
}

.hero-right h2::before {
  display: none;
}

.hero-right h2::after {
  content: "MÃƒÆ’Ã‚Â¡s de tres dÃƒÆ’Ã‚Â©cadas cuidando sonrisas";
  position: static;
  display: block;
  width: max-content;
  max-width: 100%;
  height: auto;
  margin: 0 0 18px;
  padding: 8px 14px;
  transform: none;
  border-radius: 999px;
  color: var(--clinic-blue);
  background: var(--clinic-blue-soft);
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .07em;
  text-transform: uppercase;
  order: -1;
}

.hero-right p {
  max-width: 620px;
  margin: 0 0 34px;
  color: var(--clinic-muted);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  font-weight: 400;
  line-height: 1.8;
  text-align: left;
}

.form-cita {
  gap: 15px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(16,42,67,.09);
  border-radius: var(--clinic-radius);
  background: rgba(255,255,255,.91);
  box-shadow: var(--clinic-shadow-md);
  backdrop-filter: blur(12px);
}

.opciones-cita {
  gap: 10px;
  margin-bottom: 5px;
}

.opcion {
  min-height: 48px;
  max-width: none;
  padding: 11px 14px;
  border: 1px solid var(--clinic-border);
  border-radius: 11px;
  color: var(--clinic-muted);
  background: #fff;
  font-size: .84rem;
  font-weight: 500;
  box-shadow: none;
}

.opcion:hover {
  border-color: rgba(47,128,237,.4);
  color: var(--clinic-blue);
  transform: translateY(-1px);
}

.opcion.seleccionada {
  border-color: rgba(47,128,237,.35);
  color: var(--clinic-blue);
  background: var(--clinic-blue-soft);
  box-shadow: inset 0 0 0 1px rgba(47,128,237,.08);
}

.input-email {
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}

.input-email label {
  color: var(--clinic-navy-2);
  font-size: .83rem;
  font-weight: 600;
}

.input-email input,
.input-email select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--clinic-border);
  border-radius: 11px;
  color: var(--clinic-text);
  background: #fff;
  font-size: .9rem;
  box-shadow: 0 1px 0 rgba(16,42,67,.02);
}

.input-email input::placeholder {
  color: #9aa8b5;
}

.input-email input:hover,
.input-email select:hover {
  border-color: #c2d2e2;
}

.input-email input:focus,
.input-email select:focus {
  border-color: var(--clinic-blue);
  box-shadow: 0 0 0 4px rgba(47,128,237,.11);
}

.continuar {
  width: 100% !important;
  min-height: 50px;
  margin-top: 4px;
  justify-content: center;
  align-self: stretch;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--clinic-blue), #2468c8);
  box-shadow: 0 12px 24px rgba(47,128,237,.22);
  font-weight: 600;
  letter-spacing: .01em;
}

.continuar:hover {
  background: linear-gradient(135deg, #347fdf, #1f5daf);
  box-shadow: 0 16px 30px rgba(47,128,237,.28);
  transform: translateY(-2px);
}

/* ---------- Ofertas ---------- */
.seccion-ofertas {
  min-width: 0;
  padding: 0;
}

.seccion-ofertas h3 {
  margin: 0 0 24px;
  color: var(--clinic-navy);
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  font-weight: 650;
  letter-spacing: -.02em;
}

.carrusel-container {
  margin-top: 0;
}

.oferta {
  border-radius: 18px;
}

.oferta-front,
.oferta-back {
  border: 1px solid rgba(16,42,67,.08);
  border-radius: 18px;
  box-shadow: var(--clinic-shadow-md);
}

.oferta-front p {
  padding: 13px 16px;
  color: var(--clinic-navy);
  background: linear-gradient(90deg, #f6d97c, #e9bd43);
  font-weight: 600;
}

.oferta-back {
  color: #fff;
  background: linear-gradient(145deg, var(--clinic-navy), var(--clinic-navy-2));
}

.oferta-back .btn-ver-mas {
  color: var(--clinic-navy);
  background: #fff;
  box-shadow: none;
}

.carrusel-arrow {
  color: var(--clinic-navy);
}

.carrusel-arrow:hover {
  color: var(--clinic-blue);
}

/* ---------- Servicios ---------- */
#servicios {
  background: linear-gradient(180deg, #fff 0%, #f4f8fc 100%);
}

.servicio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: var(--clinic-container);
}

.servicio div {
  position: relative;
  min-height: 238px;
  padding: 34px 26px;
  overflow: hidden;
  border: 1px solid rgba(16,42,67,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--clinic-shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.servicio div::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  right: -42px;
  bottom: -42px;
  border-radius: 50%;
  background: rgba(47,128,237,.055);
  transition: transform .3s ease;
}

.servicio div:hover {
  border-color: rgba(47,128,237,.2);
  box-shadow: var(--clinic-shadow-md);
  transform: translateY(-7px);
}

.servicio div:hover::after {
  transform: scale(1.35);
}

.servicio img {
  width: 66px;
  height: 66px;
  margin-bottom: 22px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(16,42,67,.12));
}

.servicio h3 {
  color: var(--clinic-navy);
  font-size: 1.16rem;
  font-weight: 650;
}

.servicio p {
  color: var(--clinic-muted);
  font-size: .91rem;
  line-height: 1.7;
}

/* ---------- FilosofÃƒÆ’Ã‚Â­a ---------- */
.filosofia-section {
  background: linear-gradient(135deg, var(--clinic-navy), #173d60);
}

.filosofia-section > h2 {
  color: #fff;
}

.filosofia-section > h2::after {
  background: linear-gradient(90deg, #fff, var(--clinic-gold));
}

.filosofia-bg {
  max-width: var(--clinic-container);
}

.filosofia-item {
  min-height: 330px;
  justify-content: center;
  padding: 42px 30px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  background: rgba(255,255,255,.075);
  box-shadow: none;
}

.filosofia-item:hover {
  border-color: rgba(255,255,255,.3);
  box-shadow: 0 24px 55px rgba(0,0,0,.18);
}

.filosofia-icon {
  width: 78px;
  height: 78px;
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

.filosofia-icon img {
  width: 42px;
  height: 42px;
  filter: brightness(0) invert(1);
}

.filosofia-item h3 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 650;
}

.filosofia-item p {
  color: rgba(255,255,255,.76);
  font-size: .94rem;
}

/* ---------- Doctores ---------- */
#especialistas {
  background: #fff;
}

.cards-rotator {
  max-width: var(--clinic-container);
}

.especialista {
  border: 1px solid rgba(16,42,67,.08);
  border-radius: 22px;
  box-shadow: var(--clinic-shadow-md);
}

.especialista.is-center {
  box-shadow: var(--clinic-shadow-lg);
}

.especialista img {
  filter: saturate(.88) contrast(1.03);
}

.name-bar {
  height: 76px;
  padding: 12px 18px;
  border-radius: 0 0 21px 21px;
  background: linear-gradient(180deg, rgba(16,42,67,.76), rgba(16,42,67,.95));
  backdrop-filter: blur(10px);
}

.name-bar .name-doc {
  color: #fff;
  font-size: .98rem;
  line-height: 1.3;
}

.name-bar .role {
  color: rgba(255,255,255,.72);
  font-size: .75rem;
}

/* ---------- Ubicaciones ---------- */
.ubicaciones {
  background: linear-gradient(180deg, #f4f8fc 0%, #fff 100%);
}

.fila-ubicaciones {
  max-width: var(--clinic-container);
  gap: 34px;
}

.columna-ubicacion {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(16,42,67,.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--clinic-shadow-md);
}

.contenido-ubicacion {
  gap: 0;
}

.ubicacion-info {
  padding: clamp(32px, 5vw, 64px);
}

.ubicacion-info h3 {
  color: var(--clinic-navy);
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 700;
}

.direccion,
.telefono {
  color: var(--clinic-muted);
  font-size: .98rem;
}

.ubicacion-info a,
.footer-sucursales a {
  color: var(--clinic-blue);
}

.ubicacion-mapa {
  align-self: stretch;
}

.mapa {
  min-height: 390px;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  filter: saturate(.72) contrast(.96);
}

.ubicacion-info .btn-wp {
  padding: 13px 20px;
  border-radius: 11px;
  background: var(--clinic-success);
  box-shadow: 0 10px 22px rgba(31,164,99,.2);
}

.ubicacion-info .btn-wp:hover {
  background: #178952;
  text-decoration: none;
  transform: translateY(-2px);
}

/* ---------- ReseÃƒÆ’Ã‚Â±as ---------- */
.google-reviews {
  margin: 0;
  padding: clamp(72px, 8vw, 110px) clamp(18px, 5vw, 70px);
  background: #fff;
}

.reviews-header,
.google-reviews .carousel-container,
.reviews-pagination {
  max-width: var(--clinic-container);
  margin-left: auto;
  margin-right: auto;
}

.reviews-header h3 {
  color: var(--clinic-navy);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -.03em;
}

.clinic-tabs {
  padding: 5px;
  border: 1px solid var(--clinic-border);
  border-radius: 12px;
  background: var(--clinic-surface);
}

.clinic-btn {
  padding: 10px 14px;
  border-radius: 9px;
  color: var(--clinic-muted);
  background: transparent;
  font-size: .8rem;
}

.clinic-btn.active {
  color: #fff;
  background: var(--clinic-navy);
  box-shadow: 0 7px 18px rgba(16,42,67,.18);
}

.review-card {
  border: 1px solid rgba(16,42,67,.08);
  border-radius: 17px;
  padding: 22px;
  box-shadow: var(--clinic-shadow-sm);
}

.google-reviews .name {
  color: var(--clinic-navy);
}

.comment {
  color: var(--clinic-muted);
  font-size: .83rem;
}

.arrow,
.video-arrow {
  color: var(--clinic-navy);
  background: #fff;
  border: 1px solid var(--clinic-border);
  box-shadow: var(--clinic-shadow-sm);
}

.arrow:hover,
.video-arrow:hover {
  color: var(--clinic-blue);
  background: var(--clinic-blue-soft);
}

.page-btn.active {
  border-color: var(--clinic-navy);
  background: var(--clinic-navy);
  box-shadow: 0 7px 16px rgba(16,42,67,.18);
}

/* ---------- Videos ---------- */
.seccion-videos {
  background: linear-gradient(180deg, #f4f8fc, #fff);
}

.video-slide iframe {
  border: 1px solid rgba(16,42,67,.08);
  border-radius: 18px;
  box-shadow: var(--clinic-shadow-md);
  background: #fff;
}

/* ---------- Footer ---------- */
.footer {
  padding: 78px clamp(24px, 5vw, 70px) 28px;
  color: rgba(255,255,255,.76);
  background:
    radial-gradient(circle at 90% 10%, rgba(47,128,237,.18), transparent 32%),
    linear-gradient(135deg, #0b2238, var(--clinic-navy));
  box-shadow: none;
}

.footer-content {
  max-width: var(--clinic-container);
  gap: clamp(38px, 6vw, 86px);
  padding: 0;
}

.footer h4,
.footer-sucursales h4,
.footer-social h4 {
  color: #fff;
  font-size: 1.12rem;
  font-weight: 650;
}

.footer-sucursales strong {
  color: #fff;
}

.footer-sucursales p,
.footer-bottom p {
  color: rgba(255,255,255,.63);
}

.footer-sucursales a {
  color: #9ec8ff;
}

.footer-social > .social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}

.footer-social > .social-icons > a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.06);
  text-decoration: none;
}

.footer-social > .social-icons > a:hover {
  color: var(--clinic-navy);
  background: #fff;
  transform: translateY(-3px);
}

/* Comunidad Digital: tarjeta independiente */
.footer-tiktok {
  width: 100%;
  margin-top: 24px;
}

.footer-tiktok h4 {
  margin: 0 0 10px;
  color: rgba(255,255,255,.58);
  font-family: inherit;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer-tiktok .social-icons {
  display: block;
  width: 100%;
  margin: 0;
}

.footer-tiktok .social-icons > a {
  display: block;
  width: 100%;
  min-height: 68px;
  padding: 13px 15px;
  color: #fff;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 15px;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  transition:
    transform .3s ease,
    background .3s ease,
    border-color .3s ease,
    box-shadow .3s ease;
}

.footer-tiktok .social-icons > a:hover {
  color: #fff;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.24);
  box-shadow: 0 18px 38px rgba(0,0,0,.18);
  transform: translateY(-3px);
}

.footer-tiktok .social-icons > a p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin: 0;
  color: #fff;
  font-size: .86rem;
  font-weight: 600;
}

.footer-tiktok .social-icons > a i {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  color: #fff;
  background: #111;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 11px;
  font-size: 1rem;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.footer-mascota-sello {
  width: 62px;
  height: 62px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.8);
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 35px rgba(16,42,67,.24);
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .hero-agenda {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-right {
    max-width: 820px;
    margin: 0 auto;
  }

  .hero-right h2,
  .hero-right p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-right h2::after {
    margin-left: auto;
    margin-right: auto;
  }

  .seccion-ofertas {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
  }

  .servicio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  header {
    min-height: 74px;
    padding: 10px 18px;
  }

  .hero-agenda {
    margin-top: 74px;
  }

  .nav-list {
    top: 74px;
    right: 12px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(145deg, var(--clinic-navy), #163c60);
  }

  .nav-list li a {
    display: block;
    padding: 10px 8px;
    color: rgba(255,255,255,.86);
  }

  .nav-list li a:hover,
  .nav-list li a.active {
    color: #fff;
  }

  .nav-list li a::before {
    background: var(--clinic-gold);
  }

  .abrir-responsive {
    color: var(--clinic-navy);
  }

  .contenido-ubicacion,
  .contenido-ubicacion.reverse {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ubicacion-info {
    text-align: left;
  }

  .mapa {
    min-height: 320px;
  }
}

@media (max-width: 700px) {
  section {
    padding: 66px 16px;
  }

  .hero-agenda {
    padding: 58px 16px 72px;
  }

  .hero-right h2 {
    font-size: clamp(2.05rem, 10vw, 3rem);
  }

  .hero-right h2::after {
    width: fit-content;
    font-size: .67rem;
  }

  .form-cita {
    padding: 20px;
  }

  .input-email {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .input-email label {
    text-align: left;
  }

  .servicio {
    grid-template-columns: 1fr;
  }

  .servicio div {
    min-height: 0;
  }

  .filosofia-item {
    min-height: 285px;
  }

  .reviews-header {
    align-items: stretch;
  }

  .reviews-header h3 {
    text-align: center;
  }

  .clinic-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .footer {
    padding-top: 62px;
  }
}

@media (max-width: 430px) {
  .logo-circulo,
  .header-logo {
    width: 132px;
  }

  .opciones-cita {
    flex-direction: column;
  }

  .opcion {
    width: 100%;
    flex-basis: auto;
  }

  .clinic-tabs {
    grid-template-columns: 1fr;
  }

  .footer-mascota-sello {
    left: 12px;
    bottom: 12px;
    width: 54px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
/* ==========================================================
   CORRECCIÃ“N FINAL DEL HERO
   Texto a la izquierda y formulario a la derecha.
   Compatible con el HTML actual:
   .hero-agenda > .hero-right > h2 + p + .form-cita
========================================================== */

.hero-agenda {
  position: relative;
  isolation: isolate;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: none;
  min-height: calc(100vh - 92px);

  margin: 92px 0 0;
  padding:
    clamp(72px, 8vw, 118px)
    clamp(24px, 7vw, 112px);

  overflow: hidden;

  background:
    radial-gradient(
      circle at 9% 18%,
      rgba(217, 170, 62, 0.11),
      transparent 28%
    ),
    radial-gradient(
      circle at 91% 12%,
      rgba(82, 164, 218, 0.16),
      transparent 31%
    ),
    linear-gradient(
      125deg,
      #fffefb 0%,
      #f2f9ff 52%,
      #eef9f6 100%
    );

  border-radius: 0 0 42px 42px;
  box-shadow: none;
}

.hero-agenda::before {
  content: "";

  position: absolute;
  z-index: -1;
  top: -220px;
  right: -140px;

  width: 590px;
  height: 590px;

  pointer-events: none;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(70, 151, 211, 0.17),
      transparent 70%
    );
}

.hero-agenda::after {
  content: "";

  position: absolute;
  z-index: -1;
  left: -150px;
  bottom: -240px;

  width: 470px;
  height: 470px;

  pointer-events: none;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(217, 170, 62, 0.13),
      transparent 70%
    );
}

/* El contenedor que ya existe en tu HTML se convierte en dos columnas */

.hero-agenda > .hero-right {
  display: grid;
  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(410px, 0.82fr);
  grid-template-rows: auto auto 1fr;
  align-items: center;
  column-gap: clamp(48px, 7vw, 105px);
  row-gap: 0;

  flex: none;

  width: min(1240px, 100%);
  min-width: 0;
  max-width: 1240px;

  margin: 0 auto;

  text-align: left;
}

/* ==========================================================
   TEXTO DEL HERO
========================================================== */

.hero-agenda > .hero-right > h2 {
  grid-column: 1;
  grid-row: 1;

  display: block;

  max-width: 700px;

  margin: 0 0 22px;
  padding: 0;

  color: #102c46;

  font-size: clamp(2.55rem, 4.7vw, 4.9rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-align: left;
}

.hero-agenda > .hero-right > h2::before {
  content: "";

  display: block;

  width: 54px;
  height: 5px;

  margin: 0 0 22px;

  background:
    linear-gradient(
      90deg,
      #d9aa3e,
      #f0cb69
    );

  border-radius: 999px;
}

.hero-agenda > .hero-right > h2::after {
  display: none;
}

.hero-agenda > .hero-right > p {
  grid-column: 1;
  grid-row: 2;

  max-width: 650px;

  margin: 0;
  padding: 0;

  color: #607488;

  font-size: clamp(1rem, 1.25vw, 1.18rem);
  font-weight: 400;
  line-height: 1.85;
  text-align: left;
}

/* ==========================================================
   TARJETA DEL FORMULARIO
========================================================== */

.hero-agenda > .hero-right > .form-cita {
  position: relative;

  grid-column: 2;
  grid-row: 1 / span 3;

  display: flex;
  flex-direction: column;
  gap: 14px;

  width: min(510px, 100%);
  max-width: 510px;

  margin: 0 0 0 auto;
  padding: clamp(27px, 3vw, 38px);

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98),
      rgba(248, 252, 255, 0.94)
    );

  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 27px;

  box-shadow:
    0 32px 85px rgba(12, 38, 59, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);

  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}

.hero-agenda > .hero-right > .form-cita::before {
  content: "";

  position: absolute;
  top: -82px;
  right: -75px;

  width: 190px;
  height: 190px;

  pointer-events: none;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(217, 170, 62, 0.14),
      transparent 70%
    );
}

/* ==========================================================
   OPCIONES DE CITA
========================================================== */

.hero-agenda .opciones-cita {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;

  width: 100%;
  margin: 0 0 4px;
  padding: 5px;

  background: rgba(237, 246, 252, 0.86);

  border: 1px solid rgba(16, 44, 70, 0.06);
  border-radius: 15px;
}

.hero-agenda .opcion {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  flex: none;

  width: 100%;
  max-width: none;
  min-height: 48px;

  margin: 0;
  padding: 10px 11px;

  color: #617588;
  background: transparent;

  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;

  border: 1px solid transparent;
  border-radius: 11px;

  box-shadow: none;

  cursor: pointer;

  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.hero-agenda .opcion img {
  flex: 0 0 auto;

  width: 18px;
  height: 18px;

  object-fit: contain;
}

.hero-agenda .opcion:hover {
  color: #347db5;
  background: rgba(255, 255, 255, 0.7);

  transform: none;
}

.hero-agenda .opcion.seleccionada {
  color: #102c46;
  background: #ffffff;

  border-color: rgba(59, 130, 196, 0.13);

  box-shadow:
    0 7px 20px rgba(16, 44, 70, 0.09);
}

/* ==========================================================
   CAMPOS DEL FORMULARIO
========================================================== */

.hero-agenda .input-email {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 12px;

  width: 100%;
  margin: 0;
}

.hero-agenda .input-email label {
  width: auto;
  margin: 0;

  color: #40566b;

  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.hero-agenda .input-email input,
.hero-agenda .input-email select {
  width: 100%;
  min-width: 0;
  height: 49px;

  padding: 0 14px;

  color: #263a4d;
  background: rgba(255, 255, 255, 0.94);

  font-size: 0.88rem;
  font-weight: 400;

  border: 1px solid rgba(16, 44, 70, 0.13);
  border-radius: 12px;
  outline: none;

  box-shadow:
    inset 0 1px 2px rgba(16, 44, 70, 0.025);

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.hero-agenda .input-email input::placeholder {
  color: #98a6b3;
}

.hero-agenda .input-email input:hover,
.hero-agenda .input-email select:hover {
  background: #ffffff;
  border-color: rgba(59, 130, 196, 0.27);
}

.hero-agenda .input-email input:focus,
.hero-agenda .input-email select:focus {
  background: #ffffff;
  border-color: #3b82c4;

  box-shadow:
    0 0 0 4px rgba(59, 130, 196, 0.1),
    0 10px 24px rgba(16, 44, 70, 0.06);
}

/* Mantiene intacta la validaciÃ³n usada por form-cita.js */

.hero-agenda .input-email input.is-invalid,
.hero-agenda .input-email select.is-invalid,
.hero-agenda .is-invalid {
  border-color: #ef4444;

  box-shadow:
    0 0 0 4px rgba(239, 68, 68, 0.16);
}

/* ==========================================================
   BOTÃ“N PRINCIPAL
========================================================== */

.hero-agenda .continuar {
  position: relative;
  z-index: 1;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  align-self: stretch;

  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 53px;

  margin: 4px 0 0;
  padding: 13px 20px;

  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #3e94d0,
      #286da6
    );

  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 13px;

  box-shadow:
    0 15px 32px rgba(45, 120, 176, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);

  cursor: pointer;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    opacity 0.25s ease;
}

.hero-agenda .continuar:hover {
  background:
    linear-gradient(
      135deg,
      #479ed8,
      #225f93
    );

  box-shadow:
    0 20px 42px rgba(45, 120, 176, 0.32);

  transform: translateY(-3px);
}

.hero-agenda .continuar:active {
  transform: translateY(0);
}

.hero-agenda .continuar:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

/* Conserva la lÃ³gica de spinner y confirmaciÃ³n */

.hero-agenda .continuar .icon {
  width: 18px;
  height: 18px;
  display: none;
}

.hero-agenda .continuar.loading .icon.spinner {
  display: inline-block;
}

.hero-agenda .continuar.success .icon.check {
  display: inline-block;
}

/* ==========================================================
   COMPATIBILIDAD CON LA ESTRUCTURA ALTERNATIVA
   .hero-copy + .hero-form-wrapper
========================================================== */

.hero-agenda:has(.hero-copy) {
  display: grid;
  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(410px, 0.82fr);
  align-items: center;
  gap: clamp(48px, 7vw, 105px);
}

.hero-copy {
  max-width: 700px;
  text-align: left;
}

.hero-copy h2 {
  margin: 0 0 22px;
  padding: 0;

  color: #102c46;

  font-size: clamp(2.55rem, 4.7vw, 4.9rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-align: left;
}

.hero-copy h2::after {
  display: none;
}

.hero-copy > p {
  max-width: 650px;
  margin: 0;

  color: #607488;

  font-size: clamp(1rem, 1.25vw, 1.18rem);
  font-weight: 400;
  line-height: 1.85;
  text-align: left;
}

.hero-form-wrapper {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.hero-form-wrapper .form-cita {
  width: min(510px, 100%);
  max-width: 510px;
  margin: 0;
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1050px) {
  .hero-agenda {
    min-height: auto;

    padding:
      72px
      clamp(20px, 5vw, 52px)
      82px;
  }

  .hero-agenda > .hero-right {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 38px;

    width: min(760px, 100%);

    text-align: center;
  }

  .hero-agenda > .hero-right > h2 {
    grid-column: 1;
    grid-row: auto;

    max-width: 760px;
    margin: 0 auto 20px;

    text-align: center;
  }

  .hero-agenda > .hero-right > h2::before {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-agenda > .hero-right > p {
    grid-column: 1;
    grid-row: auto;

    margin: 0 auto;

    text-align: center;
  }

  .hero-agenda > .hero-right > .form-cita {
    grid-column: 1;
    grid-row: auto;

    width: min(590px, 100%);
    max-width: 590px;

    margin: 0 auto;
  }

  .hero-agenda:has(.hero-copy) {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-copy {
    margin: 0 auto;
    text-align: center;
  }

  .hero-copy h2,
  .hero-copy > p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-form-wrapper {
    justify-content: center;
  }

  .hero-form-wrapper .form-cita {
    width: min(590px, 100%);
    max-width: 590px;
  }
}

/* ==========================================================
   MÃ“VIL
========================================================== */

@media (max-width: 700px) {
  .hero-agenda {
    min-height: auto;

    margin-top: 74px;
    padding:
      58px
      16px
      70px;

    border-radius: 0 0 28px 28px;
  }

  .hero-agenda > .hero-right {
    gap: 30px;
  }

  .hero-agenda > .hero-right > h2,
  .hero-copy h2 {
    font-size: clamp(2.1rem, 10vw, 3.15rem);
    line-height: 1.08;
  }

  .hero-agenda > .hero-right > p,
  .hero-copy > p {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .hero-agenda > .hero-right > .form-cita,
  .hero-form-wrapper .form-cita {
    width: 100%;
    max-width: 100%;

    padding: 22px 18px;

    border-radius: 21px;
  }

  .hero-agenda .opciones-cita {
    grid-template-columns: 1fr;
  }

  .hero-agenda .opcion {
    min-height: 50px;
    font-size: 0.84rem;
  }

  .hero-agenda .input-email {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hero-agenda .input-email input,
  .hero-agenda .input-email select {
    height: 50px;
    font-size: 16px;
  }

  .hero-agenda .continuar {
    min-height: 52px;
  }
}

@media (max-width: 390px) {
  .hero-agenda {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-agenda > .hero-right > .form-cita,
  .hero-form-wrapper .form-cita {
    padding: 19px 14px;
  }
}