/* ==========================================================================
   SEOWebfy — «Un solo sistema, iluminado.»
   main.css se genera concatenando assets/css/src/*.css (node tools/build-css.mjs).
   Orden: tokens → base → layout → componentes → páginas → utilidades → movimiento → impresión.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink-0: #050A09;
  --ink-1: #0B1311;
  --ink-2: #121B18;
  --line: #22302B;
  --amber: #F4B53D;
  --amber-deep: #C8862A;
  --mint: #8EB26B;
  --text-1: #EDE8DF;
  --text-2: #A39E94;
  --text-3: #878279; /* aclarado desde #6E6A63 para cumplir AA (ver DECISIONES.md) */
  --line-strong: #33443E; /* hover de campos */
  --error: #F0A58B;       /* texto de error (el color nunca es la única señal) */
  --error-line: #E08A6D;
  --halo: radial-gradient(ellipse at 0% 0%, rgba(232, 178, 94, .14), transparent 60%);
  --halo-soft: radial-gradient(ellipse at 0% 0%, rgba(232, 178, 94, .07), transparent 55%);
  --amber-40: rgba(244, 181, 61, .4);
  --amber-glow: 0 0 32px rgba(244, 181, 61, .35);

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px; --s-11: 176px;

  --r-input: 4px; --r-btn: 6px; --r-img: 12px; --r-card: 16px; --r-panel: 24px;

  --gutter: clamp(20px, 5vw, 64px);
  --gap: 24px;
  --section-y: clamp(96px, 11vw, 176px);
  --header-h: 64px;

  --font: "Schibsted Grotesk", "SWF Fallback", ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) {
  :root { --gap: 32px; --header-h: 72px; }
}

/* ---------- 2. Fuente (autoalojada, variable 400–900) ---------- */
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "SWF Fallback"; src: local("Arial");
  size-adjust: 100.5%; ascent-override: 96%; descent-override: 26%; line-gap-override: 0%;
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--s-5)); }
body {
  margin: 0; background: var(--ink-0); color: var(--text-1);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.7; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--amber); color: var(--ink-0); }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, .h1, .h2, .h3 { font-weight: 600; text-wrap: balance; }
h1, .h1 { font-size: clamp(2.5rem, 4.6vw, 4rem); line-height: 1.05; letter-spacing: -.03em; max-width: 22ch; }
h2, .h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; letter-spacing: -.025em; max-width: 22ch; }
h3, .h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.2; letter-spacing: -.015em; }
p { text-wrap: pretty; max-width: 64ch; }
.lead { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.55; color: var(--text-2); }
.small { font-size: .9375rem; line-height: 1.6; }
.muted { color: var(--text-2); }
sup.reg { font-size: .5em; line-height: 0; vertical-align: super; font-weight: 400; margin-left: .06em; letter-spacing: 0; }

/* ---------- 4. Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }

.section { padding-block: var(--section-y); }
.section--contrast { background: var(--ink-1); border-block: 1px solid var(--line); }
.section--light { background: var(--halo), var(--ink-0); }
/* Dos secciones Base seguidas forman un bloque: no se duplica el aire. */
.section--base + .section--base { padding-top: 0; }
.section__head { margin-bottom: var(--s-8); }
.section__head > * + * { margin-top: var(--s-5); }

.skip-link {
  position: absolute; left: var(--s-4); top: var(--s-4); z-index: 200; padding: 12px 16px;
  background: var(--amber); color: var(--ink-0); font-weight: 600; border-radius: var(--r-btn);
  text-decoration: none; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.ph { display: block; width: 100%; background: var(--ink-2); border-radius: var(--r-img); }

/* ---------- 5. Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 24px;
  border: 1px solid transparent; border-radius: var(--r-btn);
  font-size: 1rem; font-weight: 600; line-height: 1; letter-spacing: .005em; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
}
.btn--primary { background: var(--amber); color: var(--ink-0); }
.btn--primary:hover { background: var(--amber-deep); box-shadow: var(--amber-glow); }
.btn--secondary { background: transparent; border-color: var(--line); color: var(--text-1); }
.btn--secondary:hover { border-color: var(--amber); }
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: var(--r-btn); }
@media (max-width: 767px) { .btn { width: 100%; } }

.link {
  color: var(--text-1); text-decoration: none; font-weight: 600; padding-block: 12px;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 9px) / 0 1px no-repeat, linear-gradient(var(--text-3), var(--text-3)) 0 calc(100% - 9px) / 100% 1px no-repeat;
  transition: background-size .25s var(--ease);
}
.link:hover, .link:focus-visible { background-size: 100% 1px, 100% 1px; }

/* ---------- 6. Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--ink-0);
  border-bottom: 1px solid transparent; transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-header.is-scrolled { background: rgba(5, 10, 9, .85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
/* La cabecera va a todo el ancho con el margen lateral del sistema: logo y texto del hero comparten eje. */
.site-header .container { width: auto; max-width: none; margin-inline: 0; padding-inline: var(--gutter); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: var(--header-h); flex-wrap: wrap; }
.site-header__logo { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.site-header__logo img { height: 32px; width: auto; }
.site-nav { display: flex; align-items: center; gap: var(--s-6); }
.site-nav__list { display: flex; align-items: center; gap: var(--s-2); }
.site-nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--s-3);
  color: var(--text-2); text-decoration: none; font-size: .9375rem; font-weight: 500; transition: color .2s var(--ease);
}
.site-nav__link:hover { color: var(--text-1); }
.site-nav__link[aria-current="page"] { color: var(--text-1); box-shadow: inset 0 -1px 0 var(--amber); }
.site-nav__cta { min-height: 44px; padding-block: 12px; width: auto; }
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; border-radius: var(--r-btn); cursor: pointer; color: var(--text-1);
}
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

@media (min-width: 768px) {
  .site-header__logo img { height: 36px; }
}
@media (max-width: 1023px) {
  /* Sin JS: el menú es una lista visible bajo la cabecera. */
  .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: var(--s-4); padding-bottom: var(--s-5); }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__link { font-size: 1.0625rem; border-bottom: 1px solid var(--line); padding-inline: 0; }
  .site-nav__link[aria-current="page"] { box-shadow: none; color: var(--amber); }
  .site-nav__cta { width: 100%; }
  /* Con JS: panel a pantalla completa. */
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; padding: var(--s-7) var(--gutter) var(--s-8);
    background: var(--ink-0); overflow-y: auto; justify-content: space-between;
    visibility: hidden; opacity: 0; transition: opacity .25s var(--ease), visibility 0s linear .25s;
  }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
  .js .site-nav__link { font-size: clamp(2rem, 8vw, 3rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; min-height: 64px; border-bottom: 0; color: var(--text-1); }
  .js .site-nav__link[aria-current="page"] { color: var(--amber); }
  .js .site-header.is-menu-open { background: var(--ink-0); -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.is-locked { overflow: hidden; }
}

/* ---------- 7. Pie ---------- */
.site-footer { background: var(--ink-0); border-top: 1px solid var(--line); padding-block: var(--s-8) var(--s-7); }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5) var(--s-7); }
.site-footer__logo { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__logo img { height: 32px; width: auto; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.site-footer__nav a, .site-footer__mail {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; font-size: .9375rem; transition: color .2s var(--ease);
}
.site-footer__nav a:hover, .site-footer__mail:hover { color: var(--text-1); }
.site-footer__mail { color: var(--text-1); }
.site-footer__legal { margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--line); color: var(--text-3); font-size: .875rem; line-height: 1.6; }
.site-footer__legal p { max-width: none; }
.site-footer__legal a { color: inherit; text-decoration: none; }
.site-footer__legal a:hover { color: var(--text-1); }
.site-footer__links { display: flex; flex-wrap: wrap; margin-top: var(--s-3); }
.site-footer__links li { display: inline-flex; align-items: center; }
.site-footer__links li + li::before { content: "·"; margin-inline: var(--s-2); }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 767px) {
  .site-footer__top { flex-direction: column; align-items: flex-start; }
  .site-footer__nav { flex-direction: column; }
  .site-footer__links { flex-direction: column; }
  .site-footer__links li + li::before { content: none; }
}

/* ---------- 8. Cabecera interior ---------- */
.page-header { padding-block: clamp(72px, 9vw, 128px) clamp(56px, 6vw, 88px); background: var(--halo-soft), var(--ink-0); }
.page-header--plain { background: var(--ink-0); }
.page-header .lead { margin-top: var(--s-5); max-width: 56ch; }
.page-header + .section--base { padding-top: clamp(24px, 3vw, 48px); }

/* ---------- 9. Franja de confianza ---------- */
.trust__title { margin-bottom: var(--s-8); }
.trust__grid { display: grid; gap: var(--s-7) var(--gap); }
.trust__item .icon { color: var(--amber); margin-bottom: var(--s-5); }
.trust__name { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.01em; font-weight: 600; margin-bottom: var(--s-3); max-width: none; }
.trust__item p { color: var(--text-2); font-size: 1rem; line-height: 1.6; max-width: 34ch; }
@media (min-width: 768px) { .trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .trust__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- 10. Bandas CTA ---------- */
.cta-band { padding-block: clamp(56px, 6vw, 88px); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6) var(--s-8); }
.cta-band__text { max-width: 30ch; font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.2; letter-spacing: -.015em; font-weight: 600; text-wrap: balance; }
.cta-band .btn { flex: none; }
@media (max-width: 767px) { .cta-band__inner { flex-direction: column; align-items: stretch; } }

.band { text-align: center; }
.band__inner { display: flex; flex-direction: column; align-items: center; gap: var(--s-7); }
.band h2 { max-width: 20ch; }

/* ---------- 11. Tarjetas de servicio (Inicio) ---------- */
.service-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.service-card {
  display: flex; flex-direction: column; padding: var(--s-3); background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-card);
  text-decoration: none; transition: border-color .3s var(--ease);
}
.service-card:hover, .service-card:focus-visible { border-color: var(--amber-40); }
.service-card:focus-visible { border-radius: var(--r-card); }
.service-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: calc(var(--r-card) - var(--s-3)); background: var(--ink-1); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.03); }
.service-card__body { padding: var(--s-5) var(--s-3) var(--s-4); }
.service-card h3 { font-size: 1.375rem; margin-bottom: var(--s-3); }
.service-card p { color: var(--text-2); font-size: 1rem; line-height: 1.6; }
@media (min-width: 1280px) { .service-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .service-cards {
    display: flex; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: var(--s-3);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .service-cards::-webkit-scrollbar { display: none; }
  .service-card { flex: 0 0 85%; scroll-snap-align: start; }
}

/* ---------- 12. Filas de servicio (Servicios) ---------- */
.service-rows { display: grid; gap: var(--s-10); }
.service-row { display: grid; gap: var(--s-6) var(--gap); align-items: center; scroll-margin-top: calc(var(--header-h) + var(--s-5)); }
.service-row__media { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-img); background: var(--ink-1); }
.service-row__media img { width: 100%; height: 100%; object-fit: cover; }
.service-row__body > * + * { margin-top: var(--s-5); }
.service-row__body p { color: var(--text-2); }
.checklist { display: grid; gap: var(--s-3); }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-3); align-items: start; font-size: 1rem; line-height: 1.5; }
.checklist .icon { color: var(--mint); margin-top: 2px; }
@media (max-width: 1023px) { .service-rows { gap: var(--s-9); } }
@media (min-width: 1024px) {
  .service-row { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .service-row__media { grid-column: 1 / span 7; grid-row: 1; }
  .service-row__body { grid-column: 8 / span 5; grid-row: 1; padding-left: var(--s-7); }
  .service-row--flip .service-row__media { grid-column: 6 / span 7; }
  .service-row--flip .service-row__body { grid-column: 1 / span 5; padding-left: 0; padding-right: var(--s-7); }
}

/* ---------- 14. Paneles de demo ---------- */
/* Paletas de panel de demo (6.1). Bloque único: decisiones del director creativo, ajustables. */
.demo--casa-aurea   { --panel-bg: #F1E5D1; --panel-text-1: #241A12; --panel-text-2: #5E5143; --panel-border: rgba(36, 26, 18, .16); }
.demo--hombre-alfa  { --panel-bg: #0B0B0B; --panel-text-1: #EDE8DF; --panel-text-2: #A39E94; --panel-border: #22302B; }
.demo--bufete       { --panel-bg: #0D1420; --panel-text-1: #EDE8DF; --panel-text-2: #A39E94; --panel-border: rgba(237, 232, 223, .12); }
.demo--dental       { --panel-bg: #F5F1EA; --panel-text-1: #1F2A27; --panel-text-2: #55605C; --panel-border: rgba(31, 42, 39, .16); }
.demo--veterinaria  { --panel-bg: #2C3D2E; --panel-text-1: #EDE8DF; --panel-text-2: #BDB8AD; --panel-border: rgba(237, 232, 223, .14); }
.demo--inmobiliaria { --panel-bg: #EFEAE2; --panel-text-1: #1E1C1A; --panel-text-2: #5B564E; --panel-border: rgba(30, 28, 26, .16); }
.demo--dark  { --shot-border: rgba(255, 255, 255, .08); --panel-focus: var(--amber); }
.demo--light { --shot-border: rgba(0, 0, 0, .08); --panel-focus: var(--panel-text-1); }
/* Fin de las paletas. */

.demo-list { display: grid; gap: clamp(96px, 9vw, 128px); }
.demo {
  background: var(--panel-bg); color: var(--panel-text-1); border: 1px solid var(--panel-border); border-radius: var(--r-panel);
  padding: clamp(24px, 4vw, 64px); scroll-margin-top: calc(var(--header-h) + var(--s-5)); transition: border-color .3s var(--ease);
}
.demo:hover { border-color: var(--amber-40); }
.demo :focus-visible { outline-color: var(--panel-focus); }
.demo__copy > * + * { margin-top: var(--s-5); }
.demo__copy p { color: var(--panel-text-2); }
.demo .btn--secondary { color: var(--panel-text-1); border-color: var(--panel-border); }
.demo .btn--secondary:hover { border-color: var(--amber); }
.demo--light .btn--secondary:hover { border-color: var(--panel-text-1); }
.demo__shot { display: block; overflow: hidden; border-radius: var(--r-img); border: 1px solid var(--shot-border); background: var(--panel-bg); cursor: zoom-in; }
.demo__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.demo__shot:hover img { transform: scale(1.02); }
.demo__shot--editorial { aspect-ratio: 4 / 3; }
.demo__shot--home, .demo__shot--continuacion { aspect-ratio: 2 / 3; }

/* Móvil: texto arriba y una fila compacta (continuación grande + editorial y portada). */
.demo { display: grid; grid-template-columns: minmax(0, 64fr) minmax(0, 32fr); column-gap: 14px; row-gap: 14px; grid-template-areas: "copy copy" "cont edit" "cont home"; align-items: start; }
.demo__copy { grid-area: copy; margin-bottom: var(--s-5); }
.demo__shot--continuacion { grid-area: cont; }
.demo__shot--editorial { grid-area: edit; }
.demo__shot--home { grid-area: home; }

/* Tablet: texto arriba y tríptico escalonado a ancho completo. */
@media (min-width: 768px) {
  .demo { grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 0; grid-template-areas: none; }
  .demo__copy { grid-area: auto; grid-column: 1 / -1; grid-row: 1; max-width: 60ch; margin-bottom: var(--s-7); }
  .demo__shot--editorial { grid-area: auto; grid-column: 1 / span 3; grid-row: 2; }
  .demo__shot--home { grid-area: auto; grid-column: 4 / span 3; grid-row: 2; z-index: 1; }
  .demo__shot--continuacion { grid-area: auto; grid-column: 7 / span 2; grid-row: 2; margin-top: 42%; margin-left: -22%; z-index: 2; }
}
/* Escritorio: texto + editorial a un lado, portada protagonista y continuación al otro. */
@media (min-width: 1024px) {
  .demo { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr; }
  .demo__copy { grid-column: 1 / span 4; grid-row: 1; margin-bottom: var(--s-7); }
  .demo__shot--editorial { grid-column: 1 / span 4; grid-row: 2; align-self: end; }
  .demo__shot--home { grid-column: 6 / span 4; grid-row: 1 / span 2; }
  .demo__shot--continuacion { grid-column: 10 / span 3; grid-row: 1 / span 2; width: 82%; margin-top: 58%; margin-left: -18%; }
  .demo--flip .demo__copy, .demo--flip .demo__shot--editorial { grid-column: 9 / span 4; }
  .demo--flip .demo__shot--home { grid-column: 4 / span 4; }
  .demo--flip .demo__shot--continuacion { grid-column: 1 / span 3; justify-self: end; margin-left: 0; margin-right: -18%; }
}

/* Panel compacto (Inicio, prueba social) */
.demo-minis { display: grid; gap: var(--gap); }
.demo-mini {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 38%); gap: var(--s-5); align-items: start;
  background: var(--panel-bg); color: var(--panel-text-1); border: 1px solid var(--panel-border); border-radius: var(--r-panel);
  padding: clamp(20px, 3vw, 40px); text-decoration: none; transition: border-color .3s var(--ease);
}
.demo-mini:hover, .demo-mini:focus-visible { border-color: var(--amber-40); }
.demo-mini:focus-visible { outline-color: var(--panel-focus); border-radius: var(--r-panel); }
.demo-mini h3 { margin-bottom: var(--s-4); }
.demo-mini p { color: var(--panel-text-2); font-size: 1rem; line-height: 1.6; }
.demo-mini__shot { aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--r-img); border: 1px solid var(--shot-border); }
.demo-mini__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.demo-mini:hover .demo-mini__shot img { transform: scale(1.02); }
@media (min-width: 1024px) { .demo-minis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 15. Lightbox de demo ---------- */
.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 10, 9, .96); color: var(--text-1); }
.lightbox::backdrop { background: rgba(5, 10, 9, .9); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; padding: var(--s-3) var(--gutter); }
.lightbox__count { font-variant-numeric: tabular-nums; color: var(--text-2); font-size: .9375rem; }
.lightbox__stage { display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden; padding: 0 clamp(16px, 7vw, 96px) var(--s-6); }
.lightbox__stage img { max-width: 100%; max-height: calc(100dvh - 72px - var(--s-6)); width: auto; height: auto; object-fit: contain; border-radius: var(--r-img); }
.lightbox__btn {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink-2); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s var(--ease);
}
.lightbox__btn:hover { border-color: var(--amber); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: clamp(8px, 2vw, 32px); }
.lightbox__nav--next { right: clamp(8px, 2vw, 32px); }

/* ---------- 16. Tarjeta de artículo ---------- */
.article-card { display: flex; flex-direction: column; gap: var(--s-4); text-decoration: none; }
.article-card__media { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-img); background: var(--ink-2); }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.article-card:hover .article-card__media img { transform: scale(1.03); }
.article-card h3 { font-size: 1.375rem; text-wrap: pretty; background: linear-gradient(var(--amber), var(--amber)) 0 100% / 0 1px no-repeat; transition: background-size .25s var(--ease); display: inline; }
.article-card:hover h3 { background-size: 100% 1px; }
.article-card__excerpt { color: var(--text-2); font-size: 1rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card__date { color: var(--text-3); font-size: .875rem; }

/* ---------- 17. Formulario ---------- */
.form-panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(24px, 4vw, 48px); scroll-margin-top: calc(var(--header-h) + var(--s-5)); }
.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: .9375rem; font-weight: 500; margin-bottom: var(--s-2); }
.field__opt { color: var(--text-2); font-weight: 400; }
.field input, .field textarea {
  display: block; width: 100%; min-height: 48px; padding: 12px 14px; background: var(--ink-1); color: var(--text-1);
  border: 1px solid var(--line); border-radius: var(--r-input); font: inherit; font-size: 1rem; line-height: 1.5;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 168px; }
.field input:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--amber); box-shadow: 0 0 0 2px var(--amber); }
.field [aria-invalid="true"] { border-color: var(--error-line); }
.field__error { margin-top: var(--s-2); color: var(--error); font-size: .9375rem; line-height: 1.4; }
.form__alert { padding: var(--s-4) var(--s-5); border-radius: var(--r-input); border: 1px solid var(--error-line); color: var(--error); font-size: 1rem; line-height: 1.5; }
.form__success { padding: var(--s-5); border-radius: var(--r-input); border: 1px solid var(--mint); color: var(--mint); font-weight: 500; display: grid; grid-template-columns: 20px 1fr; gap: var(--s-3); align-items: start; }
.form__success .icon { margin-top: 4px; }
.form__note { color: var(--text-2); font-size: .9375rem; line-height: 1.6; }
.form__note a { color: var(--text-1); text-underline-offset: 3px; }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }

/* ---------- 18. Paginación y filtros ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-7); }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); border: 1px solid var(--line); border-radius: var(--r-input);
  color: var(--text-2); text-decoration: none; font-size: .9375rem; font-weight: 500; transition: border-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover { border-color: var(--amber-40); color: var(--text-1); }
.chip[aria-current] { border-color: var(--amber); color: var(--text-1); }
.pagination { margin-top: var(--s-8); }
.pagination ul { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pagination a, .pagination span.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: var(--r-input); text-decoration: none; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.pagination .current { border-color: var(--amber); }
.pagination a:hover { border-color: var(--amber-40); }

/* ---------- 19. Inicio: hero ---------- */
.hero { position: relative; background: var(--ink-0); }
.hero__media { position: relative; overflow: hidden; aspect-ratio: 5 / 4; background: var(--ink-0); }
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 91% 50%; }
.hero__video { opacity: 0; transition: opacity .8s var(--ease); }
.hero__video.is-playing { opacity: 1; }
.hero__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(to bottom, transparent, var(--ink-0)); pointer-events: none; }
.hero__content { padding: var(--s-5) var(--gutter) var(--s-8); }
.hero__title { font-size: clamp(2.25rem, 3.5vw, 4rem); line-height: 1.02; letter-spacing: -.035em; max-width: 14ch; }
.hero__sub { margin-top: var(--s-5); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .line__in { display: block; }
@media (min-width: 768px) and (max-width: 1099px) {
  .hero__media { aspect-ratio: 4 / 3; }
  .hero__poster, .hero__video { object-position: 100% 50%; }
  .hero__title { font-size: clamp(2.5rem, 6vw, 3.5rem); max-width: 16ch; }
}
@media (min-width: 1100px) {
  .hero { height: clamp(50.6vw, calc(100svh - var(--header-h)), 56.25vw); overflow: hidden; }
  .hero__media { position: absolute; inset: 0; aspect-ratio: auto; }
  .hero__poster, .hero__video { object-position: center top; }
  .hero__media::after { content: none; }
  .hero__content { position: absolute; left: var(--gutter); top: 8%; max-width: 46%; padding: 0; }
  .hero__title { max-width: none; }
  /* Subtítulo y botones viven en la columna negra del vídeo (x < 0.31 W): nunca pisan la instalación. */
  .hero__sub, .hero__actions { max-width: min(52ch, calc(31vw - var(--gutter) - 16px)); }
  .hero__actions { max-width: calc(31vw - var(--gutter) - 8px); }
}

/* ---------- 20. Inicio: secciones ---------- */
.statement { font-size: clamp(1.375rem, 2.3vw, 2rem); line-height: 1.4; letter-spacing: -.015em; color: var(--text-1); max-width: 34ch; text-wrap: pretty; }
.statement--note { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.55; letter-spacing: 0; color: var(--text-1); max-width: 56ch; padding-left: var(--s-5); border-left: 2px solid var(--amber); }
.statement--intro { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.55; letter-spacing: 0; color: var(--text-2); max-width: 60ch; }
.col-2-9 { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .col-2-9 { grid-column: 2 / span 8; }
  .statement { max-width: none; }
}
.split { display: grid; gap: var(--s-5) var(--gap); align-items: start; }
.split p { color: var(--text-2); }
@media (min-width: 1024px) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .split > :first-child { grid-column: 1 / span 5; }
  .split > :last-child { grid-column: 7 / span 6; padding-top: .4em; }
}
.social__foot { margin-top: var(--s-7); }

/* ---------- 21. Nosotros ---------- */
.founder { display: grid; gap: var(--s-7) var(--gap); align-items: start; }
.founder__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-card); background: var(--ink-0); }
.founder__portrait figcaption { margin-top: var(--s-3); color: var(--text-3); font-size: .9375rem; }
.founder__body > * + * { margin-top: var(--s-5); }
.founder__body p { color: var(--text-2); font-size: 1.125rem; }
@media (min-width: 768px) and (max-width: 1023px) { .founder__portrait { max-width: 420px; } }
@media (min-width: 1024px) {
  .founder { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .founder__portrait { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + var(--s-6)); }
  .founder__body { grid-column: 7 / span 6; padding-top: var(--s-5); }
}

/* ---------- 22. Blog ---------- */
.featured { display: grid; gap: var(--s-6) var(--gap); align-items: center; text-decoration: none; }
.featured__media { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-img); background: var(--ink-2); }
.featured__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.featured:hover .featured__media img { transform: scale(1.02); }
.featured__body > * + * { margin-top: var(--s-4); }
.featured__body h2 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); max-width: none; text-wrap: pretty; }
.featured__body p { color: var(--text-2); }
.featured__date { color: var(--text-3); font-size: .875rem; }
.featured .link { display: inline-block; }
.featured:hover .link { background-size: 100% 1px, 100% 1px; }
@media (min-width: 1024px) {
  .featured { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .featured__media { grid-column: 1 / span 7; }
  .featured__body { grid-column: 8 / span 5; }
}
.article-grid { display: grid; gap: var(--s-8) var(--gap); }
@media (min-width: 768px) { .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- 23. Artículo y páginas legales: columna de lectura ---------- */
.article { padding-block: clamp(56px, 7vw, 104px) var(--section-y); }
.article__inner { width: min(100% - 2 * var(--gutter), 68ch); margin-inline: auto; font-size: 1.125rem; }
.article__meta { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); color: var(--text-3); font-size: .9375rem; margin-bottom: var(--s-5); }
.article__meta a { color: var(--text-2); text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 24px; }
.article__meta span + span::before, .article__meta span + a::before { content: "·"; margin-right: var(--s-3); }
.article__title { font-size: clamp(2.125rem, 4vw, 3.25rem); max-width: none; }
.article__cover { margin-top: var(--s-7); aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-img); background: var(--ink-2); }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { margin-top: var(--s-7); font-size: 1.125rem; line-height: 1.75; color: var(--text-1); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.4em; }
.prose p, .prose li { max-width: none; }
.prose h2 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); margin-top: 2.2em; max-width: none; }
.prose h3 { font-size: clamp(1.3125rem, 2vw, 1.5rem); margin-top: 1.9em; }
.prose h4 { font-size: 1.125rem; font-weight: 600; margin-top: 1.7em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--text-3); }
.prose a:not(.btn) { color: var(--text-1); text-decoration: underline; text-decoration-color: var(--amber-40); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-decoration-color .2s var(--ease); }
.prose a:not(.btn):hover { text-decoration-color: var(--amber); }
.prose strong { font-weight: 600; }
.prose blockquote { padding-left: var(--s-5); border-left: 2px solid var(--line); color: var(--text-2); }
.prose img { border-radius: var(--r-img); }
.prose figure { margin-block: 2em; }
.prose figcaption { margin-top: var(--s-3); color: var(--text-3); font-size: .9375rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.4em; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-img); }
.prose table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 1rem; line-height: 1.5; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; background: var(--ink-1); }
.prose tr:last-child td { border-bottom: 0; }
.cta-band--inline { margin-block: 2.6em; padding: clamp(24px, 4vw, 40px); background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r-card); }
.cta-band--inline .cta-band__inner { gap: var(--s-5) var(--s-6); }
.cta-band--inline .cta-band__text { font-size: clamp(1.25rem, 1.8vw, 1.5rem); max-width: 24ch; }
@media (max-width: 899px) { .cta-band--inline .cta-band__inner { flex-direction: column; align-items: stretch; } }
.article--legal .article__title { font-size: clamp(2.125rem, 4vw, 3rem); }

/* ---------- 24. Contacto ---------- */
.contact { display: grid; gap: var(--s-7) var(--gap); align-items: start; }
.contact__aside > * + * { margin-top: var(--s-6); }
.contact__expect { font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.25; letter-spacing: -.015em; font-weight: 600; max-width: 20ch; text-wrap: balance; }
.contact__aside p { color: var(--text-2); max-width: 40ch; }
.contact__aside p.contact__expect { color: var(--text-1); }
.contact__mail { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-1); font-size: 1.25rem; font-weight: 600; text-decoration: none; background: linear-gradient(var(--amber), var(--amber)) 0 calc(100% - 6px) / 0 1px no-repeat; transition: background-size .25s var(--ease); }
.contact__mail:hover { background-size: 100% 1px; }
.contact__direct > * + * { margin-top: var(--s-1); }
@media (min-width: 1024px) {
  .contact { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .contact__aside { grid-column: 1 / span 5; padding-top: var(--s-4); }
  .contact__form { grid-column: 6 / span 7; }
}

/* ---------- 25. 404 ---------- */
.notfound__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-7); }
.notfound { min-height: 56vh; }

/* ---------- 28. Subir arriba: dos niveles de luz ---------- */
/* Reposo: disco oscuro con borde y halo ámbar permanentes y flecha clara (se ve sobre fondos oscuros y claros).
   Hover, foco o pulsación: se enciende entero, también por dentro, y el halo se expande. */
.to-top {
  position: fixed; right: clamp(16px, 2.5vw, 32px); bottom: clamp(16px, 2.5vw, 32px); z-index: 90;
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink-1); border: 1.5px solid var(--amber); color: var(--text-1); text-decoration: none; cursor: pointer;
  box-shadow: 0 0 0 4px rgba(5, 10, 9, .55), 0 0 22px rgba(244, 181, 61, .45), inset 0 0 12px rgba(244, 181, 61, .16);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), visibility 0s linear .3s;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover, .to-top:focus-visible, .to-top:active {
  --hot: #FFD47A; /* ámbar encendido */
  background: radial-gradient(circle at 50% 35%, var(--hot), var(--amber) 60%, var(--amber-deep)); color: var(--ink-0); border-color: var(--hot);
  box-shadow: 0 0 0 4px rgba(244, 181, 61, .22), 0 0 46px 6px rgba(244, 181, 61, .7), 0 0 110px 12px rgba(244, 181, 61, .32);
  transform: translateY(-2px) scale(1.06);
}
.to-top:focus-visible { border-radius: 50%; outline-offset: 5px; }

/* ---------- 29b. Luz que acompaña al cursor: un único elemento para toda la web (solo puntero fino) ---------- */
.halo {
  position: fixed; left: 0; top: 0; z-index: 95; width: 340px; height: 340px; margin: -170px 0 0 -170px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 181, 61, .15), rgba(244, 181, 61, .05) 45%, transparent 68%);
  mix-blend-mode: screen; pointer-events: none; opacity: 0; will-change: transform; transition: opacity .45s var(--ease);
}
.halo.is-on { opacity: 1; }
.halo.is-on.is-dim { opacity: .12; } /* sobre paneles claros no debe ensuciar */

/* ---------- 29. Textura y profundidad (Pulido 2) ----------
   Grano muy fino, halos de luz desde la izquierda y filos de luz en los separadores.
   Todo va por encima del color de fondo de cada superficie: el contraste no cambia. */
:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .93 0 0 0 0 .91 0 0 0 0 .87 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.075'/%3E%3C/svg%3E");
  --card-light: linear-gradient(140deg, rgba(232, 178, 94, .075), transparent 42%);
  --edge: linear-gradient(90deg, rgba(244, 181, 61, .55), var(--line) 26%, var(--line) 74%, rgba(142, 178, 107, .3));
}
body { background-image: var(--grain); }
.section--contrast {
  background: var(--grain), radial-gradient(ellipse 55% 130% at 0% 50%, rgba(232, 178, 94, .075), transparent 70%), var(--ink-1);
  border-block: 1px solid transparent; border-image: var(--edge) 1;
}
.section--light { background: var(--grain), var(--halo), var(--ink-0); }
.site-footer {
  background: var(--grain), radial-gradient(ellipse 50% 90% at 0% 100%, rgba(232, 178, 94, .06), transparent 70%), var(--ink-0);
  border-top: 1px solid transparent; border-image: var(--edge) 1;
}
.service-card, .form-panel, .cta-band--inline { background-image: var(--card-light); }

/* Cabeceras interiores: grano, halo y, donde se indica, una imagen del universo de la marca fundida hacia el texto. */
.page-header { position: relative; overflow: hidden; isolation: isolate; background: var(--grain), var(--halo-soft), var(--ink-0); }
.page-header--plain { background: var(--grain), var(--ink-0); }
.page-header > .container { position: relative; z-index: 1; }
.page-header__media {
  position: absolute; inset: 0; z-index: 0; opacity: .24; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 92%); mask-image: linear-gradient(to bottom, black 20%, transparent 92%);
}
.page-header__media img { width: 100%; height: 100%; object-fit: cover; }
.page-header--compact { padding-block: clamp(40px, 4.4vw, 64px) clamp(32px, 3.4vw, 48px); }
.page-header .chip { background: rgba(5, 10, 9, .62); }
@media (min-width: 1024px) {
  .page-header__media {
    inset: 0 0 0 auto; width: min(64%, 1040px); opacity: .62;
    -webkit-mask-image: linear-gradient(to right, transparent 4%, black 68%), linear-gradient(to top, transparent, black 38%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 4%, black 68%), linear-gradient(to top, transparent, black 38%);
    mask-composite: intersect;
  }
}

/* Franja de confianza: iconos mayores dentro de un medallón con anillo de luz. */
.trust__item { display: grid; gap: var(--s-5); align-content: start; justify-items: start; }
.trust__item .icon { margin: 0; }
.trust__name { margin-bottom: var(--s-3); }
.medal {
  position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; color: var(--amber);
  background: radial-gradient(circle at 30% 22%, rgba(232, 178, 94, .24), transparent 62%), var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line), 0 0 36px -10px rgba(244, 181, 61, .4);
}
.medal .icon { filter: drop-shadow(0 0 6px rgba(244, 181, 61, .45)); }
.medal::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; padding: 1.5px;
  background: conic-gradient(from calc(var(--k, 1) * 75deg), transparent 0 58%, var(--amber) 80%, var(--mint) 94%, transparent 100%);
  -webkit-mask: linear-gradient(black, black) content-box, linear-gradient(black, black); -webkit-mask-composite: xor;
  mask: linear-gradient(black, black) content-box exclude, linear-gradient(black, black);
}
.trust--compact { padding-block: var(--s-7); }
.trust--compact .trust__grid { gap: var(--s-6) var(--gap); }
.trust--compact .trust__item { grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4); }
.trust--compact .medal { width: 56px; height: 56px; }
.trust--compact .medal .icon { width: 26px; height: 26px; }
.trust--compact .trust__name { font-size: 1.125rem; margin-bottom: var(--s-2); }
.trust--compact .trust__item p { font-size: .9375rem; line-height: 1.55; }

/* Nosotros: presencia con imagen. */
.presence { display: grid; gap: var(--s-7) var(--gap); align-items: center; }
.presence__body > * + * { margin-top: var(--s-5); }
.presence__media { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-img); background: var(--ink-1); }
.presence__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) {
  .presence { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .presence__body { grid-column: 1 / span 6; }
  .presence__media { grid-column: 8 / span 5; }
}

/* Contacto: «sigue explorando». */
.section--tight { padding-top: var(--s-8); }
.explore__grid { display: grid; gap: var(--gap); }
.explore__card {
  display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); align-items: center; gap: var(--s-5); padding: var(--s-3);
  background: var(--card-light), var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-card); text-decoration: none; transition: border-color .3s var(--ease);
}
.explore__card:hover, .explore__card:focus-visible { border-color: var(--amber-40); }
.explore__card:focus-visible { border-radius: var(--r-card); }
.explore__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: calc(var(--r-card) - var(--s-3)); background: var(--ink-1); }
.explore__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.explore__card:hover .explore__media img { transform: scale(1.04); }
.explore__body { padding-right: var(--s-4); }
.explore__body h3 { font-size: 1.375rem; margin-bottom: var(--s-2); }
.explore__body p { color: var(--text-2); font-size: 1rem; line-height: 1.5; }
@media (min-width: 768px) { .explore__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 30. Efectos comunes ----------
   Un único observador (main.js, atributo data-fx) pone y quita estas clases según el elemento entra o sale
   de la pantalla, en las dos direcciones del scroll:
     is-in   → entrada (revelados)            is-live → bucles: solo corren mientras se ven
     is-hot  → equivalente táctil del hover   is-full → el elemento se ve entero
   Los efectos propios de cada página están en assets/css/src/fx/ (un archivo fx-<página>.css por página). */
[data-glow] { --nx: 0; --ny: 0; }
.hero__content { position: relative; z-index: 2; }
.band { position: relative; overflow: hidden; isolation: isolate; }
.band__inner { position: relative; z-index: 2; }
.band__fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
@keyframes swf-orbit { to { transform: rotate(1turn); } }

/* Medallones de la franja: el anillo de luz los recorre mientras se ven. */
.motion .medal.is-live::before { animation: swf-orbit 9s linear infinite; animation-delay: calc(var(--k, 1) * -1.9s); }

/* Tarjetas con borde: el táctil recibe al entrar en pantalla lo que el ratón recibe en hover. */
.service-card.is-hot, .explore__card.is-hot { border-color: var(--amber-40); }

/* ---------- 33. Método / Proceso: el hilo de luz une los cuatro pasos ----------
   Escritorio: cuando el bloque se ve entero y centrado, el hilo se traza y los pasos se encienden uno a uno.
   Móvil: cada paso se enciende cuando su propia tarjeta se ve entera. Al salir de pantalla, todo vuelve a su
   estado inicial y se repite al volver a entrar. Sin movimiento, todo está encendido. */
.method { position: relative; }
.method__thread { display: none; }
.method__steps { position: relative; display: grid; gap: var(--s-5); }
.method__steps::before { content: ""; position: absolute; left: 27px; top: 40px; bottom: 40px; width: 1.5px; background: var(--line); }
.method__step {
  position: relative; padding: var(--s-5) var(--s-5) var(--s-5) var(--s-8); --c: var(--amber);
  background: var(--card-light), var(--ink-2); border: 1px solid color-mix(in srgb, var(--c) 38%, var(--line)); border-radius: var(--r-card);
  box-shadow: 0 30px 60px -50px var(--c);
  transition: border-color .8s var(--ease), transform .8s var(--ease), box-shadow .8s var(--ease);
}
.method__step:nth-child(2) { --c: #D2B44C; }
.method__step:nth-child(3) { --c: #B0B35C; }
.method__step:nth-child(4) { --c: var(--mint); }
/* Tramo del hilo entre este paso y el siguiente (móvil). */
.method__step::after {
  content: ""; position: absolute; left: 27px; top: 40px; width: 1.5px; height: calc(100% + var(--s-5)); margin-left: -1px; pointer-events: none;
  background: linear-gradient(to bottom, var(--c), color-mix(in srgb, var(--c) 60%, var(--mint))); box-shadow: 0 0 10px var(--c);
  transform-origin: 50% 0; transition: transform .9s var(--ease);
}
.method__step:last-child::after { content: none; }
.method__node {
  position: absolute; z-index: 1; left: 21px; top: 34px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--ink-0); border: 1.5px solid var(--c); box-shadow: 0 0 0 4px var(--ink-2), 0 0 18px var(--c);
  transition: border-color .7s var(--ease), box-shadow .7s var(--ease);
}
.method__num {
  display: block; margin-bottom: var(--s-4); font-size: clamp(2.5rem, 3.6vw, 3.25rem); line-height: 1; font-weight: 600; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums; color: var(--c); text-shadow: 0 0 28px color-mix(in srgb, var(--c) 45%, transparent);
  transition: color .8s var(--ease), text-shadow .8s var(--ease);
}
.method__step h3 { font-size: 1.375rem; margin-bottom: var(--s-3); }
.method__step p { color: var(--text-2); font-size: 1rem; line-height: 1.6; max-width: 32ch; }

/* Paso apagado (solo con movimiento, hasta que le llega el hilo). */
.motion .method__step:not(.is-full) { border-color: var(--line); box-shadow: none; }
.motion .method__step:not(.is-full)::after { transform: scaleY(0); }
.motion .method__step:not(.is-full) .method__node { border-color: var(--line-strong); box-shadow: 0 0 0 4px var(--ink-2); }
.motion .method__step:not(.is-full) .method__num { color: var(--line-strong); text-shadow: none; }

@media (min-width: 1024px) {
  .method { padding-top: 60px; }
  .method__thread { display: block; position: absolute; top: 0; left: 0; width: calc(100% + var(--gap)); height: 60px; overflow: visible; }
  .method__thread path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
  .method__thread-base { stroke: var(--line); stroke-width: 1; }
  .method__thread-line { stroke-width: 2; }
  .method__thread--light { filter: drop-shadow(0 0 6px rgba(244, 181, 61, .6)); }
  .method__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
  .method__steps::before, .method__step::after { content: none; }
  .method__step { padding: var(--s-6) var(--s-5) var(--s-6); transform: translateY(-6px); }
  .method__step::before { content: ""; position: absolute; left: -1px; top: -30px; width: 1px; height: 30px; background: linear-gradient(to bottom, var(--c), transparent); opacity: .7; transition: opacity .7s var(--ease); }
  .method__node { left: -7px; top: -37px; box-shadow: 0 0 0 4px var(--ink-0), 0 0 18px var(--c); }
  .section--contrast .method__node { box-shadow: 0 0 0 4px var(--ink-1), 0 0 18px var(--c); }

  /* En escritorio manda el bloque (.method.is-full), no cada tarjeta: secuencia de 0,95 s por paso. */
  .motion .method__thread--light { clip-path: inset(-20px 100% -20px -20px); transition: clip-path .5s var(--ease); }
  .motion .method.is-full .method__thread--light { clip-path: inset(-20px 0 -20px -20px); transition: clip-path 3.8s linear; }
  .motion .method .method__step, .motion .method .method__step.is-full { border-color: var(--line); box-shadow: none; transform: none; transition-duration: .5s; transition-delay: 0s; }
  .motion .method .method__step::before { opacity: 0; transition-delay: 0s; }
  .motion .method .method__step .method__node, .motion .method .method__step.is-full .method__node { border-color: var(--line-strong); box-shadow: 0 0 0 4px var(--ink-0); transition-delay: 0s; }
  .motion .method .method__step .method__num, .motion .method .method__step.is-full .method__num { color: var(--line-strong); text-shadow: none; transition-delay: 0s; }
  .motion .method.is-full .method__step { border-color: color-mix(in srgb, var(--c) 38%, var(--line)); box-shadow: 0 30px 60px -50px var(--c); transform: translateY(-6px); transition-duration: .9s; transition-delay: var(--w); }
  .motion .method.is-full .method__step::before { opacity: .7; transition-delay: var(--w); }
  .motion .method.is-full .method__step .method__node { border-color: var(--c); box-shadow: 0 0 0 4px var(--ink-0), 0 0 18px var(--c); transition-delay: var(--w); }
  .motion .method.is-full .method__step .method__num { color: var(--c); text-shadow: 0 0 28px color-mix(in srgb, var(--c) 45%, transparent); transition-delay: var(--w); }
  .method__step:nth-child(1) { --w: .1s; }
  .method__step:nth-child(2) { --w: 1.05s; }
  .method__step:nth-child(3) { --w: 2s; }
  .method__step:nth-child(4) { --w: 2.95s; }
}

/* ---------- 34. CTA intermedio: un destello recorre el filo superior ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; left: 0; top: 0; width: 34%; height: 1px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--amber) 45%, var(--mint) 55%, transparent); transform: translateX(-110%);
}
.motion .cta-band.is-live::before { opacity: 1; animation: swf-run 5.5s var(--ease) infinite; }
@keyframes swf-run { 0% { transform: translateX(-110%); } 70%, 100% { transform: translateX(400%); } }

/* ---------- 36. Ajustes de composición (Pulido 2, bloque 4) ---------- */

/* Hero ≥ 1100: titular mayor y bloque centrado en vertical. El H1 (hasta el 46 % del ancho) termina
   siempre en el 45 % de la altura, por encima de la instalación; subtítulo y botones siguen en la
   columna negra del vídeo (x < 0,31 W). */
@media (min-width: 1100px) {
  .hero__content { position: absolute; left: var(--gutter); top: 0; bottom: 0; width: 46%; max-width: none; display: grid; grid-template-rows: 45% auto auto 1fr; align-content: start; }
  .hero__title { align-self: end; font-size: clamp(2.25rem, 4.9vw, 5.5rem); }
}

/* Demos de Inicio: imagen legible (editorial 4:3) a la mitad de la tarjeta; en móvil, encima del texto. */
.demo-mini { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
.demo-mini__shot { order: -1; aspect-ratio: 4 / 3; }
@media (min-width: 768px) {
  .demo-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: var(--s-6); }
  .demo-mini__shot { order: 0; }
}

/* Párrafos de apertura alineados con el margen izquierdo de los titulares. */
.col-2-9 { grid-column: 1 / -1; }
@media (min-width: 1024px) { .col-2-9 { grid-column: 1 / span 9; } }

/* Demos (Pulido 3): sin hueco entre el subtítulo y el párrafo de entrada, y con jerarquía entre ambos. */
.swf-demos .page-header { padding-bottom: 0; }
.swf-demos .page-header .lead { font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.35; color: var(--text-1); max-width: 40ch; text-wrap: balance; }
.swf-demos .page-header + .section--base { padding-top: clamp(32px, 3vw, 44px); padding-bottom: clamp(64px, 7vw, 96px); }
.swf-demos .statement--intro { font-size: 1.0625rem; line-height: 1.65; max-width: 62ch; }

/* Nosotros (Pulido 3): sin hueco muerto bajo el retrato y pie de foto legible. */
.swf-nosotros .page-header + .section--base { padding-bottom: var(--s-8); }
.founder__portrait figcaption { font-size: 1rem; color: var(--text-2); }

/* Banda CTA: frase en dos líneas. */
.cta-band__text { max-width: 44ch; }

/* ---------- 40. Movimiento base ----------
   <html> lleva la clase .motion solo si hay JS y el visitante NO ha pedido movimiento reducido
   (o si se revisa con ?movimiento=1). Sin .motion todo está en su estado final. */

/* Carga del hero: H1 por líneas con máscara; subtítulo y botones en fundido a los 500 ms. */
.motion .hero__title, .motion .hero__sub, .motion .hero__actions { opacity: 0; animation: swf-failsafe 0s linear 4s forwards; }
.motion .hero.is-ready .hero__title { opacity: 1; animation: none; }
.motion .hero.is-ready .line__in { transform: translateY(105%); animation: swf-line .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 80ms); }
.motion .hero.is-ready .hero__sub, .motion .hero.is-ready .hero__actions { animation: swf-fade .7s var(--ease) .5s forwards; }

/* Revelado de imágenes (filas de servicio y paneles de demo). Los textos no se animan. */
/* Se recorta el contenido, no el contenedor: así el observador ve entrar y salir al contenedor
   y el revelado se repite cada vez que vuelve a pantalla, en las dos direcciones. */
.motion .reveal > * { clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--ease), transform .9s var(--ease), filter .6s var(--ease), opacity .6s var(--ease); }
.motion .reveal.is-in > * { clip-path: inset(0 0 0 0); }

@media (min-width: 1024px) {
  .motion .service-row__media > :is(img, .over) { transform: translate3d(0, var(--py, 0px), 0) scale(var(--z, 1.08)); will-change: transform; }
}
@keyframes swf-line { to { transform: none; } }
@keyframes swf-fade { to { opacity: 1; } }
@keyframes swf-failsafe { to { opacity: 1; } }

/* Sin .motion: nada se anima ni se desplaza con suavidad. */
html:not(.motion) { scroll-behavior: auto; }
html:not(.motion) *, html:not(.motion) *::before, html:not(.motion) *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }

/* ---------- 41. Impresión mínima ---------- */
@media print {
  .site-header, .site-footer__nav, .nav-toggle, .hero__video, .to-top, .halo, .cta-band, .band, .lightbox { display: none !important; }
  body { background: none; color: var(--ink-0); }
  .prose, .lead, p, h1, h2, h3 { color: var(--ink-0) !important; }
}
