:root{--bg:#f9f2de;--ink:#111827;--muted:#6B7280;--card:#FFFFFF;--primary:#3C2A4D;--primary-600:#2F203D;--secondary:#164A5B;--accent:#D4A94E;--ring:#C7BEE2;--ok:#10B981;--danger:#EF4444;--radius:18px;--shadow-1:0 10px 20px rgba(0,0,0,.08);--shadow-2:0 20px 40px rgba(0,0,0,.12);--maxw:1200px}
*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:Nunito,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial,sans-serif;background:var(--bg);color:var(--ink);line-height:1.6;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{max-width:var(--maxw);margin-inline:auto;padding-inline:clamp(16px,4vw,32px)}
.grid{display:grid;gap:clamp(16px,2vw,24px)}
.btn{appearance:none;border:0;cursor:pointer;border-radius:calc(var(--radius) + 6px);padding:14px 18px;font-weight:600;background:linear-gradient(180deg,var(--accent),#B88C34);color:#111;box-shadow:var(--shadow-1);transition:.18s}
.btn:hover{transform:translateY(-2px);box-shadow:var(--shadow-2);filter:saturate(1.05)}
.btn--primary{background:linear-gradient(180deg,#5B3E79,var(--primary));color:#fff}
.btn--ghost{background:#fff;color:var(--primary);border:1px solid #E5E7EB}
.badge{display:inline-flex;gap:8px;align-items:center;border-radius:999px;padding:6px 12px;font-size:12px;border:1px solid #E5E7EB;background:#fff}
.chip{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:12px;background:#F3F4F6;color:#374151}
header{position:sticky;top:0;z-index:50;backdrop-filter:saturate(140%) blur(8px);background:rgba(252,251,248,.72);border-bottom:1px solid rgba(17,24,39,.06)}
.topbar{display:flex;gap:12px;align-items:center;justify-content:center;padding:8px 16px;font-size:13px;color:#374151}
nav{display:flex;align-items:center;justify-content:space-between;padding:12px 0}
.nav-left{display:flex;align-items:center;gap:14px}
.logo{display:flex;align-items:center;gap:10px;font-weight:700}
.logo-mark{width:36px;height:36px;border-radius:12px;background:conic-gradient(from 180deg,var(--accent),#fff0,var(--primary));box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.nav-links{display:none;gap:18px}
.nav-cta{display:flex;gap:10px;align-items:center}
.hamb{display:inline-flex;width:44px;height:44px;border:1px solid #E5E7EB;background:#fff;border-radius:12px;align-items:center;justify-content:center}
@media (min-width:880px){.nav-links{display:flex}.hamb{display:none}}

/* HERO */
.hero{position:relative;overflow:hidden}
/* Base: menos aire en todas las pantallas */
.hero .container{display:grid;align-items:center;grid-template-columns:1fr;gap:32px;padding-block:clamp(24px,4vw,56px)}
/* Desktop (≥960px): dos columnas + menos padding arriba/abajo */
@media (min-width:960px){
  .hero .container{grid-template-columns:1.1fr .9fr;padding-top:24px;padding-bottom:48px}
}
.h-eyebrow{letter-spacing:.12em;text-transform:uppercase;font-size:12px;color:var(--secondary);font-weight:700}
h1{font-family:"Fraunces",Georgia,serif;font-size:clamp(32px,5vw,54px);line-height:1.1;margin:10px 0 14px}
.lead{font-size:clamp(16px,2.2vw,20px);color:var(--muted)}
.hero-card{background:linear-gradient(180deg,#fff,#F8F7F3);border:1px solid #ECECEC;border-radius:calc(var(--radius) + 6px);padding:clamp(16px,3.5vw,28px);box-shadow:var(--shadow-2)}
.hero-media{position:relative}
.blob{position:absolute;inset:auto -20% -30% auto;width:70%;height:70%;filter:blur(60px);opacity:.4;background:radial-gradient(50% 50% at 50% 50%,var(--accent),transparent 60%)}
.form{display:grid;gap:22px}
.field{position:relative;padding-top:6px}
.control{width:100%;padding:18px 16px 14px;border-radius:16px;border:1px solid #E5E7EB;background:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 8px 18px rgba(17,24,39,.04);transition:border-color .15s,box-shadow .2s,transform .15s}
.control:focus{outline:none;border-color:var(--ring);box-shadow:0 12px 28px rgba(60,42,77,.15);transform:translateY(-1px)}
.label{position:absolute;left:14px;top:50%;transform:translateY(-50%);padding:0 6px;background:#fff;color:#6B7280;line-height:1;pointer-events:none;transition:all .15s ease}
.control:not(:placeholder-shown)+.label,.control:focus+.label,.control.has-value+.label{top:-10px;font-size:12px;color:var(--secondary);z-index:1;box-shadow:0 0 0 6px #fff}
.inline{display:grid;grid-template-columns:1fr 1fr;gap:22px}
@media (max-width:420px){.inline{grid-template-columns:1fr}}
.help{font-size:12px;color:#6B7280}
/* Links dentro de los textos de consentimiento / ayuda del formulario */
.help a:link,
.help a:visited{
  color: var(--primary);                 /* morado de marca */
  text-decoration: underline;            /* subrayado visible */
  text-underline-offset: 2px;            /* separa el subrayado del texto */
  text-decoration-thickness: 1.5px;
  font-weight: 600;                      /* un pelín más marcado */
}

.help a:hover,
.help a:focus{
  color: var(--primary-600);             /* tono un poco más oscuro al pasar */
  text-decoration-thickness: 2px;
}

/* Indicador de foco para usuarios de teclado */
.help a:focus-visible{
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}
section{padding-block:clamp(40px,8vw,96px)}
.section-title{font-family:"Fraunces",Georgia,serif;font-size:clamp(24px,3.8vw,36px);line-height:1.2;margin:0 0 10px}
.section-sub{color:var(--muted);margin:0 0 22px}
.card{background:var(--card);border:1px solid #ECECEC;border-radius:var(--radius);box-shadow:var(--shadow-1);padding:clamp(16px,2.6vw,24px)}
.steps{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.step-num{width:36px;height:36px;border-radius:10px;background:linear-gradient(180deg,#5B3E79,var(--primary));color:#fff;display:grid;place-items:center;font-weight:700;box-shadow:var(--shadow-1)}
.symbols{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.symbol{transition:transform .18s,box-shadow .18s}
.symbol:hover{transform:translateY(-3px);box-shadow:var(--shadow-2)}
.carousel{position:relative}
.carousel-track{display:flex;gap:16px;overflow:auto;scroll-snap-type:x mandatory;padding-bottom:8px}
.carousel .item{scroll-snap-align:start;min-width:min(90%,380px)}
.carousel button{position:absolute;top:-56px}
.carousel .prev{right:72px}
.carousel .next{right:16px}
details{background:#fff;border:1px solid #ECECEC;border-radius:12px;padding:16px 18px}
details+details{margin-top:12px}
summary{cursor:pointer;font-weight:600}
.cta{background:radial-gradient(100% 160% at 100% 0%, rgba(91,62,121,.12), #FFFFFF), linear-gradient(180deg, #fff, #F8F7F3);border:1px solid #ECECEC;border-radius:calc(var(--radius) + 6px)}
footer{padding-block:36px;border-top:1px solid rgba(17,24,39,.08);color:#4B5563}
[data-animate]{opacity:0;transform:translateY(10px);transition:opacity .5s,transform .5s}
.inview{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.btn,.symbol,.control,.carousel-track,[data-animate]{transition:none}}
.avatar{
  width:44px;
  height:44px;
  border-radius:50%;
  object-fit:cover;     /* recorte centrado */
  background:#eee;      /* color de fondo si hay transparencia */
}

/* Evitar desbordes horizontales raros en móvil */
html, body { overflow-x: hidden; }

/* Footer responsive y sin overflow */
.footer-grid{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center}
.footer-links{display:flex;flex-wrap:wrap;gap:16px}
@media (max-width:720px){
  .footer-grid{grid-template-columns:1fr !important;gap:12px}
  .footer-links{justify-content:flex-start}
}

/* Bio: apilar en móvil (vence al style inline con !important) */
@media (max-width:960px){
  #bio .container.grid{grid-template-columns:1fr !important;gap:18px !important}
  #bio img{width:100%;height:auto}
}

/* GARANTÍA: badges legibles (pastilla ancha, no círculo) */
#garantia .badge{
  display:flex;align-items:flex-start;width:100%;
  padding:14px 16px;line-height:1.45;font-size:14px;
  border:1.5px solid #ECECEC;border-radius:18px;background:#fff;
  white-space:normal;overflow-wrap:anywhere;
}
/* En móvil, una columna para los badges y radio un poco menor */
@media (max-width:560px){
  #garantia .card .grid{grid-template-columns:1fr !important}
  #garantia .badge{border-radius:16px;padding:14px 16px}
}

/* === Language switcher (flags) === */
.lang-inline{display:none;gap:10px;align-items:center;font-size:20px;line-height:1}
.lang-inline a[aria-current="true"]{opacity:.55;pointer-events:none}

.lang-switch{position:relative;margin-right:8px}
.lang-btn{
  display:inline-flex;align-items:center;justify-content:center;
  width:40px;height:40px;border:1px solid #E5E7EB;background:#fff;border-radius:12px;
  box-shadow:var(--shadow-1);cursor:pointer
}
.lang-btn:focus{outline:none;box-shadow:0 0 0 3px rgba(60,42,77,.15)}

.lang-menu{
  position:absolute;right:0;top:calc(100% + 8px);background:#fff;border:1px solid #ECECEC;border-radius:12px;
  box-shadow:var(--shadow-2);padding:8px;display:none;min-width:52px;z-index:60
}
.lang-menu a{
  display:block;font-size:20px;line-height:1;padding:8px;border-radius:8px;text-decoration:none
}
.lang-menu a[aria-current="true"]{opacity:.55;pointer-events:none}
.lang-switch.open .lang-menu{display:block}

.lang-inline{display:none !important;}
.lang-switch{display:inline-flex !important;}

/* === Modal legal === */
.modal{position:fixed; inset:0; display:none; z-index:100}
.modal.is-open{display:block}
.modal__backdrop{position:absolute; inset:0; background:rgba(17,24,39,.5); backdrop-filter:blur(2px)}
.modal__dialog{
  position:relative; margin:6vh auto; width:min(920px,92vw); height:min(80vh,92vh);
  background:#fff; border-radius:16px; box-shadow:var(--shadow-2); overflow:hidden
}
.modal__close{
  position:absolute; top:8px; right:10px; width:36px; height:36px; border:0; cursor:pointer;
  background:#fff; border-radius:999px; box-shadow:var(--shadow-1); font-size:20px; line-height:1
}
.modal__dialog iframe{width:100%; height:100%; border:0}
body.modal-open{overflow:hidden}