/* EQ21 Quirófanos
   Radios: tarjetas 18px, imágenes 14px, campos 10px, botones y chips en píldora. */
/* Gama de #54AAEF (el color de marca es el 400; el lienzo usa el 600 para que el texto blanco se lea):
   50 #F2F8FE · 100 #E2F0FD · 200 #C3E1FB · 300 #93C9F6 · 400 #54AAEF · 500 #3591DC
   600 #2476BC · 700 #1D5F98 · 800 #174A76 · 900 #0F3250
   El lienzo es 500 con degradados hacia 400 y 700; el texto largo vive en tarjetas claras (50) o en bandas 600-700. */
:root{
  --c-50:#F2F8FE; --c-100:#E2F0FD; --c-200:#C3E1FB; --c-300:#93C9F6; --c-400:#54AAEF; --c-500:#3591DC;
  --c-600:#2476BC; --c-700:#1D5F98; --c-800:#174A76; --c-900:#0F3250;
  /* tokens sobre el lienzo */
  --bg:var(--c-600); --surface:var(--c-50); --surface-2:rgb(255 255 255 / .12); --ink:#ffffff; --text:#F3F8FA; --muted:var(--c-100); --line:rgb(255 255 255 / .22);
  --brand:var(--c-900); --brand-hover:#0A2238; --brand-ink:#ffffff; --brand-soft:var(--c-400);
  --ok:#bff0d6; --bad:#ffd2d4;
  --shadow:0 1px 2px rgb(15 50 80 / .18),0 14px 34px -12px rgb(15 50 80 / .45);
  --r-card:18px; --r-img:14px; --r-field:10px;
  --font-sans:"Geist","Segoe UI",system-ui,-apple-system,sans-serif; --font-mono:"Geist Mono",ui-monospace,Menlo,monospace;
  --ease:cubic-bezier(.16,1,.3,1);
  color-scheme:light;
}
/* Tarjetas claras: vuelven a texto oscuro de la misma gama */
.trust,.tile-plain,.tile-tint,.product,.news-card,.form,.infog-panel,.hero-badge,.chips li,.round,.contact-list i{
  --surface:var(--c-50); --surface-2:var(--c-100); --ink:var(--c-900); --text:#1F3B55; --muted:#4B6880; --line:var(--c-200);
  --brand:var(--c-700); --brand-hover:var(--c-800); --brand-ink:#ffffff; --brand-soft:var(--c-100);
  --ok:#1d7a52; --bad:#b3323a;
  color:var(--text);
}
.form{--bg:#ffffff}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:84px;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--bg);color:var(--text);font:16px/1.6 var(--font-sans);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
h1,h2,h3{color:var(--ink);margin:0;font-weight:650;letter-spacing:-.02em}
h1{font-size:clamp(2.3rem,4.6vw,3.6rem);line-height:1.05;letter-spacing:-.035em}
h2{font-size:clamp(1.8rem,3.2vw,2.6rem);line-height:1.1;letter-spacing:-.03em}
h3{font-size:1.15rem;line-height:1.3}
p{margin:0}
.wrap{width:min(1240px,100% - 32px);margin-inline:auto}
.skip{position:absolute;left:-999px;top:8px;background:var(--brand);color:var(--brand-ink);padding:8px 14px;border-radius:999px;z-index:100}
.skip:focus{left:16px}
:focus-visible{outline:2px solid var(--brand);outline-offset:3px}

/* Botones */
.btn{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;font:600 15px/1 var(--font-sans);padding:14px 22px;border-radius:999px;border:1px solid transparent;text-decoration:none;cursor:pointer;transition:background .2s,color .2s,border-color .2s,transform .15s var(--ease),box-shadow .2s}
.btn:active{transform:translateY(1px) scale(.98)}
.btn-primary{background:var(--brand);color:var(--brand-ink);box-shadow:0 6px 18px -8px color-mix(in srgb,var(--brand) 70%,transparent)}
.btn-primary:hover{background:var(--brand-hover)}
.btn-ghost{color:var(--ink);border-color:var(--line);background:var(--surface)}
.btn-ghost:hover{border-color:var(--brand);color:var(--brand)}
.btn-outline{color:var(--brand);border-color:color-mix(in srgb,var(--brand) 40%,transparent);background:transparent}
.btn-outline:hover{background:var(--brand);color:var(--brand-ink)}
.btn-sm{padding:10px 16px;font-size:14px}
.btn i{font-size:1.1em}
.round{width:42px;height:42px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--ink);display:grid;place-items:center;cursor:pointer;transition:border-color .2s,transform .15s}
.round:hover{border-color:var(--brand)}
.round:active{transform:scale(.95)}

/* Navegación */
.nav{position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--bg) 82%,transparent);backdrop-filter:saturate(160%) blur(14px);-webkit-backdrop-filter:saturate(160%) blur(14px);border-bottom:1px solid transparent;transition:border-color .2s}
.nav[data-scrolled]{border-bottom-color:var(--line)}
.nav-inner{height:72px;display:flex;align-items:center;gap:28px}
.brand img{height:44px;width:auto}
.nav-links{display:flex;gap:4px;margin-left:auto}
.nav-links a{white-space:nowrap;font-size:14.5px;font-weight:500;color:var(--text);text-decoration:none;padding:8px 12px;border-radius:999px;transition:color .2s,background .2s}
.nav-links a:hover,.nav-links a[aria-current="true"]{color:var(--ink);background:var(--surface-2)}
.nav-cta{display:flex;align-items:center;gap:14px}
.phone{display:inline-flex;gap:6px;align-items:center;font:500 14px var(--font-mono);color:var(--ink);text-decoration:none}
.menu-toggle{display:none;width:42px;height:42px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font-size:20px;place-items:center;cursor:pointer}
@media (max-width:1240px){.phone{display:none}}
@media (max-width:1080px){
  .menu-toggle{display:grid}
  .nav-links{position:fixed;inset:72px 0 auto 0;flex-direction:column;gap:0;padding:8px 16px 20px;background:var(--bg);border-bottom:1px solid var(--line);transform:translateY(-8px);opacity:0;visibility:hidden;transition:opacity .2s,transform .25s var(--ease),visibility 0s .25s}
  .nav-links a{padding:14px 8px;font-size:17px;border-radius:0;border-bottom:1px solid var(--line)}
  .nav[data-open] .nav-links{opacity:1;transform:none;visibility:visible;transition:opacity .2s,transform .25s var(--ease)}
  .nav-cta{margin-left:auto}
}
@media (max-width:480px){.nav-cta .btn{display:none}}

/* Hero */
.hero{padding:clamp(32px,6vw,72px) 0 clamp(40px,6vw,80px)}
.hero-grid{display:grid;grid-template-columns:.84fr 1.26fr;gap:clamp(32px,5vw,72px);align-items:center}
.hero-copy h1{max-width:15ch;text-wrap:balance}
.lead{font-size:clamp(1.05rem,1.4vw,1.2rem);max-width:42ch;margin-top:22px;color:var(--text)}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}
.hero-media{position:relative}
.hero-main{margin:0;border-radius:var(--r-card);overflow:hidden;box-shadow:var(--shadow);aspect-ratio:4/3;background:var(--c-700)}
.hero-main img{width:100%;height:100%;object-fit:cover}
.hero-float{position:absolute;left:0;bottom:0;width:48%;margin:0;border-radius:var(--r-img);overflow:hidden;border:6px solid var(--bg);box-shadow:var(--shadow);aspect-ratio:4/3;background:var(--c-700)}
.hero-float img{width:100%;height:100%;object-fit:cover}

/* Carrusel del hero: cada diapositiva repite la composición de foto grande + foto chica.
   La que entra se funde encima de la que sale, que sigue opaca hasta que termina el cambio. */
.hero-slides{display:grid}
.hero-slide{grid-area:1/1;position:relative;padding:0 0 56px 40px;visibility:hidden;z-index:0;transition:visibility 0s .9s}
.hero-slide.is-active{visibility:visible;z-index:2;transition-delay:0s}
.hero-slide.is-leaving{visibility:visible;z-index:1}
.hero-slide .hero-main,.hero-slide .hero-float,.hero-tag{opacity:0;transition:opacity .75s var(--ease),transform .9s var(--ease)}
.hero-slide .hero-main img{transform:scale(1.06);transition:transform 1.6s var(--ease)}
.hero-slide .hero-float{transform:translateY(16px)}
.hero-tag{transform:translateY(-6px)}
.hero-slide.is-active .hero-main,.hero-slide.is-leaving .hero-main,.hero-slide.is-leaving .hero-float{opacity:1}
.hero-slide.is-active .hero-main img,.hero-slide.is-leaving .hero-main img{transform:none}
.hero-slide.is-active .hero-float{opacity:1;transform:none;transition-delay:.14s}
.hero-slide.is-active .hero-tag{opacity:1;transform:none;transition-delay:.26s}
.hero-slide.is-leaving .hero-float,.hero-slide.is-leaving .hero-tag{transition:none}
.hero-tag{position:absolute;top:14px;left:54px;z-index:3;display:inline-flex;align-items:center;gap:8px;max-width:calc(100% - 90px);padding:6px 14px 6px 6px;border-radius:999px;background:var(--c-50);color:#1F3B55;font-size:13.5px;font-weight:600;line-height:1.2;box-shadow:var(--shadow);text-decoration:none}
.hero-tag .ph:first-child{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--c-700);color:#fff;font-size:15px}
.hero-tag .ph-arrow-up-right{flex:none;font-size:14px;color:var(--c-700);transition:transform .2s var(--ease)}
.hero-tag:hover .ph-arrow-up-right{transform:translate(2px,-2px)}
.hero-tag:focus-visible{outline:2px solid #fff;outline-offset:3px}
.hero-tag .t-short{display:none}
/* Sin controles visibles: un temporizador invisible marca el cambio y se detiene igual que antes */
.hero-timer{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}
.hero-car[data-auto] .hero-timer{animation:hero-fill var(--hero-dur,6.5s) linear}
.hero-car[data-paused] .hero-timer{animation-play-state:paused}
@keyframes hero-fill{from{transform:scaleX(0)}to{transform:none}}
.hero-slides{touch-action:pan-y}
@media (prefers-reduced-motion:reduce){
  .hero-slide .hero-main,.hero-slide .hero-float,.hero-tag,.hero-slide .hero-main img{transition:opacity .25s linear;transform:none}
}
.hero-badge{position:absolute;z-index:5;right:18px;bottom:18px;display:flex;align-items:center;gap:12px;padding:12px 18px 12px 14px;border-radius:999px;background:var(--surface);box-shadow:var(--shadow);font-size:13px;line-height:1.2;color:var(--text)}
.hero-badge .num{font:600 28px/1 var(--font-mono);color:var(--brand)}
@media (max-width:860px){.hero-grid{grid-template-columns:1fr}.hero-slide{padding:0 0 40px 24px}.hero-tag{left:36px}}
/* El carrusel mide su propio ancho: nombre corto solo cuando la columna es muy angosta */
.hero-car{container-type:inline-size}
.hero-tag{white-space:nowrap}
@container (max-width:420px){.hero-tag{top:10px;font-size:13px}}
@container (max-width:340px){
  .hero-tag{padding-right:12px}
  .hero-tag .t-long,.hero-tag .ph-arrow-up-right{display:none}.hero-tag .t-short{display:inline}
}
@media (max-width:560px){.hero-tag{left:34px}}

/* Confianza */
.trust{border-block:1px solid var(--line);background:var(--surface)}
.trust-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:32px;align-items:center;padding-block:26px}
.facts{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.facts li{display:flex;gap:10px;font-size:14px;line-height:1.35}
.facts i{font-size:22px;color:var(--brand);flex:none}
.facts strong{color:var(--ink);font-weight:600}
.logos{display:flex;gap:28px;align-items:center;justify-content:flex-end}
.logos img{height:34px;width:auto;object-fit:contain}
@media (max-width:1000px){.trust-grid{grid-template-columns:1fr}.logos{justify-content:flex-start}}
@media (max-width:640px){.facts{grid-template-columns:1fr 1fr}.logos{gap:18px;flex-wrap:wrap}.logos img{height:28px}}

/* Secciones */
.section{padding:clamp(64px,9vw,112px) 0}
.section-soft{background:var(--surface-2)}
.section-lead{max-width:62ch;margin-top:14px;font-size:1.07rem}
.eyebrow{font:500 12px/1 var(--font-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--brand);margin-bottom:14px}

/* Bento */
.bento{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:minmax(240px,auto);gap:16px;margin-top:40px}
.tile{position:relative;border-radius:var(--r-card);overflow:hidden;background:var(--surface);border:1px solid var(--line);padding:24px;display:flex;flex-direction:column;gap:10px}
.tile p{font-size:15px}
.tile-xl{grid-column:span 2;grid-row:span 2}
.tile-wide{grid-column:span 2}
.tile-photo{color:#e9f1f6;border:0;justify-content:flex-end;min-height:280px}
.tile-photo h3{color:#fff;font-size:1.4rem}
.tile-photo p{color:#d3e1ea;max-width:52ch}
.tile-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .8s var(--ease)}
.tile-photo::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgb(8 24 34 / .15) 0%,rgb(8 24 34 / .55) 45%,rgb(8 24 34 / .92) 100%);z-index:1}
.tile-photo:hover .tile-bg{transform:scale(1.04)}
.tile-body{position:relative;z-index:2;display:flex;flex-direction:column;gap:10px}
.tile-logo{height:34px;width:auto;object-fit:contain;object-position:left;margin-bottom:6px}
.tile-xl .tile-logo{height:42px}
.tile-thumb{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:var(--r-img);margin-bottom:6px}
.tile-tint{background:linear-gradient(110deg,var(--brand-soft),var(--surface) 70%);grid-column:1/-1;display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto auto;column-gap:32px;align-items:center}
.tile-tint .tile-product{grid-row:span 2;margin:0}
.tile-tint h3{align-self:end}
.tile-tint p{align-self:start;max-width:60ch}
.tile-tint .tile-link{grid-column:3;grid-row:1/span 2;margin:0}
@media (max-width:640px){.tile-tint{grid-template-columns:1fr}.tile-tint .tile-product,.tile-tint .tile-link{grid-row:auto;grid-column:auto}}
.tile-product{height:120px;width:auto;object-fit:contain;margin:0 auto 6px;mix-blend-mode:multiply}
@media (prefers-color-scheme:dark){.tile-product{mix-blend-mode:normal;background:#fff;border-radius:var(--r-img);padding:8px;height:130px;width:100%;object-fit:contain}}
.tile-link{margin-top:auto;display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:14.5px;color:var(--brand);text-decoration:none;padding-top:6px}
.tile-photo .tile-link{color:#fff}
.tile-link:hover{text-decoration:underline;text-underline-offset:3px}
@media (max-width:1000px){.bento{grid-template-columns:1fr 1fr}.tile-xl{grid-row:span 1;min-height:420px}}
@media (max-width:640px){.bento{grid-template-columns:1fr}.tile-xl,.tile-wide{grid-column:auto}}

/* CEYE */
.section-ceye{background:radial-gradient(1200px 500px at 70% 0%,var(--brand-soft),transparent 70%)}
.ceye-wrap{margin-top:36px}
.ceye-figure .iso-figure{margin:0}
.ceye-figure .iso-plate{border-radius:var(--r-card);box-shadow:0 0 0 1px var(--line),var(--shadow)}
.ceye-figure .iso-legend{display:grid;gap:10px;margin-top:16px;font-size:14px}
.ceye-figure .iso-keys{display:flex;flex-wrap:wrap;gap:8px 18px}
.ceye-figure .iso-caption{max-width:80ch}

/* Infografías */
.tabs{display:inline-flex;flex-wrap:wrap;gap:4px;padding:4px;margin-top:32px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line)}
.tabs button{font:500 14.5px/1 var(--font-sans);padding:11px 18px;border-radius:999px;border:0;background:transparent;color:var(--text);cursor:pointer;transition:background .2s,color .2s}
.tabs button[aria-selected="true"]{background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}
.infog-panel{margin:20px 0 0;background:#fff;border-radius:var(--r-card);border:1px solid var(--line);overflow:hidden;box-shadow:var(--shadow)}
.infog-panel img{width:100%;height:auto;transition:opacity .3s}
.infog-panel img[data-loading]{opacity:.25}
.infog-panel figcaption{display:flex;justify-content:flex-end;align-items:center;gap:16px;padding:0 20px 16px}
.infog-panel .cap{margin-right:auto;font-size:14px;line-height:1.45;color:var(--muted);max-width:70ch}
@media (max-width:640px){.infog-panel figcaption{flex-direction:column;align-items:flex-start}}
/* planos: en teléfono se deslizan a un tamaño legible */
@media (max-width:640px){#panel-planos{overflow-x:auto;overscroll-behavior-x:contain}#panel-planos img{width:780px;max-width:none}}
.plan-hint{display:none;margin-top:10px;font-size:14px;color:var(--muted);align-items:center;gap:8px}
@media (max-width:640px){.plan-hint{display:flex}}
.dl{display:inline-flex;gap:6px;align-items:center;font-weight:600;font-size:14px;color:#1f5a7d;text-decoration:none}
.dl:hover{text-decoration:underline}
@media (max-width:640px){.tabs{display:flex;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none;border-radius:var(--r-field)}.tabs button{flex:none}}

/* Productos */
.row-head{display:flex;justify-content:space-between;align-items:end;gap:16px}
.scroller-ctrl{display:flex;gap:8px}
.products{list-style:none;margin:32px 0 0;padding:0 0 12px;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(260px,1fr);gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;overscroll-behavior-x:contain}
.product{scroll-snap-align:start;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:16px;display:flex;flex-direction:column;gap:8px}
.product-img{background:#fff;border-radius:var(--r-img);aspect-ratio:4/3;display:grid;place-items:center;overflow:hidden;margin-bottom:8px}
.product-img img{width:100%;height:100%;object-fit:contain}
.product-img.dark img{object-fit:cover}
.product p{font-size:14.5px}
.product-foot{margin-top:auto;padding-top:10px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.price{font:600 18px var(--font-mono);color:var(--ink)}
.price small{font-size:12px;color:var(--muted)}
.price.muted{font:500 13px var(--font-sans);color:var(--muted)}
@media (min-width:1200px){.products{grid-auto-columns:calc((100% - 64px)/5)}.scroller-ctrl{visibility:hidden}}

/* Mantenimiento */
.maint{display:grid;grid-template-columns:1fr 1.05fr;gap:clamp(32px,5vw,72px);align-items:start}
.maint-media{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;gap:12px;position:sticky;top:100px}
.maint-media img{border-radius:var(--r-img);object-fit:cover;width:100%;height:100%}
.maint-media .m1{grid-column:span 2;aspect-ratio:16/9}
.maint-media .m2,.maint-media .m3{aspect-ratio:1}
.maint-copy>p{margin-top:16px;max-width:58ch}
.chips-group{margin-top:28px}
.chips-group h3{font-size:13px;font-family:var(--font-mono);font-weight:500;color:var(--muted);letter-spacing:.04em}
.chips{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.chips li{font-size:14px;padding:8px 14px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line);color:var(--ink)}
.norm{margin:32px 0 0;padding:18px 22px;border-left:3px solid var(--brand);background:var(--surface-2);border-radius:0 var(--r-field) var(--r-field) 0;font-size:15px;color:var(--ink)}
@media (max-width:860px){.maint{grid-template-columns:1fr}.maint-media{position:static}}

/* Galería (única marquesina de la página) */
.gallery{padding:0 0 clamp(48px,7vw,88px)}
.marquee{overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.marquee-track{display:flex;gap:14px;width:max-content;animation:marquee 60s linear infinite}
.marquee-track img{height:200px;width:auto;aspect-ratio:4/3;object-fit:cover;border-radius:var(--r-img)}
.marquee:hover .marquee-track{animation-play-state:paused}
@keyframes marquee{to{transform:translateX(calc(-50% - 7px))}}
@media (prefers-reduced-motion:reduce){.marquee-track{animation:none}.marquee{overflow-x:auto}}
@media (max-width:640px){.marquee-track img{height:140px}}

/* Noticias */
/* Información CEYE en el home: fila compacta de tarjetas iguales que rota sola */
.section-news{padding:clamp(48px,6vw,72px) 0}
.section-news .row-head{align-items:end}
.section-news .section-lead{margin-top:8px}
.news-head-acts{display:flex;align-items:center;gap:8px;flex:none}
.news-head-acts .btn{margin-left:6px}
.news-rot{margin-top:24px}
.news-track{list-style:none;margin:0;padding:2px 2px 6px;display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 48px) / 4);gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.news-track::-webkit-scrollbar{display:none}
.news-track li{display:flex;scroll-snap-align:start}
.news-card{flex:1;display:flex;flex-direction:column;gap:8px;text-decoration:none;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:10px 10px 14px;transition:border-color .2s,transform .3s var(--ease)}
.news-card:hover{border-color:var(--brand);transform:translateY(-2px)}
.news-card img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:var(--r-img);background:var(--c-100)}
.news-kicker{font:500 11.5px var(--font-mono);color:var(--brand);padding:2px 4px 0;letter-spacing:.04em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.news-card h3{padding:0 4px;font-size:1rem;line-height:1.35;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.news-date{margin-top:auto;padding:0 4px;font-size:12.5px;color:var(--muted)}
@media (max-width:1080px){.news-track{grid-auto-columns:calc((100% - 32px) / 3)}}
@media (max-width:760px){.news-track{grid-auto-columns:calc((100% - 16px) / 2)}.news-head-acts .round{display:none}}
@media (max-width:520px){.news-track{grid-auto-columns:78%}.section-news .row-head{flex-direction:column;align-items:start}.news-head-acts .btn{margin-left:0}}

/* Contacto */
.contact{display:grid;grid-template-columns:.85fr 1.15fr;gap:clamp(32px,5vw,72px);align-items:start}
.contact-copy>p{margin-top:16px;max-width:44ch}
.contact-list{list-style:none;margin:28px 0 0;padding:0;display:grid;gap:14px}
.contact-list li{display:flex;align-items:center;gap:12px;color:var(--ink)}
.contact-list i{width:40px;height:40px;border-radius:999px;display:grid;place-items:center;background:var(--surface);border:1px solid var(--line);color:var(--brand);font-size:18px;flex:none}
.contact-list a{text-decoration:none;font-weight:500}
.contact-list a:hover{color:var(--brand)}
.form{display:grid;grid-template-columns:1fr 1fr;gap:18px 16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:clamp(20px,3vw,32px);box-shadow:var(--shadow)}
.field{display:flex;flex-direction:column;gap:7px}
.field-full{grid-column:1/-1}
.field label{font-size:14px;font-weight:550;color:var(--ink)}
.field input,.field select,.field textarea{font:16px/1.4 var(--font-sans);color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:var(--r-field);padding:12px 14px;transition:border-color .2s,box-shadow .2s;width:100%}
.field textarea{resize:vertical;min-height:120px}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 22%,transparent)}
.field [aria-invalid="true"]{border-color:var(--bad)}
.hint{font-size:13px;color:var(--muted)}
.err{font-size:13px;color:var(--bad);min-height:0}
.err:empty{display:none}
.check{flex-direction:row;flex-wrap:wrap;align-items:flex-start;gap:10px}
.check input{width:20px;height:20px;margin:2px 0 0;accent-color:var(--brand);flex:none}
.check label{font-weight:400;color:var(--text);flex:1}
.check .err{flex-basis:100%}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form-foot{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.form-status{font-size:14.5px}
.form-status[data-state="ok"]{color:var(--ok)}
.form-status[data-state="error"]{color:var(--bad)}
.form button[aria-busy="true"]{opacity:.7;pointer-events:none}
.form button[aria-busy="true"] i{animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media (max-width:860px){.contact{grid-template-columns:1fr}}
@media (max-width:560px){.form{grid-template-columns:1fr}}

/* Pie */
.footer{border-top:1px solid var(--line);background:var(--surface);padding:48px 0 24px;font-size:14.5px}
.footer-grid{display:grid;grid-template-columns:1.2fr 2fr 1fr;gap:32px;align-items:start}
.footer-logo{height:48px;width:auto;margin-bottom:12px}
.footer nav{display:flex;flex-wrap:wrap;gap:8px 22px}
.footer a{text-decoration:none;color:var(--text)}
.footer a:hover{color:var(--brand)}
.footer-contact{display:grid;gap:6px;justify-items:end;font-family:var(--font-mono)}
.footer-base{display:flex;justify-content:space-between;margin-top:36px;padding-top:18px;border-top:1px solid var(--line);color:var(--muted);font-size:13px}
@media (max-width:760px){.footer-grid{grid-template-columns:1fr}.footer-contact{justify-items:start}}

/* Aparición al hacer scroll */
@media (prefers-reduced-motion:no-preference){
  .js .reveal{opacity:0;transform:translateY(18px);transition:opacity .7s var(--ease) var(--d,0ms),transform .7s var(--ease) var(--d,0ms)}
  .js .reveal[data-in]{opacity:1;transform:none}
}

/* CEYE y selladora en teléfono: versión propia (tools/figuras/adaptar.mjs) */
.fig-adapt>.fig-live{display:contents}
