:root{
  --blue-900:#000850;
  --blue-700:#0015E0;
  --blue-600:#041cff;
  --blue-500:#3E50FF;
  --blue-300:#8992FF;
  --blue-100:#EAEFFF;
  --blue-50:#F5F7FF;
  --white:#FFFFFF;
  --ink:#0A0E38;
  --grey:#6670A6;
  --line:#DDE3FA;
  --radius:2px;
  --serif:'Fraunces', serif;
  --sans:'Public Sans', sans-serif;
  --ease:cubic-bezier(.16,.84,.44,1);
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:var(--sans);
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
button{font-family:inherit; cursor:pointer; border:none; background:none; color:inherit;}
ul{list-style:none;}
input{font-family:inherit;}

::selection{background:var(--blue-600); color:var(--white);}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important; transition-duration:.001ms !important;}
  html{scroll-behavior:auto;}
}

.wrap{
  max-width:1240px;
  margin:0 auto;
  padding:0 40px;
}
@media (max-width:720px){ .wrap{padding:0 22px;} }

.eyebrow{
  font-family:var(--sans);
  font-weight:600;
  font-size:12.5px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--blue-600);
  display:flex;
  align-items:center;
  gap:10px;
}
.eyebrow-glasses{ width:30px; height:13px; flex-shrink:0; color:var(--blue-600); }

h1,h2,h3{ font-family:var(--serif); font-weight:500; letter-spacing:-.01em; }
/* =========================================================
   HEADER
   ========================================================= */
.header-outer{
  position:sticky; top:0; z-index:80;
  display:flex; justify-content:center;
  padding:18px 24px 0;
  background:transparent;
}
header{
  width:100%; max-width:1180px;
  display:grid; grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:20px;
  padding:14px 22px;
  background:rgba(255,255,255,.78);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border:1px solid var(--line);
  border-radius:999px;
  box-shadow:0 10px 30px -18px rgba(4,28,255,.16);
}
@media (max-width:900px){ header{ padding:12px 18px; } }
@media (max-width:720px){ .header-outer{ padding:14px 14px 0; } }

.nav-side{ display:flex; align-items:center; gap:30px; }
.nav-side.nav-right{ justify-content:flex-end; }

.mark{ display:flex; align-items:center; gap:10px; justify-self:center; }
.mark-logo{ width:26px; height:26px; object-fit:contain; }
.mark-icon{ width:28px; height:12px; flex-shrink:0; color:var(--blue-600); }
.mark-word{
  font-family:var(--serif);
  font-weight:500;
  font-size:19px;
  letter-spacing:-.01em;
  color:var(--ink);
  white-space:nowrap;
}
.mark-word span{ color:var(--blue-600); }

nav{ display:flex; gap:30px; }
nav a{
  font-size:13px; font-weight:600; letter-spacing:.02em;
  color:var(--grey);
  position:relative;
  padding-bottom:2px;
  transition:color .2s var(--ease);
}
nav a::after{
  content:''; position:absolute; left:0; bottom:-2px; height:1.5px; width:0;
  background:var(--blue-600); transition:width .3s var(--ease);
}
nav a:hover, nav a.active{ color:var(--ink); }
nav a.active::after, nav a:hover::after{ width:100%; }

.head-actions{ display:flex; align-items:center; gap:10px; }
.head-icon-btn{
  width:38px; height:38px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--line); color:var(--ink);
  transition:background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
}
.head-icon-btn svg{ width:17px; height:17px; }
.head-icon-btn:hover{ background:var(--blue-600); border-color:var(--blue-600); color:var(--white); transform:translateY(-2px); }
.head-icon-btn:active{ transform:translateY(0) scale(0.94); }

.head-auth{ display:flex; align-items:center; gap:14px; margin-right:2px; }
.head-auth-login{
  font-size:13px; font-weight:600; color:var(--ink); white-space:nowrap;
  transition:color .2s var(--ease);
}
.head-auth-login:hover{ color:var(--blue-600); }
.head-auth-register{
  padding:9px 20px; font-size:11.5px; font-weight:600; letter-spacing:.04em; text-transform:uppercase;
  background:var(--blue-600); color:var(--white); border-radius:100px; white-space:nowrap;
  transition:background .25s var(--ease), transform .2s var(--ease);
}
.head-auth-register:hover{ background:var(--blue-700); transform:translateY(-2px); }
@media (max-width:900px){ .head-auth{ display:none; } }

.hamburger{ display:none; flex-direction:column; gap:5px; width:24px; }
.hamburger span{ height:1.6px; width:100%; background:var(--ink); transition:.3s var(--ease); }
.hamburger.active span:nth-child(1){ transform:translateY(6.6px) rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity:0; }
.hamburger.active span:nth-child(3){ transform:translateY(-6.6px) rotate(-45deg); }

#mainNav{ display:none; }

@media (max-width:900px){
  header{ grid-template-columns:auto 1fr auto; }
  .nav-side.nav-left{ display:none; }
  .nav-side.nav-right nav{ display:none; }
  #mainNav{
    display:flex;
    position:fixed; inset:88px 14px auto 14px; z-index:70;
    background:var(--white);
    border:1px solid var(--line); border-radius:20px;
    flex-direction:column; align-items:flex-start; gap:0;
    padding:10px 22px 18px;
    transform:translateY(-8px);
    opacity:0; pointer-events:none;
    box-shadow:0 20px 40px -20px rgba(4,28,255,.2);
    transition:opacity .25s var(--ease), transform .25s var(--ease);
  }
  #mainNav.nav-open{ opacity:1; pointer-events:auto; transform:translateY(0); }
  #mainNav a{ width:100%; padding:16px 0; border-bottom:1px solid var(--line); font-size:15px; }
  .hamburger{ display:flex; }
}

.btn{
  padding:15px 34px;
  font-size:12px; font-weight:600; letter-spacing:1.5px; text-transform:uppercase;
  border:1px solid var(--ink);
  border-radius:30px;
  transition:background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.btn:hover{ transform:translateY(-2px); }
.btn.solid{ background:var(--blue-600); border-color:var(--blue-600); color:var(--white); }
.btn.solid:hover{ background:var(--blue-700); border-color:var(--blue-700); }
.btn:not(.solid):hover{ background:var(--ink); color:var(--white); }
/* =========================================================
   SECTION SCAFFOLD
   ========================================================= */
.strip{ padding:96px 40px; }
@media (max-width:720px){ .strip{ padding:64px 22px; } }
.section-head{ max-width:640px; margin:0 auto 48px; text-align:center; }
.section-head .eyebrow{ justify-content:center; }
.section-head h2{ font-size:clamp(28px,3.4vw,42px); margin-top:14px; color:var(--ink); }
.section-head p{ margin:10px auto 0; color:var(--grey); font-size:15px; max-width:460px; }

.reveal-blur, .reveal-rise{ opacity:0; }
.reveal-blur{ filter:blur(6px); transition:opacity .7s var(--ease), filter .7s var(--ease); }
.reveal-rise{ transform:translateY(22px); transition:opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-blur.is-visible{ opacity:1; filter:blur(0); }
.reveal-rise.is-visible{ opacity:1; transform:translateY(0); }
/* =========================================================
   APPOINTMENT BOOKING
   ========================================================= */
.appt-card{
  max-width:900px; margin:0 auto;
  border:1.5px solid var(--blue-600); border-radius:20px;
  display:flex; overflow:hidden;
  box-shadow:0 24px 60px rgba(8,24,72,.08);
}
@media (max-width:760px){ .appt-card{ flex-direction:column; } }

/* --- panel izquierdo: resumen en vivo --- */
.appt-side{
  flex-shrink:0; width:300px;
  background:var(--blue-600); color:var(--white);
  padding:34px 30px; display:flex; flex-direction:column;
}
@media (max-width:760px){ .appt-side{ width:100%; } }
.appt-side-daynum{ font-size:88px; font-weight:800; line-height:1; letter-spacing:-.02em; }
.appt-side-weekday{ font-size:17px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; margin-top:6px; opacity:.95; }
.appt-side-monthyear{ font-size:13px; font-weight:600; letter-spacing:.03em; margin-top:4px; opacity:.75; }

@keyframes apptSideIn{
  0%{ opacity:0; transform:translateY(10px) scale(.92); }
  60%{ opacity:1; transform:translateY(-2px) scale(1.03); }
  100%{ opacity:1; transform:translateY(0) scale(1); }
}
.appt-side-daynum.is-animating{ animation:apptSideIn .45s cubic-bezier(.22,1.4,.36,1); }
.appt-side-weekday.is-animating{ animation:apptSideIn .45s cubic-bezier(.22,1.4,.36,1) .05s backwards; }
.appt-side-monthyear.is-animating{ animation:apptSideIn .45s cubic-bezier(.22,1.4,.36,1) .1s backwards; }
.appt-side-details{
  margin-top:auto; padding-top:22px; border-top:1px solid rgba(255,255,255,.28);
}
.appt-detail-label{ font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; opacity:.7; margin-bottom:12px; }
.appt-detail-row{ display:flex; justify-content:space-between; gap:14px; font-size:13.5px; margin-bottom:10px; }
.appt-detail-row span{ opacity:.8; }
.appt-detail-row strong{ font-weight:600; text-align:right; display:inline-block; }
.appt-detail-row strong.is-animating{ animation:apptSideIn .4s cubic-bezier(.22,1.4,.36,1); }

/* --- panel derecho: calendario funcional --- */
.appt-main{ flex:1; min-width:0; padding:32px 34px; position:relative; }
@media (max-width:760px){ .appt-main{ padding:26px; } }
.appt-view{ display:none; }
.appt-view.active{ display:block; animation:apptViewIn .35s var(--ease); }
@keyframes apptViewIn{
  from{ opacity:0; transform:translateX(14px); }
  to{ opacity:1; transform:translateX(0); }
}

.appt-nav-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; }

.appt-line{ border:none; border-top:1.5px solid var(--line); margin:18px 0; }

.appt-weekdays{
  display:grid; grid-template-columns:repeat(7,1fr);
  font-size:11px; font-weight:700; letter-spacing:.04em; color:var(--grey);
  text-align:center; margin-bottom:8px;
}
.appt-day-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.appt-day{
  aspect-ratio:1/1; display:flex; align-items:center; justify-content:center;
  font-size:13px; border-radius:50%; color:var(--ink); position:relative;
  transition:background .15s var(--ease), color .15s var(--ease);
}
.appt-day.empty{ visibility:hidden; pointer-events:none; }
.appt-day:hover:not(.disabled){ background:var(--blue-50); }
.appt-day.today{ background:var(--blue-50); font-weight:800; color:var(--blue-600); }
.appt-day.today:hover:not(.disabled){ background:var(--blue-100); }
.appt-day.today::after{
  content:''; position:absolute; bottom:5px; width:4px; height:4px; border-radius:50%; background:var(--blue-600);
}
.appt-day.selected{ background:var(--blue-600); color:var(--white); font-weight:700; }
.appt-day.selected::after{ background:var(--white); }

.appt-back{
  display:flex; align-items:center; gap:6px;
  font-size:13px; font-weight:700; color:var(--blue-600);
}
.appt-back svg{ width:14px; height:14px; }
.appt-back:hover{ color:var(--blue-700); }
#apptHourDateLabel{ font-size:13px; font-weight:700; color:var(--grey); text-transform:capitalize; }

.appt-hour-submit{ display:block; margin:26px auto 0; }

.appt-hour-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
@media (min-width:520px){ .appt-hour-grid{ grid-template-columns:repeat(3,1fr); } }
.appt-hour{
  padding:10px 13px; border:1.5px solid var(--grey); border-radius:12px;
  font-size:13.5px; font-weight:600; color:var(--ink);
  display:flex; align-items:center; justify-content:center; gap:6px;
  transition:border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.appt-hour-check{ display:none; width:14px; height:14px; flex-shrink:0; }
.appt-hour.active .appt-hour-check{ display:block; }
.appt-hour-label{ display:flex; flex-direction:column; align-items:center; line-height:1.3; }
.appt-hour-label small{ font-size:9.5px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; opacity:.85; }
.appt-hour:hover{ border-color:var(--ink); }
.appt-hour.active{
  background:var(--blue-600); border:1.5px solid var(--blue-600); color:var(--white);
  box-shadow:0 0 0 3px var(--blue-100);
  animation:apptHourPop .3s var(--ease);
}
.appt-hour.occupied,
.appt-hour:disabled{
  color:var(--grey); border-color:var(--line); background:var(--blue-50);
  text-decoration:line-through; cursor:not-allowed; opacity:.65;
}
.appt-hour.occupied:hover{ border-color:var(--line); }
.appt-hour-grid.loading{ opacity:.5; pointer-events:none; }
@keyframes apptHourPop{
  0%{ transform:scale(1); }
  45%{ transform:scale(1.06); }
  100%{ transform:scale(1); }
}
/* =========================================================
   FOOTER
   ========================================================= */
footer{
  position:relative; background:linear-gradient(180deg, var(--blue-50) 0%, rgba(245,247,255,.7) 100%);
  backdrop-filter:blur(22px); -webkit-backdrop-filter:blur(22px);
  border-top:1px solid var(--blue-100); color:var(--ink); padding:80px 40px 30px;
}
@media (max-width:720px){ footer{ padding:56px 22px 24px; } }
.footer-top{
  max-width:1240px; margin:0 auto;
  display:grid; grid-template-columns:1.6fr .8fr .8fr .9fr; gap:40px;
  padding-bottom:56px; border-bottom:1px solid var(--blue-100);
}
@media (max-width:900px){ .footer-top{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-top{ grid-template-columns:1fr; } }

.footer-brand .mark-word{ color:var(--ink); }
.footer-brand .mark-word span{ color:var(--blue-600); }
.footer-brand p{ margin-top:16px; font-size:13.5px; color:var(--grey); line-height:1.6; max-width:280px; }

.footer-newsletter{ margin-top:26px; }
.footer-newsletter-row{ display:flex; background:rgba(255,255,255,.6); border:1px solid var(--blue-100); border-radius:100px; overflow:hidden; }
.footer-newsletter-row input{
  flex:1; background:transparent; border:none; padding:13px 18px; color:var(--ink); font-size:13.5px;
}
.footer-newsletter-row input::placeholder{ color:var(--grey); }
.footer-newsletter-row input:focus{ outline:none; }
.footer-newsletter-row button{
  width:44px; display:flex; align-items:center; justify-content:center; background:var(--blue-600); color:var(--white);
}
.footer-newsletter-row button svg{ width:16px; height:16px; }
.footer-newsletter-msg{ margin-top:10px; font-size:12px; color:var(--blue-600); opacity:0; transition:opacity .2s var(--ease); }
.footer-newsletter-msg.show{ opacity:1; }

.footer-col h4{ font-family:var(--sans); font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--grey); margin-bottom:18px; }
.footer-col ul li{ margin-bottom:11px; }
.footer-col a{
  position:relative; display:inline-block; font-size:13.5px; color:var(--ink);
  transition:color .25s var(--ease), transform .25s var(--ease);
}
.footer-col a::after{
  content:''; position:absolute; left:0; bottom:-2px; width:0; height:1px;
  background:var(--blue-600); transition:width .3s var(--ease);
}
.footer-col a:hover{ color:var(--blue-600); transform:translateX(4px); }
.footer-col a:hover::after{ width:100%; }
.footer-col p{ font-size:13.5px; color:var(--ink); line-height:1.7; }

.footer-bottom{
  max-width:1240px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px;
  padding-top:26px; font-size:12.5px; color:var(--grey);
}
.footer-legal{ display:flex; gap:22px; }
.footer-legal a{ position:relative; color:var(--grey); transition:color .25s var(--ease); }
.footer-legal a::after{
  content:''; position:absolute; left:0; bottom:-2px; width:0; height:1px;
  background:var(--blue-600); transition:width .3s var(--ease);
}
.footer-legal a:hover{ color:var(--blue-600); }
.footer-legal a:hover::after{ width:100%; }
.footer-socials{ display:flex; gap:12px; }
.footer-socials a{
  width:32px; height:32px; border-radius:50%; border:1px solid var(--blue-100); background:rgba(255,255,255,.6);
  display:flex; align-items:center; justify-content:center; color:var(--ink);
  transition:background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.footer-socials svg{ width:14px; height:14px; transition:transform .3s var(--ease); }
.footer-socials a:hover{ background:var(--blue-600); border-color:var(--blue-600); color:var(--white); transform:translateY(-4px) scale(1.1); }
.footer-socials a:hover svg{ transform:rotate(-10deg) scale(1.1); }
.footer-socials a:active{ transform:translateY(-1px) scale(0.95); }
/* =========================================================
   MODAL
   ========================================================= */
.modal-overlay{
  position:fixed; inset:0; z-index:200; background:rgba(8,24,72,.5); backdrop-filter:blur(4px);
  display:flex; align-items:center; justify-content:center; padding:20px;
  opacity:0; pointer-events:none; transition:opacity .35s var(--ease);
}
.modal-overlay.open{ opacity:1; pointer-events:auto; }
.modal-card{
  background:var(--white); border:1px solid var(--line); border-radius:24px; padding:44px; max-width:400px; width:100%;
  text-align:center; position:relative;
  opacity:0; transform:scale(.92) translateY(14px);
  transition:transform .45s cubic-bezier(.22,1.4,.36,1), opacity .35s var(--ease);
}
.modal-overlay.open .modal-card{ opacity:1; transform:scale(1) translateY(0); }
.modal-close{ position:absolute; top:16px; right:16px; width:30px; height:30px; display:flex; align-items:center; justify-content:center; border-radius:50%; color:var(--grey); transition:background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
.modal-close svg{ width:16px; height:16px; transition:transform .3s var(--ease); }
.modal-close:hover{ background:var(--blue-50); color:var(--blue-600); transform:rotate(90deg) scale(1.08); }
.modal-close:active{ transform:rotate(90deg) scale(0.9); }
.modal-icon{
  width:56px; height:56px; border-radius:50%; background:var(--blue-600); color:var(--white);
  display:flex; align-items:center; justify-content:center; margin:0 auto 20px;
  transform:scale(0);
  transition:transform .5s cubic-bezier(.34,1.56,.64,1) .1s;
}
.modal-overlay.open .modal-icon{ transform:scale(1); }
.modal-icon svg{ width:24px; height:24px; }
.modal-icon svg path{
  stroke-dasharray:30; stroke-dashoffset:30;
}
.modal-overlay.open .modal-icon svg path{
  animation:modalCheckDraw .45s var(--ease) .4s forwards;
}
@keyframes modalCheckDraw{ to{ stroke-dashoffset:0; } }
.modal-card h3{ font-size:22px; }
.modal-card p{ margin-top:10px; font-size:14px; color:var(--grey); line-height:1.55; }
.modal-ok{ margin-top:24px; }
/* =========================================================
   WHATSAPP FLOTANTE
   ========================================================= */
.whatsapp-float{
  position:fixed; right:26px; bottom:26px; z-index:150;
  width:60px; height:60px; border-radius:50%;
  background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 16px 32px -12px rgba(37,211,102,.55);
  transition:transform .25s var(--ease), box-shadow .25s var(--ease);
}
.whatsapp-float:hover{ transform:translateY(-4px) scale(1.06); box-shadow:0 20px 38px -12px rgba(37,211,102,.7); }
.whatsapp-float:active{ transform:translateY(-1px) scale(0.97); }
.whatsapp-float svg{ width:29px; height:29px; position:relative; z-index:2; }
.whatsapp-float-ring{
  position:absolute; inset:0; border-radius:50%;
  background:#25D366;
  animation:whatsappPulse 2.2s ease-out infinite;
}
.whatsapp-float-ring.delay{ animation-delay:1.1s; }
@keyframes whatsappPulse{
  0%{ transform:scale(1); opacity:.55; }
  100%{ transform:scale(2.1); opacity:0; }
}
.whatsapp-float-tip{
  position:absolute; right:72px; top:50%; transform:translateY(-50%) translateX(6px);
  background:var(--ink); color:#fff; font-size:12.5px; font-weight:600; white-space:nowrap;
  padding:8px 14px; border-radius:8px; opacity:0; pointer-events:none;
  transition:opacity .25s var(--ease), transform .25s var(--ease);
}
.whatsapp-float:hover .whatsapp-float-tip{ opacity:1; transform:translateY(-50%) translateX(0); }
@media (max-width:720px){
  .whatsapp-float{ right:16px; bottom:16px; width:54px; height:54px; }
  .whatsapp-float-tip{ display:none; }
}
@media (prefers-reduced-motion: reduce){ .whatsapp-float-ring{ animation:none; opacity:0; } }
/* =========================================================
   AGENDAR — espacio bajo el header flotante
   ========================================================= */
#appointment{ padding-top:168px; }
@media (max-width:900px){ #appointment{ padding-top:150px; } }
@media (max-width:560px){ #appointment{ padding-top:132px; } }
/* =========================================================
   PAGE BLINK — transición de página tipo parpadeo:
   dos "párpados" se cierran al salir y se abren al llegar.
   El overlay lo crea page-blink.js, aquí solo se estila.
   ========================================================= */
.page-blink{
  position:fixed; inset:0; z-index:9999;
  pointer-events:none;
  overflow:hidden;
}
/* Párpados con curva invertida (forma de ojo/almendra): a cada
   párpado se le "muerde" una elipse transparente en el borde donde
   se encuentran, así la abertura es amplia al centro y se cierra en
   punta hacia los lados, como un ojo real. La elipse mide 50vw de
   radio para que la punta caiga justo en los bordes de la pantalla.
   Los párpados miden 75% de alto para que, cerrados, se traslapen y
   el mordisco de uno quede cubierto por el otro (sin huecos). */
.page-blink::before,
.page-blink::after{
  content:''; position:absolute; left:0; width:100%; height:75%;
  transition:transform .42s cubic-bezier(.65,0,.35,1);
}
.page-blink::before{
  top:0;
  background:radial-gradient(ellipse 50vw 25vh at 50% 100%, transparent 99%, var(--ink) 100%);
}
.page-blink::after{
  bottom:0;
  background:radial-gradient(ellipse 50vw 25vh at 50% 0%, transparent 99%, var(--ink) 100%);
}
/* Estado inicial: cerrado (párpados traslapados cubriendo todo) */
.page-blink::before{ transform:translateY(0); }
.page-blink::after{ transform:translateY(0); }
/* Abierto: cada párpado se retrae fuera de la pantalla */
.page-blink.open::before{ transform:translateY(-110%); }
.page-blink.open::after{ transform:translateY(110%); }/* =========================================================
   MODAL — DATOS DE CONTACTO Y CÓDIGO DE VERIFICACIÓN
   ========================================================= */
.modal-form-card{ text-align:left; max-width:420px; }
.modal-form-card h3{ text-align:center; }
.modal-form-card > p{ text-align:center; }
.modal-form{ margin-top:22px; }
.modal-field{ margin-bottom:16px; }
.modal-field label{
  display:block; font-size:12.5px; font-weight:600; color:var(--ink); margin-bottom:6px;
}
.modal-field input{
  width:100%; padding:12px 16px; font-size:14px; color:var(--ink);
  background:var(--blue-50); border:1px solid var(--line); border-radius:12px;
  transition:border-color .2s var(--ease), background .2s var(--ease);
}
.modal-field input::placeholder{ color:var(--grey); }
.modal-field input:focus{ outline:none; border-color:var(--blue-600); background:var(--white); }
.modal-phone-row{ display:flex; align-items:center; gap:8px; }
.modal-phone-lada{
  flex-shrink:0; padding:12px 14px; font-size:14px; font-weight:600; color:var(--ink);
  background:var(--blue-100); border:1px solid var(--line); border-radius:12px;
}
.modal-phone-row input{ flex:1; }
.modal-form-error{
  min-height:16px; font-size:12.5px; color:#D64545; margin:-4px 0 4px; text-align:left;
}
.modal-form-card .modal-ok{ width:100%; }
.modal-code-row{ display:flex; gap:12px; justify-content:center; margin-top:20px; }
.modal-code-digit{
  width:52px; height:60px; text-align:center; font-size:24px; font-weight:700; color:var(--ink);
  background:var(--blue-50); border:1px solid var(--line); border-radius:12px;
}
.modal-code-digit:focus{ outline:none; border-color:var(--blue-600); background:var(--white); }
.modal-resend{
  display:block; margin:16px auto 0; font-size:12.5px; font-weight:600; color:var(--blue-600);
  text-align:center; text-decoration:underline; text-underline-offset:3px;
}
.modal-resend:disabled{ color:var(--grey); text-decoration:none; cursor:default; }

.modal-code-divider{
  display:flex; align-items:center; gap:12px; margin:18px 0 14px;
  font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--grey);
}
.modal-code-divider::before, .modal-code-divider::after{ content:''; flex:1; height:1px; background:var(--line); }

.modal-email-option{
  display:flex; align-items:center; justify-content:center; gap:9px;
  width:100%; padding:13px 16px; border:1.5px solid var(--line); border-radius:100px;
  font-size:12.5px; font-weight:600; color:var(--ink); background:var(--white);
  transition:border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.modal-email-option svg{ width:16px; height:16px; flex-shrink:0; color:var(--blue-500); }
.modal-email-option:hover{ border-color:var(--blue-300, var(--blue-500)); background:var(--blue-50); color:var(--blue-700); }

/* ---------- cuestionario rápido (modal 1.5) ---------- */
.modal-quest-card{ max-width:720px; }
.quest-grid{ display:grid; grid-template-columns:1fr 1fr; gap:0 36px; }
@media (max-width:640px){ .quest-grid{ grid-template-columns:1fr; } }
.quest-col{ display:flex; flex-direction:column; gap:20px; }

.modal-field select{
  width:100%; padding:12px 40px 12px 16px; font-size:14px; color:var(--ink);
  background-color:var(--blue-50); border:1px solid var(--line); border-radius:12px;
  appearance:none; -webkit-appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236670A6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat:no-repeat; background-position:right 14px center; background-size:16px;
  transition:border-color .2s var(--ease), background-color .2s var(--ease);
}
.modal-field select:focus{ outline:none; border-color:var(--blue-600); background-color:var(--white); }

.quest-radio-block + .quest-radio-block{ margin-top:2px; }
.quest-radio-title{ display:block; font-size:12.5px; font-weight:600; color:var(--ink); margin-bottom:10px; }
.quest-radio-subtitle{ display:block; font-size:13.5px; font-weight:700; color:var(--ink); margin-bottom:8px; }
.quest-radio-row{ display:flex; align-items:center; gap:16px; margin-bottom:9px; }
.quest-radio-row:last-child{ margin-bottom:0; }
.quest-radio-label{ min-width:68px; font-size:13px; font-weight:600; color:var(--grey); }
.quest-radio{ display:flex; align-items:center; gap:6px; font-size:13px; color:var(--ink); cursor:pointer; }
.quest-radio input{ width:16px; height:16px; accent-color:var(--blue-600); cursor:pointer; }

.quest-check-block{ margin-bottom:4px; }
.quest-check-hint{ display:block; font-size:11px; color:var(--grey); margin-bottom:10px; }
.quest-check{ display:flex; align-items:flex-start; gap:9px; margin-bottom:9px; font-size:13px; color:var(--ink); line-height:1.4; cursor:pointer; }
.quest-check:last-child{ margin-bottom:0; }
.quest-check input{ width:16px; height:16px; margin-top:1px; flex-shrink:0; accent-color:var(--blue-600); cursor:pointer; }