@charset "UTF-8";

/* ==========================================================================
   PROMODITE · site.css
   Estructura:
   01 Tokens         06 Header          11 Contacto
   02 Base           07 Hero            12 Footer
   03 Temas/fondos   08 Servicios       13 Páginas utilitarias / legales
   04 Utilidades     09 Proyectos       14 Responsive
   05 Splash         10 Trayectoria     15 Movimiento reducido
                     · Compañía
   ========================================================================== */

/* 01 · TOKENS ------------------------------------------------------------ */
:root {
  /* Neutros */
  --white: #fff;
  --grey-50: #f6f7fa;
  --grey-100: #eceff4;
  --grey-200: #dde2ea;
  --grey-300: #c3cad6;
  --grey-500: #6a7488;
  --grey-700: #3a4358;

  /* Azules / marinos */
  --navy-950: #050a18;
  --navy-900: #0a1226;
  --navy-800: #111d3c;
  --navy-700: #1a2a55;
  --blue-700: #1740c9;
  --blue-600: #1f5cff;
  --blue-500: #4a7dff;
  --blue-200: #c9d8ff;
  --blue-100: #e6edff;
  --blue-50: #f2f6ff;

  /* Acentos de alto contraste (solo puntos, líneas y bordes) */
  --magenta: #ff2e93;
  --magenta-ink: #c2006b;
  --turquoise: #19e3d0;
  --turquoise-ink: #00776e;
  --yellow: #ffd21f;

  /* Semánticos (los temas oscuros los sobrescriben) */
  --fg: var(--navy-900);
  --fg-soft: #4b566e;
  --fg-mute: var(--grey-500);
  --line: rgba(10, 18, 38, .12);
  --surface: var(--white);

  /* Compatibilidad con páginas legales */
  --ink: var(--navy-900);
  --ink-soft: #4b566e;
  --paper: var(--white);
  --accent: var(--magenta-ink);
  --forest: var(--blue-700);

  --grad-accent: linear-gradient(90deg, var(--turquoise), var(--blue-500) 55%, var(--magenta));
  --font-body: "Segoe UI Variable Text", "SF Pro Text", "Inter", "Aptos", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Segoe UI Variable Display", "SF Pro Display", "Inter", "Aptos", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-brand: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;

  --wrap: 1240px;
  --radius: 24px;
  --radius-sm: 14px;
  --header-h: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* 02 · BASE -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; background: var(--navy-950); }
body {
  margin: 0;
  background: var(--white);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
::selection { background: var(--magenta); color: var(--white); }
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 5px; border-radius: 4px; }
.wrap { width: min(calc(100% - 96px), var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 300; padding: 12px 20px; background: var(--navy-900); color: #fff; }
.skip-link:focus { top: 16px; }

/* 03 · TEMAS / FONDOS DE SECCIÓN ----------------------------------------- */
.bg-white { background: var(--white); }
.bg-grey { background: var(--grey-50); }
.bg-mist { background: linear-gradient(180deg, var(--blue-50), var(--grey-100)); }

.bg-navy,
.bg-graphite,
.bg-blue {
  --fg: var(--white);
  --fg-soft: rgba(255, 255, 255, .74);
  --fg-mute: rgba(255, 255, 255, .56);
  --line: rgba(255, 255, 255, .16);
  color: var(--fg);
}
.bg-navy { background: var(--navy-950); }
.bg-graphite { background: linear-gradient(180deg, #0c1428, #070c1a); }
.bg-blue { background: linear-gradient(135deg, var(--blue-700), var(--blue-600) 50%, #3a2fd0); }

/* 04 · UTILIDADES -------------------------------------------------------- */
.section { position: relative; padding-block: clamp(96px, 11vw, 170px); scroll-margin-top: 20px; overflow: clip; }

.eyebrow, .section-index, .small-label, .hero-aside-bottom, .hero-bottom, .project-top, .project-foot, .row-number, .history-item > span:first-child {
  font-size: 11px; letter-spacing: .14em; font-weight: 700; text-transform: uppercase;
}
.section-index { display: inline-flex; align-items: center; gap: 12px; color: var(--fg-mute); margin: 0 0 28px; }
.section-index::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--turquoise)); box-shadow: 0 0 0 5px color-mix(in srgb, var(--dot, var(--turquoise)) 22%, transparent); }

/* Botones y enlaces */
.button { min-height: 58px; display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; padding: 0 28px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: background .3s, box-shadow .3s, color .3s; }
.button span, .text-link span { font-size: 18px; font-weight: 400; transition: transform .35s var(--ease); }
.button:hover span, .text-link:hover span { transform: translate(3px, -3px); }
.button-primary { background: var(--white); color: var(--navy-950); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 12px 40px -8px rgba(25, 227, 208, .55); }
.button-primary:hover { background: var(--turquoise); box-shadow: 0 0 0 1px var(--turquoise), 0 16px 50px -6px rgba(25, 227, 208, .8); }
.button-dark { background: var(--navy-900); color: #fff; }
.button-dark:hover { background: var(--blue-600); }
.text-link { position: relative; display: inline-flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 600; padding-block: 12px 8px; }
.text-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: left; transition: transform .5s var(--ease); }
.text-link:hover::after { transform: scaleX(.35); }
.text-link--big { font-family: var(--font-display); font-size: clamp(22px, 3vw, 34px); font-weight: 600; letter-spacing: -.03em; }

/* Vidrio esmerilado */
.glass { background: linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-radius: var(--radius); }

/* Medios: imágenes con recorte y parallax */
.media { position: relative; overflow: hidden; aspect-ratio: var(--ar, 16/9); isolation: isolate; }
.media > .ph, .media > img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.media--cover { position: absolute; inset: 0; aspect-ratio: auto; z-index: 0; }

/* Placeholder de imagen (sustituir por <img>) */
.ph {
  background:
    radial-gradient(60% 80% at 18% 12%, var(--ph-a, rgba(74, 125, 255, .6)), transparent 62%),
    radial-gradient(55% 70% at 92% 92%, var(--ph-b, rgba(25, 227, 208, .3)), transparent 60%),
    linear-gradient(135deg, var(--ph-base-a, var(--navy-800)), var(--ph-base-b, var(--navy-950)));
}
.ph::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%); }
.ph::after { content: attr(data-file) "  ·  " attr(data-ratio); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; padding: 8px 12px; border: 1px dashed rgba(255, 255, 255, .5); border-radius: 8px; background: rgba(5, 10, 24, .45); color: #fff; font: 600 11px/1 var(--font-mono); letter-spacing: .04em; }
.media--cover > .ph::after { left: auto; right: 16px; top: auto; bottom: 16px; transform: none; }
.ph--hero { --ph-a: rgba(31, 92, 255, .55); --ph-b: rgba(255, 46, 147, .28); }
.ph--dark { --ph-a: rgba(26, 42, 85, .9); --ph-b: rgba(25, 227, 208, .16); }
.ph--blue { --ph-a: rgba(255, 255, 255, .25); --ph-b: rgba(255, 46, 147, .35); }

/* Placeholder de logo (sustituir por <img>) */
.logo-slot { position: relative; display: flex; align-items: center; justify-content: center; width: 184px; aspect-ratio: 3/1; padding: 3px 4px; border-radius: 12px; background: rgba(255, 255, 255, .96); border: 1px solid color-mix(in srgb, var(--acc, var(--blue-500)) 55%, transparent); box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .35); overflow: hidden; }
.logo-slot[data-file] { padding: 6px 8px; border-style: dashed; }
.logo-slot::after { content: attr(data-file); font: 600 9.5px/1.2 var(--font-mono); color: var(--navy-800); text-align: center; white-space: nowrap; }
.logo-slot:not([data-file])::after { content: none; }
.logo-slot img { width: 100%; height: 100%; object-fit: contain; }

/* Foco de luz que sigue al puntero (JS fija --mx / --my) */
.spot { position: relative; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--acc, var(--blue-500)) 22%, transparent), transparent 65%); z-index: 3; }
.spot:hover::after { opacity: 1; }

/* Revelado inicial controlado por JS (solo si hay JS y movimiento permitido) */
html.anim [data-hero], html.anim [data-hero-title] { visibility: hidden; }

/* 05 · SPLASH ------------------------------------------------------------ */
.splash { display: none; position: fixed; inset: 0; z-index: 200; place-items: center; background: radial-gradient(90% 70% at 50% 40%, var(--navy-800), var(--navy-950) 70%); overflow: hidden; cursor: pointer; }
html.is-splash .splash { display: grid; }
html.is-splash { overflow: hidden; }
.splash-glow { position: absolute; width: min(90vw, 780px); aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 140deg, rgba(25, 227, 208, .35), rgba(74, 125, 255, .4), rgba(255, 46, 147, .35), rgba(255, 210, 31, .18), rgba(25, 227, 208, .35)); filter: blur(90px); opacity: .0; }
.splash-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: clamp(22px, 4vh, 40px); }
.splash-logo { width: min(64vw, 400px, 50vh); height: auto; overflow: visible; }
.splash-logo path, .splash-logo rect { vector-effect: none; }
.logo-outer { fill: none; stroke: url(#logo-grad); stroke-width: 1; stroke-linejoin: miter; }
.logo-inner { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: .5; stroke-linejoin: miter; }
.logo-letter { fill: #fff; stroke: #fff; stroke-width: .14; stroke-linejoin: round; }
.logo-dot { transform-box: fill-box; transform-origin: center; }
.logo-dot--yellow { fill: var(--yellow); }
.logo-dot--magenta { fill: var(--magenta); }
.logo-dot--turquoise { fill: var(--turquoise); }
.splash-tag { margin: 0; font-size: clamp(10px, 1.4vw, 12px); letter-spacing: .32em; text-transform: uppercase; color: rgba(255, 255, 255, .7); text-align: center; padding-inline: 20px; }
.splash-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad-accent); transform: scaleX(0); transform-origin: left; }

/* 06 · HEADER ------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy-950); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border-bottom: 1px solid rgba(255, 255, 255, .08); color: #fff; transition: background .4s, box-shadow .4s; }
.site-header.is-scrolled { background: rgba(5, 10, 24, .9); box-shadow: 0 10px 40px -20px rgba(0, 0, 0, .6); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 30px; }
.wordmark, .footer-wordmark { font-family: var(--font-brand); font-weight: 700; letter-spacing: -.075em; font-size: 28px; line-height: 1; }
.wordmark-dot, .footer-wordmark span { color: var(--magenta); }
.primary-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 38px); font-size: 13px; font-weight: 600; }
.primary-nav a { position: relative; padding-block: 6px; color: rgba(255, 255, 255, .78); transition: color .25s; }
.primary-nav a:not(.nav-contacto)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--turquoise); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.primary-nav a:hover, .primary-nav a.is-active { color: #fff; }
.primary-nav a:hover::after, .primary-nav a.is-active::after { transform: scaleX(1); }
.primary-nav .nav-contacto { padding: 11px 20px; border-radius: 999px; color: var(--navy-950); background: #fff; transition: background .3s, box-shadow .3s; }
.primary-nav .nav-contacto:hover, .primary-nav .nav-contacto.is-active { background: var(--turquoise); color: var(--navy-950); box-shadow: 0 8px 30px -6px rgba(25, 227, 208, .7); }
.nav-contacto span { margin-left: 6px; }
.menu-toggle { display: none; }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad-accent); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* 07 · HERO -------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: clip; min-height: calc(100svh - var(--header-h)); min-height: max(680px, calc(100svh - var(--header-h))); display: flex; flex-direction: column; justify-content: space-between; text-align: center; }
.hero-bg { position: absolute; inset: 0; z-index: -3; opacity: .9; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 10, 24, .35), var(--navy-950) 96%); }
.hero-grid { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 75%); }
.hero-orbs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; display: block; }
.orb i { display: block; width: 100%; height: 100%; border-radius: 50%; filter: blur(70px); }
.orb--blue { width: min(60vw, 720px); aspect-ratio: 1; left: -12%; top: -18%; }
.orb--blue i { background: radial-gradient(circle, rgba(31, 92, 255, .85), transparent 68%); }
.orb--magenta { width: min(46vw, 520px); aspect-ratio: 1; right: -8%; top: 14%; }
.orb--magenta i { background: radial-gradient(circle, rgba(255, 46, 147, .6), transparent 68%); }
.orb--turquoise { width: min(42vw, 480px); aspect-ratio: 1; left: 30%; bottom: -22%; }
.orb--turquoise i { background: radial-gradient(circle, rgba(25, 227, 208, .5), transparent 68%); }

.hero-layout { display: flex; flex-direction: column; align-items: center; gap: clamp(44px, 6vw, 72px); padding-top: clamp(64px, 9vw, 130px); padding-bottom: clamp(44px, 5vw, 64px); }
.hero-main { display: flex; flex-direction: column; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 40px; padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .8); }
.eyebrow-mark { width: 8px; height: 8px; background: var(--turquoise); border-radius: 50%; box-shadow: 0 0 0 4px rgba(25, 227, 208, .22), 0 0 18px var(--turquoise); }
.hero h1 { font-size: clamp(50px, 9.4vw, 152px); line-height: .98; letter-spacing: -.058em; font-weight: 650; margin: 0 0 clamp(26px, 3vw, 40px); }
.hero h1 em, .contact-section h2 em, .company-section h2 em { font-style: normal; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.line-mask { padding-bottom: .16em; margin-bottom: -.16em; }
.hero-lead { font-size: clamp(19px, 2.1vw, 28px); max-width: 800px; line-height: 1.4; letter-spacing: -.02em; color: rgba(255, 255, 255, .92); text-wrap: balance; }
.hero-definition { max-width: 660px; color: var(--fg-soft); font-size: 15px; line-height: 1.7; margin: 24px 0 0; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 36px; margin-top: 42px; }
.hero .text-link { color: #fff; }

.hero-aside { position: relative; width: min(100%, 620px); padding: 26px 32px 24px; text-align: center; }
.hero-aside::before { content: ""; position: absolute; left: 32px; right: 32px; top: -1px; height: 2px; background: var(--grad-accent); border-radius: 2px; }
.hero-aside-top { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.small-label { font-size: 10px; letter-spacing: .1em; color: rgba(255, 255, 255, .6); }
.asterisk { color: var(--magenta); font-size: 34px; line-height: .8; font-family: Georgia, serif; }
.hero-aside p { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; letter-spacing: -.035em; line-height: 1.22; margin: 22px 0 22px; text-wrap: balance; }
.hero-aside strong { font-weight: 600; color: var(--turquoise); }
.aside-rule { display: block; height: 1px; background: rgba(255, 255, 255, .2); }
.hero-aside-bottom { display: block; font-size: 10px; color: rgba(255, 255, 255, .62); margin-top: 18px; }
.hero-aside-bottom span { color: var(--yellow); margin-inline: 8px; }
.hero-bottom { border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; padding-block: 20px 26px; font-size: 10px; color: rgba(255, 255, 255, .6); }
.scroll-cue span { display: inline-block; margin-left: 11px; color: var(--turquoise); font-size: 16px; }

/* Cabeceras de sección (centradas) */
.section-heading { max-width: 1040px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-heading h2, .company-section h2 { font-size: clamp(42px, 6.6vw, 100px); line-height: 1.02; letter-spacing: -.055em; font-weight: 650; margin: 0; }
.section-heading h2 span { color: var(--blue-600); }
.bg-navy .section-heading h2 span, .bg-graphite .section-heading h2 span { color: var(--turquoise); }
.section-intro { max-width: 760px; margin: 0 auto clamp(56px, 7vw, 96px); text-align: center; color: var(--fg-soft); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; }
.section-intro p { margin: 0; text-wrap: pretty; }
.section-intro p + p { margin-top: 22px; color: var(--fg-mute); }

/* 08 · SERVICIOS --------------------------------------------------------- */
.services-section::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 64px; background: linear-gradient(var(--turquoise), transparent); }
.service-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--grey-50); border: 1px solid var(--grey-200); transition: box-shadow .5s var(--ease), transform .5s var(--ease), border-color .4s; }
.service-card:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--acc) 60%, var(--grey-200)); box-shadow: 0 30px 60px -30px rgba(10, 18, 38, .35); }
.service-body { padding: 30px 30px 40px; display: flex; flex-direction: column; flex: 1; }
.row-number { color: var(--fg-mute); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.row-number::before { content: ""; width: 22px; height: 2px; background: var(--acc); }
.service-card h3 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.04em; line-height: 1.05; margin: 0 0 16px; }
.service-card p { font-size: 15px; line-height: 1.6; color: var(--fg-soft); margin: 0; }
.row-icon { position: absolute; right: 22px; top: 22px; z-index: 4; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--navy-900); font-size: 18px; transition: background .3s, transform .5s var(--ease); }
.service-card:hover .row-icon { background: var(--acc); transform: rotate(45deg); }
.card-line { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--acc); transform-origin: left; }

/* 09 · PROYECTOS --------------------------------------------------------- */
.projects-section::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 64px; background: linear-gradient(var(--magenta), transparent); }
.projects-intro { margin: 0 auto clamp(48px, 6vw, 80px); max-width: 680px; text-align: center; color: var(--fg-soft); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; text-wrap: pretty; }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.project-card { --card-fg: #fff; --card-soft: rgba(255, 255, 255, .78); position: relative; grid-column: span 6; min-height: 460px; padding: 30px 34px 32px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; isolation: isolate; border-radius: var(--radius); color: var(--card-fg); background: var(--navy-900); border: 1px solid color-mix(in srgb, var(--acc) 28%, transparent); box-shadow: 0 30px 60px -36px rgba(10, 18, 38, .6); transition: border-color .4s, box-shadow .5s; }
.project-card:hover { border-color: var(--acc); box-shadow: 0 30px 70px -30px color-mix(in srgb, var(--acc) 55%, #0a1226); }
.project-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(5, 10, 24, .15) 0%, rgba(5, 10, 24, .82) 100%); pointer-events: none; }
.project-card > *:not(.media) { position: relative; z-index: 2; }
.project-featured { grid-column: span 7; min-height: 540px; --ph-a: rgba(25, 227, 208, .5); --ph-b: rgba(31, 92, 255, .5); }
.project-flectia { grid-column: span 5; min-height: 540px; --card-fg: var(--navy-900); --card-soft: #4b566e; background: var(--white); --ph-a: rgba(255, 46, 147, .25); --ph-b: rgba(74, 125, 255, .2); }
.project-flectia::before { background: linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(246, 247, 250, .96)); }
.project-flectia .ph::after { background: rgba(255, 255, 255, .7); color: var(--navy-900); border-color: rgba(10, 18, 38, .4); }
.project-flectia .ph::before { background-image: linear-gradient(rgba(10, 18, 38, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 18, 38, .07) 1px, transparent 1px); }
.project-flectia .ph { background: radial-gradient(60% 80% at 18% 12%, var(--ph-a), transparent 62%), radial-gradient(55% 70% at 92% 92%, var(--ph-b), transparent 60%), var(--grey-100); }
.project-rezar { grid-column: span 5; --ph-a: rgba(255, 210, 31, .3); --ph-b: rgba(255, 255, 255, .22); --ph-base-a: var(--blue-500); --ph-base-b: var(--blue-700); background: linear-gradient(135deg, var(--blue-700), var(--blue-600)); }
.project-ediciones { grid-column: span 7; --ph-a: rgba(255, 46, 147, .32); --ph-b: rgba(25, 227, 208, .25); --ph-base-a: #2a3350; --ph-base-b: #10152a; background: #171d2e; }
.project-top { display: flex; justify-content: space-between; align-items: start; color: var(--card-soft); }
.card-symbol { font-family: Georgia, serif; font-size: 38px; line-height: .7; letter-spacing: 0; font-weight: 400; color: var(--acc); }
.project-flectia .card-symbol { color: var(--magenta-ink); }
.project-body { margin-top: 40px; }
.project-body .logo-slot { margin-bottom: 26px; }
.project-card h3 { font-size: clamp(40px, 4.6vw, 70px); letter-spacing: -.055em; line-height: .96; margin: 0 0 20px; }
.project-featured h3 { font-size: clamp(54px, 6.4vw, 100px); }
.period { color: var(--acc); }
.project-flectia .period { color: var(--magenta-ink); }
.project-card p { font-size: 16px; line-height: 1.5; max-width: 330px; margin: 0; color: var(--card-soft); }
.project-foot { display: block; border-top: 1px solid color-mix(in srgb, var(--card-fg) 25%, transparent); color: var(--card-soft); padding-top: 17px; font-size: 10px; margin-top: 32px; }
.project-foot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--acc); vertical-align: 1px; }
.project-link { align-self: flex-start; display: inline-flex; gap: 20px; border-bottom: 1px solid currentColor; padding-bottom: 8px; font-size: 12px; font-weight: 600; margin-top: 17px; transition: color .3s; }
.project-link:hover { color: var(--acc); }

/* 10 · TRAYECTORIA ------------------------------------------------------- */
.history-section { isolation: isolate; }
.history-bg { position: absolute; inset: 0; z-index: -1; opacity: .5; }
.history-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0c1428 0%, rgba(7, 12, 26, .55) 40%, #070c1a 100%); }
.history-heading { margin-bottom: clamp(48px, 6vw, 80px); }
.history-lead { max-width: 640px; margin: 32px auto 0; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; color: var(--fg-soft); text-wrap: pretty; }
.history-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.history-item { position: relative; min-height: 290px; padding: 26px 24px 28px; display: flex; flex-direction: column; border-radius: var(--radius-sm); background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .14); overflow: hidden; transition: border-color .4s, transform .5s var(--ease), background .4s; }
.history-item::before { content: ""; position: absolute; left: 24px; top: 0; width: 44px; height: 3px; background: var(--acc); border-radius: 0 0 3px 3px; transition: width .6s var(--ease); }
.history-item:hover { border-color: color-mix(in srgb, var(--acc) 70%, transparent); transform: translateY(-6px); background: linear-gradient(160deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .03)); }
.history-item:hover::before { width: calc(100% - 48px); }
.history-item > span:first-child { color: var(--acc); margin-bottom: 26px; }
.history-item .logo-slot { width: 170px; margin-bottom: auto; }
.history-item h3 { font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.04em; margin: 34px 0 8px; }
.history-item p { font-size: 14px; color: var(--fg-soft); line-height: 1.5; margin: 0; }

/* Compañía */
.company-section { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(110px, 12vw, 190px); text-align: center; background: linear-gradient(135deg, #0a1f78, var(--blue-700) 55%, #1a3fd0); }
.company-bg { position: absolute; inset: 0; z-index: -2; opacity: .55; }
.company-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(5, 10, 24, .5) 0%, rgba(5, 10, 24, .15) 70%); }
.company-frames { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; pointer-events: none; }
.company-frames i { position: absolute; aspect-ratio: 1; border: 1px solid rgba(255, 255, 255, .16); }
.company-frames i:nth-child(1) { width: min(86vw, 640px); }
.company-frames i:nth-child(2) { width: min(124vw, 980px); border-color: rgba(255, 255, 255, .1); }
.company-frames i:nth-child(3) { width: min(58vw, 380px); border-color: rgba(255, 255, 255, .22); }
.company-frames i::after { content: ""; position: absolute; width: 10px; height: 10px; background: var(--yellow); }
.company-frames i:nth-child(1)::after { top: -5px; right: -5px; }
.company-frames i:nth-child(2)::after { bottom: -5px; left: -5px; background: var(--magenta); }
.company-frames i:nth-child(3)::after { bottom: -5px; right: -5px; background: var(--turquoise); }
.company-layout { display: flex; flex-direction: column; align-items: center; }
.company-section h2 { margin-bottom: clamp(34px, 4vw, 56px); }
.company-section h2 em { background: linear-gradient(90deg, #fff, var(--turquoise) 60%, var(--yellow)); -webkit-background-clip: text; background-clip: text; }
.company-text { max-width: 700px; font-size: clamp(18px, 2vw, 25px); line-height: 1.55; letter-spacing: -.015em; color: #fff; margin: 0; text-wrap: pretty; }

/* 11 · CONTACTO ---------------------------------------------------------- */
.contact-section { background: linear-gradient(180deg, var(--grey-50), var(--blue-50)); }
.contact-layout { display: flex; flex-direction: column; align-items: center; }
.contact-section h2 { font-size: clamp(50px, 8vw, 124px); }
.contact-section h2 em { background: linear-gradient(90deg, var(--blue-600), var(--magenta)); -webkit-background-clip: text; background-clip: text; }
.contact-lead { max-width: 620px; margin: 32px auto 0; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; color: var(--fg-soft); text-wrap: pretty; }
.contact-card { position: relative; width: min(100%, 720px); background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius); padding: clamp(28px, 4.4vw, 54px); box-shadow: 0 40px 80px -50px rgba(23, 64, 201, .5); overflow: hidden; }
.contact-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad-accent); }
.form-status { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--blue-700); margin: 0 0 26px; }
.form-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--turquoise); box-shadow: 0 0 0 4px rgba(25, 227, 208, .25); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.form-full { grid-column: 1/-1; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.form-field label .req { color: var(--magenta-ink); margin-left: 2px; }
.form-field label .opt { color: var(--fg-mute); font-weight: 500; margin-left: 4px; }
.form-field input, .form-field textarea { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--grey-300); border-radius: 0; background: transparent; color: var(--fg); font: inherit; font-size: 16px; resize: vertical; padding: 6px 0 10px; min-height: 40px; transition: border-color .3s, box-shadow .3s; }
.form-field input:hover, .form-field textarea:hover { border-color: var(--grey-500); }
.form-field input:focus, .form-field textarea:focus { outline: 0; border-color: var(--blue-600); box-shadow: 0 1px 0 0 var(--blue-600); }
.form-field textarea { min-height: 120px; }
.form-field [aria-invalid="true"] { border-color: var(--magenta-ink); box-shadow: 0 1px 0 0 var(--magenta-ink); }
.field-error { margin: 8px 0 0; font-size: 12.5px; line-height: 1.4; font-weight: 600; color: var(--magenta-ink); }
.field-error[hidden] { display: none; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px 32px; margin-top: 32px; }
.form-notice { flex: 1 1 280px; margin: 0; font-size: 12px; line-height: 1.6; color: var(--fg-mute); }
.form-notice a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--magenta); }
.contact-form .button { flex: none; cursor: pointer; border: 0; min-width: 220px; }
.contact-form .button .btn-text { font-size: inherit; font-weight: inherit; transition: none; }
.contact-form .button[aria-busy="true"] { pointer-events: none; opacity: .7; }
.contact-form .button[aria-busy="true"] > span[aria-hidden] { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-feedback { margin: 22px 0 0; padding: 0; font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--magenta-ink); }
.form-feedback:empty { display: none; }
.form-feedback:focus { outline: 0; }
.form-success { text-align: center; padding-block: 12px; }
.form-success[hidden] { display: none; }
.form-success:focus { outline: 0; }
.success-mark { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 50%; background: var(--turquoise); color: var(--navy-950); font-size: 28px; font-weight: 700; box-shadow: 0 0 0 10px rgba(25, 227, 208, .2); }
.form-success h3 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.04em; line-height: 1.05; margin: 0 0 14px; }
.form-success p { max-width: 420px; margin: 0 auto; color: var(--fg-soft); line-height: 1.6; }
.contact-card.is-sent .contact-form, .contact-card.is-sent .form-status { display: none; }

/* 12 · FOOTER ------------------------------------------------------------ */
.site-footer { position: relative; overflow: clip; background: var(--navy-950); color: #f4f6fb; padding-top: 74px; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad-accent); }
.footer-top { display: flex; justify-content: space-between; align-items: end; min-height: 170px; gap: 30px; }
.footer-wordmark { font-size: clamp(48px, 10vw, 150px); }
.footer-top p { font-size: 12px; line-height: 1.6; margin: 0; color: rgba(255, 255, 255, .6); text-align: right; }
.footer-bottom { display: flex; gap: 20px; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .16); padding-block: 24px; color: rgba(255, 255, 255, .6); font-size: 12px; }
.footer-bottom p { max-width: 500px; margin: 0; }
.footer-bottom nav { display: flex; gap: clamp(13px, 2vw, 30px); flex-wrap: wrap; }
.footer-bottom nav a:hover, .footer-bottom a[aria-current="page"], .footer-bottom > a:hover { color: var(--turquoise); }
.footer-bottom a { color: #fff; white-space: nowrap; transition: color .25s; }
.footer-bottom nav button { border: 0; background: none; padding: 0; color: #fff; cursor: pointer; font-size: inherit; }
.footer-bottom nav button:hover { color: var(--turquoise); }
.cookie-banner { position: fixed; z-index: 300; inset: auto 0 0; padding: 20px; background: var(--navy-950); color: #fff; box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); }
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner { width: min(100%, var(--wrap)); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cookie-banner p { max-width: 720px; line-height: 1.5; margin: 0; font-size: 14px; }
.cookie-banner a { text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-actions button { min-width: 110px; min-height: 44px; border: 1px solid #fff; border-radius: 999px; background: #fff; color: var(--navy-950); cursor: pointer; font-weight: 600; }
.cookie-actions button:hover { background: var(--turquoise); border-color: var(--turquoise); }
@media (max-width: 760px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions button { flex: 1; }
}

/* 13 · PÁGINAS UTILITARIAS Y LEGALES (404, gracias, aviso legal…) -------- */
.utility-page { display: flex; align-items: center; min-height: calc(100svh - 190px); padding-block: 100px; }
.utility-page .section-index { margin-bottom: 35px; }
.utility-page h1, .legal-hero h1 { font-size: clamp(56px, 9vw, 120px); line-height: 1; letter-spacing: -.055em; font-weight: 650; margin: 0 0 24px; }
.utility-page h1 em, .legal-hero h1 em { font-style: normal; color: var(--blue-600); }
.utility-page p:not(.section-index) { font-size: 18px; line-height: 1.6; color: var(--fg-soft); margin-bottom: 38px; }
.legal-back { font-size: 13px; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 6px; }
.legal-back span { font-size: 18px; margin-left: 9px; font-weight: 400; }
.legal-hero { padding-block: clamp(90px, 11vw, 150px) clamp(65px, 7vw, 100px); border-bottom: 1px solid var(--line); }
.legal-hero .section-index { margin-bottom: 32px; }
.legal-hero > p:last-child { font-size: clamp(19px, 2vw, 26px); line-height: 1.45; color: var(--fg-soft); max-width: 620px; }
.legal-content { max-width: 900px; padding-block: 55px 115px; }
.legal-content section { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 40px; padding-block: 33px; border-bottom: 1px solid var(--line); }
.legal-content h2 { font-size: 26px; line-height: 1.15; letter-spacing: -.04em; margin: 0; }
.legal-content section > p, .legal-content section > dl { grid-column: 2; margin: 0; font-size: 16px; line-height: 1.75; color: var(--fg-soft); }
.legal-content section > p + p { margin-top: -23px; }
.legal-content strong { color: var(--fg); font-weight: 600; }
.legal-content a:not(.button) { color: var(--blue-700); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--magenta); }
.legal-details { display: grid; gap: 15px; }
.legal-details > div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; }
.legal-details dt { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--magenta-ink); }
.legal-details dd { margin: 0; }
.legal-updated { font-size: 12px; line-height: 1.6; color: var(--fg-soft); margin: 45px 0 0; }

/* 14 · RESPONSIVE -------------------------------------------------------- */
@media (max-width: 1040px) {
  .wrap { width: min(calc(100% - 64px), var(--wrap)); }
  .primary-nav { gap: 18px; font-size: 12px; }
  .service-list { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .project-featured, .project-flectia, .project-rezar, .project-ediciones { grid-column: span 6; }
  .history-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .wrap { width: min(calc(100% - 40px), var(--wrap)); }
  :root { --header-h: 68px; }
  .wordmark { font-size: 25px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 7px; border: 0; background: none; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
  .menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .primary-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: rgba(5, 10, 24, .96); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255, 255, 255, .1); padding: 16px 20px 28px; flex-direction: column; align-items: stretch; gap: 0; font-size: 17px; }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .primary-nav a:not(.nav-contacto)::after { display: none; }
  .primary-nav .nav-contacto { margin-top: 18px; padding: 15px 22px; text-align: center; border: 0; }
  .hero { min-height: auto; }
  .hero-layout { padding-top: 56px; }
  .eyebrow { font-size: 9px; letter-spacing: .1em; margin-bottom: 32px; padding: 8px 14px; }
  .hero h1 { font-size: clamp(46px, 13.4vw, 90px); }
  .hero-aside { padding: 22px 22px 20px; }
  .hero-bottom { margin-top: 20px; }
  .section { padding-block: 90px; }
  .section-heading h2 { font-size: clamp(38px, 10.6vw, 78px); }
  .project-grid { grid-template-columns: 1fr; }
  .project-featured, .project-flectia, .project-rezar, .project-ediciones { grid-column: auto; min-height: 420px; }
  .project-card { padding: 26px 24px; }
  .project-card h3, .project-featured h3 { font-size: clamp(46px, 13vw, 72px); }
  .company-section h2 { font-size: clamp(42px, 11.4vw, 84px); }
  .contact-section h2 { font-size: clamp(46px, 13vw, 86px); }
  .footer-top { flex-direction: column; align-items: flex-start; min-height: 150px; }
  .footer-top p { text-align: left; }
  .footer-bottom { flex-wrap: wrap; }
  .footer-bottom nav { order: 2; }
  .legal-content section { display: block; }
  .legal-content h2 { margin-bottom: 20px; }
  .legal-content section > p + p { margin-top: 15px; }
  .legal-content { padding-block: 30px 90px; }
  .legal-hero { padding-block: 80px 60px; }
  .legal-details > div { grid-template-columns: 100px 1fr; }
}
@media (max-width: 550px) {
  .hero-actions { gap: 18px 24px; margin-top: 34px; }
  .button { padding-inline: 22px; gap: 20px; }
  .hero-bottom > span:last-child { display: none; }
  .history-list { grid-template-columns: 1fr; }
  .history-item { min-height: 240px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-bottom { align-items: start; }
  .footer-bottom nav { flex-basis: 100%; order: 3; }
  .footer-bottom > a { margin-left: auto; }
  .legal-details > div { display: block; }
  .legal-details dt { margin-bottom: 4px; }
  .legal-back { font-size: 11px; }
}

/* 15 · MOVIMIENTO REDUCIDO ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .splash { display: none !important; }
  html.is-splash { overflow: auto; }
  .scroll-progress { display: none; }
  .service-card:hover, .history-item:hover { transform: none; }
}
