/* =========================================================
   OCTOPUS DESIGN SAS — Hoja de estilos principal
   Concepto: plano técnico de taller. Fotos grandes, bandas
   azul marino del logo, etiquetas tipo "cota" en monoespaciada.
   Para cambiar colores o fuentes, edita solo las variables :root
   ========================================================= */
:root {
  /* Color */
  --ink: #0a1a3a;        /* texto principal (azul tinta) */
  --navy: #0b2558;       /* bandas oscuras, color del logo */
  --navy-deep: #071a40;  /* fondos más oscuros */
  --blue: #1554c8;       /* acento: botones, enlaces */
  --sky: #7fb0ff;        /* acento sobre fondos oscuros */
  --paper: #f3f5f9;      /* fondo claro con un toque azul */
  --white: #ffffff;
  --line: #d8dfea;       /* líneas y bordes */
  --muted: #56627c;      /* texto secundario */
  --on-dark: #e8eefb;    /* texto sobre azul */
  --on-dark-muted: #a9b8d6;
  --wa: #1d9f52;         /* verde WhatsApp */
  --wa-hover: #188a47;

  /* Tipografía */
  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  /* Escala */
  --t-xs: .75rem; --t-sm: .875rem; --t-base: 1.0625rem; --t-md: 1.25rem;
  --t-lg: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --t-xl: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --t-xxl: clamp(2.4rem, 1.4rem + 4.4vw, 4.6rem);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --header-h: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--t-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 {
  font-family: var(--f-display); font-stretch: 112%; font-weight: 800;
  line-height: 1.05; letter-spacing: -0.01em; margin: 0; text-wrap: balance;
}
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: var(--on-dark); }

/* Etiqueta tipo cota de plano */
.eyebrow {
  font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section--navy .eyebrow, .on-dark .eyebrow { color: var(--sky); }

.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: var(--t-xl); }
.section-head p { color: var(--muted); font-size: var(--t-md); max-width: 62ch; }
.section--navy .section-head p { color: var(--on-dark-muted); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--radius); border: 1.5px solid transparent;
  font-family: var(--f-body); font-weight: 700; font-size: 1rem; text-decoration: none;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-hover); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--navy); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ---------------- Encabezado ---------------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 42px; height: 42px; border-radius: 9px; }
.brand__name { display: grid; line-height: 1; }
.brand__name strong { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 1.15rem; letter-spacing: .02em; }
.brand__name span { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .28em; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: var(--radius);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.nav .btn { margin-left: 8px; padding: 10px 16px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0;
    background: var(--white); flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(10,26,58,.12);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav .btn { margin: 16px 0 0; border-bottom: 0; border-radius: var(--radius); }
}

/* ---------------- Hero ---------------- */
.hero { position: relative; color: #fff; background: var(--navy-deep); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,26,64,.95) 0%, rgba(7,26,64,.82) 38%, rgba(7,26,64,.25) 75%, rgba(7,26,64,.15) 100%),
              linear-gradient(0deg, rgba(7,26,64,.9) 0%, rgba(7,26,64,0) 35%);
}
.hero .eyebrow { color: var(--sky); }
.hero__inner { position: relative; padding-block: clamp(72px, 11vw, 150px) 0; display: grid; gap: 28px; }
.hero h1 { font-size: var(--t-xxl); max-width: 14ch; font-stretch: 115%; }
.hero h1 em { font-style: normal; color: var(--sky); }
.hero__lead { font-size: var(--t-md); max-width: 50ch; color: var(--on-dark); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats {
  margin-top: clamp(40px, 7vw, 88px); display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.22);
}
.stat { padding: 22px 20px 26px 0; display: grid; gap: 4px; }
.stat + .stat { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.22); }
.stat strong { font-family: var(--f-display); font-stretch: 120%; font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
@media (max-width: 720px) {
  .hero__bg img { object-position: 60% 50%; }
  .hero__bg::after { background: linear-gradient(0deg, rgba(7,26,64,.96) 25%, rgba(7,26,64,.7) 60%, rgba(7,26,64,.45) 100%); }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.22); }
}

/* ---------------- Servicios ---------------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.service:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10,26,58,.12); }
.service__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service:hover .service__img img { transform: scale(1.05); }
.service__body { padding: 20px 20px 22px; display: grid; gap: 8px; flex: 1; align-content: start; }
.service h3 { font-size: 1.25rem; }
.service p { color: var(--muted); font-size: .95rem; }
.service__more { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: .9rem; color: var(--blue); }
.extras { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.extra {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius);
  border: 1px dashed #b9c5da; background: var(--paper);
}
.extra svg { width: 32px; height: 32px; flex: none; color: var(--blue); }
.extra h3 { font-size: 1.05rem; margin-bottom: 4px; }
.extra p { font-size: .92rem; color: var(--muted); }
@media (max-width: 1000px) { .services { grid-template-columns: 1fr 1fr; } .extras { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .services { grid-template-columns: 1fr; } }

/* ---------------- Del diseño a la realidad (video) ---------------- */
.d2r { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.d2r h2 { font-size: var(--t-xl); margin-block: 16px 20px; }
.d2r p { color: var(--on-dark-muted); font-size: var(--t-md); max-width: 44ch; }
.d2r__steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.18); }
.d2r__steps li { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.d2r__steps b { font-family: var(--f-mono); font-weight: 500; color: var(--sky); font-size: var(--t-sm); }
.d2r__video { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.35); background: #000; aspect-ratio: 16 / 9; }
.d2r__video video { width: 100%; height: 100%; object-fit: cover; }
.d2r__tag {
  position: absolute; left: 14px; top: 14px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; background: rgba(7,26,64,.8); color: #fff; padding: 6px 10px; border-radius: 4px;
}
@media (max-width: 900px) { .d2r { grid-template-columns: 1fr; } }

/* ---------------- Mapa ---------------- */
.coverage { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.map-box { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(8px, 2vw, 24px); }
.map { width: 100%; height: auto; display: block; max-height: 680px; margin-inline: auto; }
.map__grid line { stroke: #edf1f7; stroke-width: 1; }
.map__nb { fill: #eef2f8; stroke: #d3dbe8; stroke-width: 1; }
.map__col { fill: #dfe8f7; stroke: var(--navy); stroke-width: 1.6; stroke-linejoin: round; }
.map__route { fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-dasharray: 5 6; opacity: .55; }
.map__route.is-active { opacity: 1; stroke-width: 2.2; }
.map__city { cursor: pointer; outline: none; }
.map__city .pulse { fill: var(--blue); opacity: .25; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
.map__city .dot { fill: var(--blue); stroke: #fff; stroke-width: 2.5; transition: r .2s; }
.map__city.is-hq .dot { fill: var(--navy); }
.map__city .lbl { font-family: var(--f-body); font-weight: 700; font-size: 13px; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.map__city:hover .dot, .map__city:focus-visible .dot, .map__city.is-active .dot { r: 9; fill: var(--navy); }
.map__city:focus-visible .lbl, .map__city.is-active .lbl { fill: var(--blue); }
.map__compass text { font-family: var(--f-mono); font-size: 11px; fill: var(--muted); }
@keyframes pulse { 0% { transform: scale(.6); opacity: .45; } 100% { transform: scale(2.6); opacity: 0; } }

.city-card { background: var(--navy); color: var(--on-dark); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; min-height: 190px; align-content: start; }
.city-card__coords { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .1em; color: var(--sky); }
.city-card h3 { font-size: var(--t-lg); color: #fff; }
.city-card p { color: var(--on-dark-muted); }
.city-list { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.city-list button {
  font: 600 .9rem var(--f-body); color: var(--ink); background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: .2s;
}
.city-list button:hover, .city-list button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.coverage__note { margin-top: 20px; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .coverage { grid-template-columns: 1fr; } .map { max-height: 520px; } }

/* ---------------- Proyectos destacados ---------------- */
.featured { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(140px, 17vw, 220px); gap: 14px; }
.featured a { position: relative; overflow: hidden; border-radius: var(--radius); display: block; background: var(--line); }
.featured img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.featured a:hover img { transform: scale(1.05); }
.featured figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; color: #fff;
  background: linear-gradient(0deg, rgba(7,26,64,.85), rgba(7,26,64,0));
  display: grid; gap: 2px;
}
.featured figcaption span { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.featured figcaption strong { font-size: 1rem; }
.featured figure { margin: 0; height: 100%; }
.f1 { grid-column: span 7; grid-row: span 2; }
.f2 { grid-column: span 5; }
.f3 { grid-column: span 5; }
.f4 { grid-column: span 4; }
.f5 { grid-column: span 4; }
.f6 { grid-column: span 4; }
.featured-cta { margin-top: 32px; display: flex; justify-content: center; }
@media (max-width: 760px) {
  .featured { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .f1 { grid-column: span 2; grid-row: span 2; }
  .f2, .f3, .f4, .f5, .f6 { grid-column: span 1; }
  .f6 { grid-column: span 2; }
}

/* ---------------- Proceso ---------------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.process li { padding: 28px 24px 8px 0; border-top: 2px solid var(--ink); display: grid; gap: 10px; align-content: start; }
.process li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.process b { font-family: var(--f-mono); font-weight: 500; font-size: var(--t-sm); color: var(--blue); }
.process h3 { font-size: 1.3rem; }
.process p { color: var(--muted); font-size: .97rem; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .process li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 520px) {
  .process { grid-template-columns: 1fr; row-gap: 0; }
  .process li, .process li + li { padding: 22px 0; border-left: 0; }
}

/* ---------------- Materiales ---------------- */
.materials { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.material { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.material img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; }
.material div { padding: 14px 16px 16px; display: grid; gap: 4px; }
.material h3 { font-size: 1rem; font-stretch: 105%; }
.material p { font-size: .86rem; color: var(--muted); line-height: 1.45; }
.materials-more {
  margin-top: 28px; padding: 22px 24px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line); display: grid; gap: 14px;
}
.materials-more p { font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
@media (max-width: 1000px) { .materials { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .materials { grid-template-columns: 1fr 1fr; } }

/* ---------------- Alturas + Transporte ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.split__panel { position: relative; min-height: 460px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.split__panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,26,64,.95) 10%, rgba(7,26,64,.35) 60%, rgba(7,26,64,.1)); }
.split__body { position: relative; z-index: 1; padding: clamp(28px, 4vw, 56px); display: grid; gap: 14px; max-width: 560px; }
.split__body h2 { font-size: var(--t-lg); }
.split__body p { color: var(--on-dark); }
.split__body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.split__body li { display: flex; gap: 10px; align-items: baseline; color: var(--on-dark); font-size: .97rem; }
.split__body li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--sky); flex: none; transform: translateY(-1px); }
.split__body .eyebrow { color: var(--sky); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split__panel { min-height: 420px; } }

/* ---------------- Cotización ---------------- */
.quote { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.quote h2 { font-size: var(--t-xl); margin-block: 16px 18px; }
.quote__aside p { color: var(--muted); font-size: var(--t-md); }
.contact-lines { margin-top: 28px; display: grid; gap: 14px; }
.contact-line { display: flex; gap: 14px; align-items: center; }
.contact-line svg { width: 22px; height: 22px; color: var(--blue); flex: none; }
.contact-line span { display: grid; line-height: 1.3; }
.contact-line small { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-line b { font-size: 1.05rem; user-select: all; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .9rem; }
.field label small { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); background: var(--white); }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.form__foot p { font-size: .88rem; color: var(--muted); max-width: 42ch; }
.form__error { grid-column: 1 / -1; color: #b42318; font-weight: 600; font-size: .92rem; }
@media (max-width: 900px) { .quote { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------------- Pie de página ---------------- */
.footer { background: var(--navy-deep); color: var(--on-dark-muted); padding-block: 56px 32px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; }
.footer .brand { color: #fff; }
.footer .brand__name span { color: var(--on-dark-muted); }
.footer h4 { font-family: var(--f-mono); font-weight: 500; font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin-bottom: 14px; font-stretch: 100%; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__about { margin-top: 16px; max-width: 40ch; font-size: .95rem; }
.footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 28px rgba(10,26,58,.3); transition: transform .2s, background .2s;
}
.wa-float:hover { transform: scale(1.06); background: var(--wa-hover); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------------- Páginas internas ---------------- */
.page-hero { background: var(--navy); color: #fff; padding-block: clamp(56px, 8vw, 100px) clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero h1 { font-size: var(--t-xxl); margin-block: 16px 18px; }
.page-hero p { color: var(--on-dark-muted); font-size: var(--t-md); max-width: 58ch; }
.page-hero__mark { position: absolute; right: -60px; top: 50%; width: min(420px, 50vw); transform: translateY(-50%); opacity: .14; border-radius: 40px; pointer-events: none; }
.page-hero .wrap { position: relative; }

/* Galería */
.filters { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 20; background: rgba(243,245,249,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.filters__row { display: flex; gap: 8px; overflow-x: auto; padding-block: 14px; scrollbar-width: thin; }
.filter {
  flex: none; font: 600 .92rem var(--f-body); color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center;
}
.filter small { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter[aria-pressed="true"] small { color: var(--sky); }
.masonry { columns: 3 300px; column-gap: 14px; }
.masonry button {
  display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: var(--line); cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; break-inside: avoid; position: relative;
}
.masonry img { width: 100%; height: auto; transition: transform .5s, opacity .3s; }
.masonry button:hover img { transform: scale(1.03); }
.masonry button span {
  position: absolute; left: 10px; bottom: 10px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(7,26,64,.82); color: #fff; padding: 5px 9px; border-radius: 4px; opacity: 0; transition: opacity .2s;
}
.masonry button:hover span, .masonry button:focus-visible span { opacity: 1; }
.gallery-count { color: var(--muted); font-family: var(--f-mono); font-size: var(--t-sm); margin-bottom: 20px; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: #050d22; display: grid; grid-template-rows: auto 1fr auto; color: #fff; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .08em; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lb-btn { background: rgba(255,255,255,.1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lightbox__cap { padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px)); text-align: center; color: var(--on-dark-muted); font-size: .95rem; }
@media (max-width: 640px) { .lightbox__stage { padding: 0 8px; } .lb-prev, .lb-next { top: auto; bottom: -64px; transform: none; } .lb-prev { left: 16px; } .lb-next { right: 16px; } }

/* Nosotros */
.story { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.story h2 { font-size: var(--t-xl); margin-block: 16px 20px; }
.story__text { display: grid; gap: 16px; color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.story__text strong { color: var(--ink); }
.story__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.story__img img { width: 100%; height: 100%; object-fit: cover; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mv article { padding: clamp(26px, 4vw, 44px); border-radius: var(--radius); display: grid; gap: 14px; align-content: start; }
.mv article:first-child { background: var(--white); border: 1px solid var(--line); }
.mv article:last-child { background: var(--navy); color: var(--on-dark); }
.mv h2 { font-size: var(--t-lg); }
.mv p { font-size: 1.1rem; line-height: 1.65; }
.mv article:first-child p { color: var(--muted); }
.mv article:last-child .eyebrow { color: var(--sky); }
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.values div { padding: 24px 20px 8px 0; display: grid; gap: 8px; align-content: start; }
.values div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.values h3 { font-size: 1.1rem; }
.values p { color: var(--muted); font-size: .94rem; }
.diff { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.diff div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; }
.diff svg { width: 30px; height: 30px; color: var(--sky); }
.diff h3 { font-size: 1.15rem; color: #fff; }
.diff p { color: var(--on-dark-muted); font-size: .96rem; }
.cta-band { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { font-size: var(--t-lg); max-width: 24ch; }
@media (max-width: 900px) {
  .story, .mv { grid-template-columns: 1fr; }
  .story__img { aspect-ratio: 16 / 10; }
  .values { grid-template-columns: 1fr 1fr; }
  .values div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .diff { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .values, .diff { grid-template-columns: 1fr; } .values div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
