/* Crealum SAS — Home
   Paleta: #0E293F azul noche · #015491 azul Crealum · #E4EBF0 neblina · #00FFFF cian */

:root {
  --navy: #0E293F;
  --blue: #015491;
  --mist: #E4EBF0;
  --cyan: #00FFFF;
  --sky: #8FC1EA;
  --white: #FFFFFF;
  --header-h: 76px;
  --font-head: "Saira", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--cyan); color: var(--navy);
  padding: 10px 16px; font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.site-header :focus-visible,
.section-dark :focus-visible,
.hero :focus-visible,
.footer :focus-visible,
.lightbox :focus-visible { outline-color: var(--cyan); }

/* ───────── Encabezado ───────── */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--white);
  transition: background-color .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 8px 24px rgba(14, 41, 63, .25);
}
.header-in {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand img { height: 44px; width: auto; }

.nav ul { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav a {
  position: relative;
  display: inline-block; padding: 8px 0;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem; letter-spacing: .02em;
  text-decoration: none; color: var(--white);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left;
  transition: transform .25s;
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px; padding: 0;
  background: none; border: 0; color: var(--white); cursor: pointer;
  align-items: center; justify-content: center;
}
.bars, .bars::before, .bars::after {
  display: block; width: 24px; height: 2px; background: currentColor;
  transition: transform .25s, opacity .2s;
}
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 16px 32px rgba(14, 41, 63, .35);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px clamp(20px, 4vw, 40px) 20px; }
  .nav li + li { border-top: 1px solid rgba(255, 255, 255, .08); }
  .nav a { display: block; padding: 16px 0; font-size: 1.125rem; }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--cyan); }
}

/* ───────── Portada ───────── */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  background: var(--navy); color: var(--white);
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  background: var(--navy) url("../images/hero.jpg") center / cover no-repeat;
}
@media (max-width: 767px) {
  .hero-media { background-image: url("../images/hero-mobile.jpg"); }
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .9s ease;
}
.hero-video.on { opacity: 1; }

.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 41, 63, .6) 0, rgba(14, 41, 63, 0) 26%),
    linear-gradient(0deg, rgba(14, 41, 63, .88) 0, rgba(14, 41, 63, .55) 38%, rgba(14, 41, 63, 0) 72%);
}

.hero-in {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: clamp(48px, 10vh, 104px);
}
.hero-title {
  max-width: 14ch;
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1; letter-spacing: -.015em;
  text-wrap: balance;
}
.hero-kicker {
  margin-top: clamp(20px, 3vh, 32px);
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(.95rem, 1.6vw, 1.2rem); letter-spacing: .14em;
  text-transform: uppercase; color: var(--cyan);
}
.hero-text {
  margin-top: 14px; max-width: 58ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55;
  color: rgba(255, 255, 255, .9);
}
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Única secuencia de entrada: la portada */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-title, .hero-kicker, .hero-text, .hero-actions { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-kicker { animation-delay: .15s; }
.hero-text { animation-delay: .27s; }
.hero-actions { animation-delay: .4s; }

/* ───────── Botones ───────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 28px;
  border: 2px solid transparent; border-radius: 2px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem; letter-spacing: .02em;
  text-decoration: none; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn-cyan { background: var(--cyan); color: var(--navy); }
.btn-cyan:hover { background: var(--white); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-solid { background: var(--blue); color: var(--white); }
.btn-solid:hover { background: var(--navy); }

/* ───────── Secciones ───────── */

.section {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(64px, 10vw, 128px);
}
.section-light { background: var(--mist); color: var(--navy); }
.section-dark { background: var(--navy); color: var(--white); }
.section > .wrap { position: relative; z-index: 1; }

/* Sombra leve donde empieza y donde termina cada sección */
.section::before, .section::after, .footer::before {
  content: ""; position: absolute; left: 0; right: 0; z-index: 0;
  height: clamp(18px, 2.6vw, 32px); pointer-events: none;
}
.section::before { top: 0; background: linear-gradient(180deg, rgba(14, 41, 63, .2), rgba(14, 41, 63, 0)); }
.section::after { bottom: 0; background: linear-gradient(0deg, rgba(14, 41, 63, .2), rgba(14, 41, 63, 0)); }
.section-dark::before { background: linear-gradient(180deg, rgba(0, 0, 0, .42), rgba(0, 0, 0, 0)); }
.section-dark::after { background: linear-gradient(0deg, rgba(0, 0, 0, .42), rgba(0, 0, 0, 0)); }

/* Fondos con efecto parallax: el dibujo queda fijo en pantalla y la sección
   lo recorta como una ventana, así que se desliza más lento que el contenido.
   (clip-path en la sección hace que funcione también en iPhone y iPad) */
.section-parallax { clip-path: inset(0); }
.parallax {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -1;
  background-repeat: no-repeat; background-position: center; background-size: cover;
  pointer-events: none;
}
.parallax--1 { background-image: url("../images/fondoicono1.svg"); }
.parallax--2 { background-image: url("../images/fondoicono2.svg"); }
@media (max-width: 767px) {
  .parallax--1 { background-image: url("../images/fondoicono1mobile.svg"); }
  .parallax--2 { background-image: url("../images/fondoicono2mobile.svg"); }
}

.section-head { margin-bottom: clamp(36px, 6vw, 64px); max-width: 780px; }
.label {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem; letter-spacing: .04em;
  color: var(--blue);
}
.label::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.section-dark .label { color: var(--cyan); }

.section-head--center { margin-inline: auto; text-align: center; max-width: 820px; }
.section-head--center .label { justify-content: center; }
.section-head--center .label::after { content: ""; width: 32px; height: 2px; background: currentColor; }

.lead-logo {
  width: clamp(240px, 40vw, 460px); height: auto;
  margin: 0 auto clamp(28px, 4.5vw, 48px);
}

h2 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.01em;
  text-wrap: balance;
}

/* Textos de dos líneas uniformes */
.ln { display: block; }

/* Ventajas */
.perks {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(36px, 4.4vw, 64px) clamp(28px, 4vw, 56px);
}
.perk { padding-top: 30px; border-top: 2px solid var(--blue); }
.icon {
  width: 76px; height: 76px; margin-bottom: 22px;
  fill: none; stroke: var(--blue); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round;
}
.perk h3 {
  font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; letter-spacing: .01em;
  margin-bottom: 8px;
}
.perk p { color: var(--navy); font-size: 1.1875rem; font-weight: 500; }
.perk .ln { white-space: nowrap; }

/* Productos */
.products {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.4vw, 44px) clamp(18px, 2.4vw, 32px);
}
.product { display: block; text-decoration: none; color: inherit; }
.product figure { overflow: hidden; aspect-ratio: 3 / 4; background: #123652; }
.product img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.product:hover img, .product:focus-visible img { transform: scale(1.045); }
.product-name {
  position: relative; display: block;
  padding: 18px 0 14px;
  font-family: var(--font-head); font-weight: 500; line-height: 1.25;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
}
.product-name .ln { white-space: nowrap; }
.product-name::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left;
  transition: transform .35s;
}
.product:hover .product-name::after,
.product:focus-visible .product-name::after { transform: scaleX(1); }

/* Proyectos */
.projects {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 88px); align-items: center;
}
.projects-copy p:not(.label) { margin-top: 20px; max-width: 46ch; }
.projects-copy .btn { margin-top: 32px; }

.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shot {
  position: relative; display: block; padding: 0; border: 0; cursor: zoom-in;
  overflow: hidden; background: var(--navy);
}
.shot:first-child { grid-column: 1 / -1; }
.shot:first-child img { aspect-ratio: 16 / 10; }
.shot img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1), opacity .3s;
}
.shot:hover img { transform: scale(1.04); }

/* Carrusel de constructoras */
.allies { margin-top: clamp(56px, 8vw, 96px); }
.carousel { position: relative; }
.carousel-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.carousel-track {
  display: flex; gap: 20px; width: max-content;
  padding-block: 6px; will-change: transform;
}
.ally {
  flex: 0 0 auto; width: clamp(150px, 17vw, 200px); aspect-ratio: 2 / 1;
  display: flex; align-items: center; justify-content: center;
}
.ally img { width: 100%; height: 100%; object-fit: contain; }

.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%;
  background: var(--navy); color: var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(14, 41, 63, .3);
  transition: background-color .2s, color .2s;
}
.car-btn:hover { background: var(--cyan); color: var(--navy); }
.car-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.car-prev { left: 0; }
.car-next { right: 0; }

/* Animación suave al desplazarse (solo si hay JavaScript) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Ampliación de imágenes */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent;
  align-items: center; justify-content: center;
}
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: rgba(14, 41, 63, .94); }
.lightbox img {
  max-width: min(92vw, 1200px); max-height: 86vh; width: auto; height: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.lb-btn {
  position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: var(--white);
  font-size: 2rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .2s, color .2s;
}
.lb-btn:hover { background: var(--cyan); color: var(--navy); }
.lb-btn[hidden] { display: none; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ───────── Pie de página ───────── */

.footer {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy); color: rgba(255, 255, 255, .88);
  padding-top: clamp(44px, 6vw, 68px);
  font-size: .9375rem; line-height: 1.55;
}
.footer::before { top: 0; height: 1px; background: rgba(255, 255, 255, .16); }
main > .section:last-child::after { background: none; }
.footer > .wrap { position: relative; z-index: 1; }

.footer-logo {
  display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 40px);
  padding-bottom: clamp(28px, 4vw, 40px);
}
.footer-logo img { height: 60px; width: auto; }
.footer-cta {
  max-width: 38ch; padding-left: clamp(20px, 3vw, 40px);
  border-left: 1px solid rgba(255, 255, 255, .28);
  font-size: 1.0625rem; line-height: 1.45; color: rgba(255, 255, 255, .88);
}
.footer-cta strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; color: var(--white); margin-bottom: 2px; }

.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
  padding-block: clamp(28px, 4vw, 40px) clamp(32px, 4.5vw, 48px);
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.f-block { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.footer h3 {
  margin-bottom: 14px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; letter-spacing: .03em;
  color: var(--white);
}
.f-block ul { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.f-block li { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.f-icon {
  flex: 0 0 auto; width: 18px; height: 18px;
  fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.footer address { font-style: normal; }
.footer a { text-decoration: none; }
.footer li a:hover, .footer-bottom a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 20px 26px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .875rem; color: rgba(255, 255, 255, .72);
}

/* ───────── WhatsApp flotante ───────── */

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 62px; height: 62px; border-radius: 50%;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(14, 41, 63, .35));
  transition: transform .2s, filter .2s;
}
.wa-float img { width: 100%; height: 100%; }
.wa-float:hover { transform: scale(1.07); filter: drop-shadow(0 10px 18px rgba(14, 41, 63, .45)); }


/* ───────── Nuestra Compañía ───────── */

.hero--page { min-height: 88vh; min-height: 88svh; }
.hero--nosotros .hero-media { background-image: url("../images/hero-nosotros.jpg"); background-position: center; }
@media (max-width: 767px) {
  .hero--nosotros .hero-media { background-image: url("../images/hero-nosotros-mobile.jpg"); }
}
.hero-lead {
  margin-top: clamp(18px, 3vh, 28px); max-width: 40ch;
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.28; color: var(--white);
  animation: rise .8s cubic-bezier(.2, .7, .2, 1) .15s both;
}
.hero--page .hero-text { max-width: 62ch; animation-delay: .27s; }

strong { font-weight: 700; }
.hero strong { color: var(--white); }
.hero-lead { font-weight: 500; }
.hero-lead strong { font-weight: 700; }

/* Historia */
.story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.story-img img { width: 100%; }
.story-lead { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.45; font-weight: 400; margin-bottom: 20px; }
.story-copy p:not(.label):not(.story-lead) { color: rgba(14, 41, 63, .9); }

/* Experiencia */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.zoom {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  overflow: hidden; border-radius: 2px; background: var(--navy);
}
.zoom img { width: 100%; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.zoom:hover img { transform: scale(1.04); }
.trio img { aspect-ratio: 4 / 3; object-fit: cover; }
.exp-lead {
  max-width: 62ch; margin: clamp(36px, 5vw, 56px) auto 0; text-align: center;
  font-size: clamp(1.1875rem, 2vw, 1.5rem); line-height: 1.5; color: rgba(255, 255, 255, .92);
}
.exp-stats {
  margin-top: clamp(36px, 5vw, 56px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-block: clamp(32px, 4vw, 52px);
  border-block: 1px solid rgba(255, 255, 255, .18);
}
.stat-num {
  font-family: var(--font-head); font-weight: 700; line-height: 1;
  font-size: clamp(5rem, 12vw, 9rem); color: var(--cyan); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat-cap {
  margin-top: 18px; display: flex; align-items: center; gap: 16px;
  font-family: var(--font-head); font-weight: 600; font-size: clamp(1rem, 1.8vw, 1.375rem);
  letter-spacing: .14em; text-transform: uppercase;
}
.stat-cap::before, .stat-cap::after { content: ""; width: clamp(20px, 5vw, 56px); height: 2px; background: var(--cyan); }

/* Línea de tiempo */
.timeline { position: relative; margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.timeline::before { content: ""; position: absolute; top: 29px; left: 10%; right: 10%; height: 2px; background: rgba(255, 255, 255, .25); }
.tl-item { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 80px; text-align: center; cursor: default; outline-offset: 6px; }
.tl-node {
  position: absolute; top: 0; left: 50%; translate: -50% 0;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); border: 2px solid rgba(255, 255, 255, .55);
  transition: border-color .25s, background-color .25s, transform .25s;
}
.tl-node svg { width: 26px; height: 26px; fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s; }
.tl-year { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; color: var(--white); transition: color .25s; }
.tl-text { margin-top: 8px; max-width: 20ch; font-size: 1rem; line-height: 1.4; color: rgba(255, 255, 255, .85); }
.tl-item:hover .tl-year, .tl-item:focus-visible .tl-year { color: var(--cyan); }
.tl-item:hover .tl-node, .tl-item:focus-visible .tl-node { border-color: var(--cyan); transform: translateY(-3px); }
.tl-item:hover .tl-node svg, .tl-item:focus-visible .tl-node svg { stroke: var(--cyan); }

/* Misión y visión */
.mv { display: grid; gap: clamp(64px, 9vw, 120px); }
.mv-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.mv-row--rev .mv-copy { order: 2; }
.mv-copy h2 { margin-bottom: 20px; }
.mv-copy p + p { margin-top: 16px; }
.mv-copy p:not(.label) { color: rgba(14, 41, 63, .92); font-size: 1.1875rem; }
.collage { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: clamp(10px, 1.6vw, 18px); aspect-ratio: 1 / .9; }
.collage .zoom:first-child { grid-row: span 2; }
.collage img { width: 100%; height: 100%; object-fit: cover; }

/* Valores (mismas tarjetas de ventajas, sobre fondo oscuro) */
.perks--values { grid-template-columns: repeat(4, 1fr); }
.perks--values .perk { border-top-color: var(--cyan); }
.perks--values .icon { stroke: var(--cyan); }
.perks--values .perk h3 { white-space: nowrap; }
.perks--values .perk p { color: rgba(255, 255, 255, .92); font-size: 1rem; font-weight: 500; line-height: 1.55; }

@media (max-width: 1180px) {
  .perks--values { grid-template-columns: repeat(2, 1fr); }
  .perks--values .perk h3 { font-size: 1.5rem; }
}
@media (max-width: 899px) {
  .story, .mv-row { grid-template-columns: 1fr; }
  .story-img { max-width: 440px; margin-inline: auto; }
  .mv-row--rev .mv-copy { order: 0; }
  .perks--values { grid-template-columns: repeat(2, 1fr); }
  .perks--values .perk h3 { font-size: 1.5rem; }
  .timeline { grid-template-columns: 1fr; gap: 0; margin-left: 4px; }
  .timeline::before { top: 30px; bottom: 30px; left: 29px; right: auto; width: 2px; height: auto; }
  .tl-item { flex-direction: column; align-items: flex-start; text-align: left; padding: 6px 0 32px 84px; min-height: 60px; }
  .tl-item:last-child { padding-bottom: 0; }
  .tl-node { left: 0; translate: 0 0; }
  .tl-text { max-width: 34ch; }
}
@media (max-width: 767px) {
  .trio { grid-template-columns: 1fr; }
}
@media (max-width: 559px) {
  .perks--values { grid-template-columns: 1fr; }
  .perks--values .perk .ln { display: inline; white-space: normal; }
  .stat-cap { letter-spacing: .08em; }
  .collage { aspect-ratio: 1 / 1; }
}


/* ───────── Nuestros Proyectos ───────── */

.hero--proyectos .hero-media { background-image: url("../images/hero-nuestros-proyectos.jpg"); background-position: center; }
@media (max-width: 767px) {
  .hero--proyectos .hero-media { background-image: url("../images/hero-nuestros-proyectos-mobile.jpg"); }
}
.hero-title--long { max-width: 17ch; font-size: clamp(2.3rem, 5.6vw, 4.5rem); }
.hero--proyectos .hero-kicker { margin-top: 22px; }
.hero--proyectos .hero-text { margin-top: 20px; }

.story--rev { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.plans img { width: 100%; border-radius: 2px; box-shadow: 0 18px 40px rgba(14, 41, 63, .22); }
.story-copy h2 { margin-bottom: 20px; }
.plans-text { font-size: 1.1875rem; color: rgba(14, 41, 63, .92); }
.head-text { margin-top: 18px; max-width: 60ch; font-size: 1.1875rem; color: rgba(255, 255, 255, .92); }

/* Fichas de proyecto */
.projs { margin-top: clamp(8px, 2vw, 24px); }
.proj {
  display: grid; grid-template-columns: minmax(230px, .8fr) minmax(0, 2.2fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
  padding-block: clamp(32px, 5vw, 56px);
}
.proj + .proj { border-top: 1px solid var(--blue); }
.proj-tag {
  font-family: var(--font-head); font-weight: 600; font-size: .9375rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--cyan);
}
.proj-name {
  margin-top: 6px;
  font-family: var(--font-head); font-weight: 700; letter-spacing: -.005em;
  font-size: clamp(1.625rem, 2.8vw, 2.25rem); line-height: 1.08;
  text-wrap: balance;
}
.proj-meta { margin-top: 20px; display: grid; gap: 14px; }
.proj-meta li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.35; }
.proj-meta .pi { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.pi { fill: none; stroke: var(--cyan); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.k { display: block; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); margin-bottom: 1px; }
.proj-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1.4vw, 16px); }
.proj-photos .zoom { aspect-ratio: 3 / 4; }
.proj-photos .zoom img { height: 100%; object-fit: cover; }

/* Otras obras */
.obras { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px clamp(14px, 2vw, 24px); }
.obra {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 22px; background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(1, 84, 145, .2); border-left: 3px solid var(--blue);
  transition: background-color .2s, border-color .2s, transform .2s;
}
.obra:hover { background: var(--white); border-color: var(--blue); }
.obra-ico {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(1, 84, 145, .1);
}
.obra-ico .pi { width: 26px; height: 26px; stroke: var(--blue); }
.obra-body { display: grid; gap: 2px; min-width: 0; }
.obra-city { display: flex; align-items: center; gap: 6px; font-size: .9375rem; font-weight: 600; color: var(--blue); }
.obra-city .pi { width: 16px; height: 16px; stroke: var(--blue); }
.obra-name { font-family: var(--font-head); font-weight: 600; font-size: 1.1875rem; line-height: 1.25; }
.obra-con { font-size: .9375rem; color: rgba(14, 41, 63, .82); }
.obra-con .k { display: inline; margin-right: 6px; color: rgba(14, 41, 63, .6); }

@media (max-width: 899px) {
  .story--rev { grid-template-columns: 1fr; }
  .proj { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 767px) {
  .obras { grid-template-columns: 1fr; }
}
@media (max-width: 559px) {
  .obra { padding: 16px; gap: 14px; }
  .obra-ico { width: 44px; height: 44px; }
}

/* ───────── Responsive ───────── */

@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 899px) {
  .perks { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: 1fr; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .product-name { font-size: 1.0625rem; }
}
@media (max-width: 767px) {
  .hero-title { max-width: 11ch; }
  .hero-actions .btn { width: 100%; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}
@media (max-width: 559px) {
  .perks { grid-template-columns: 1fr; }
  .product-name { font-size: .9375rem; padding-top: 14px; }
  .product-name .ln { display: inline; white-space: normal; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand img { height: 42px; }
  .footer-bottom { flex-direction: column; padding-right: 84px; padding-bottom: 34px; }
  .footer-bottom .br { display: block; }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .car-btn { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ───────── Productos y Servicios ───────── */
.hero--productos .hero-media { background-image: url("../images/hero-nuestros-productos.jpg"); background-position: center; }
@media (max-width: 767px) {
  .hero--productos .hero-media { background-image: url("../images/hero-nuestros-productos-mobile.jpg"); }
}
.hero--productos .hero-text { margin-top: 20px; }

.section-light .proj + .proj { border-top-color: rgba(1, 84, 145, .35); }
.section-light .proj-tag { color: var(--blue); }
.section-light .pi { stroke: var(--blue); }
.sub-title {
  margin-top: 22px; margin-bottom: 12px;
  font-family: var(--font-head); font-weight: 600; font-size: .9375rem;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(14, 41, 63, .6);
}
.subcats { margin-top: 18px; display: grid; gap: 11px; }
.prod .proj-photos .zoom { box-shadow: 0 8px 22px rgba(14, 41, 63, .16); }
.subcats li {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 1.1875rem; font-weight: 600; line-height: 1.3; color: var(--navy);
}
.subcats .pi { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.serv .proj-info p:not(.proj-tag) { margin-top: 16px; font-size: 1.125rem; color: rgba(255, 255, 255, .92); }
.serv .proj-name { margin-bottom: 4px; }

.heart-wrap { text-align: center; max-width: 960px; }
.heart { width: clamp(84px, 11vw, 124px); height: auto; margin: 0 auto clamp(24px, 3.5vw, 40px); fill: var(--blue); filter: drop-shadow(0 6px 16px rgba(0, 255, 255, .6)); transform-origin: center; animation: heartbeat 1.5s ease-in-out infinite; }
.heart-text {
  font-family: var(--font-head); font-weight: 600; letter-spacing: -.01em;
  font-size: clamp(1.75rem, 4.2vw, 3rem); line-height: 1.18; text-wrap: balance; color: var(--navy);
}
.heart-text strong { color: var(--blue); font-weight: 700; }
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.16); }
  28% { transform: scale(1); }
  42% { transform: scale(1.1); }
  70% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .heart { animation: none; } }

@media (max-width: 899px) {
  .footer-logo { flex-direction: column; text-align: center; gap: 18px; }
  .footer-cta { padding-left: 0; border-left: 0; max-width: 34ch; }
}
@media (max-width: 559px) {
  .footer-logo img { height: 52px; }
  .subcats li { font-size: 1.125rem; }
}

/* ───────── Contáctenos ───────── */
.hero--contacto .hero-media { background-image: url("../images/hero-contacto.jpg"); background-position: center; }
@media (max-width: 767px) {
  .hero--contacto .hero-media { background-image: url("../images/hero-contacto-mobile.jpg"); }
}
.hero--contacto .hero-text { margin-top: 20px; }

.contact-grid {
  display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.4fr);
  gap: clamp(28px, 4vw, 56px); align-items: stretch;
}
.ccards { display: grid; grid-auto-rows: 1fr; gap: 18px; }
.ccard {
  display: flex; align-items: center; gap: 20px;
  padding: 24px 26px; background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(1, 84, 145, .2); border-left: 3px solid var(--blue);
  box-shadow: 0 8px 22px rgba(14, 41, 63, .08);
}
.ccard-ico {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(1, 84, 145, .1);
}
.ccard-ico svg, .ci {
  fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.ccard-ico svg { width: 28px; height: 28px; }
.ccard h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.3125rem; line-height: 1.2; margin-bottom: 12px; }
.ccard ul { display: grid; gap: 9px; }
.ccard li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; font-weight: 500; }
.ccard .ci { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.ccard address { font-style: normal; }
.ccard a { text-decoration: none; overflow-wrap: anywhere; }
.ccard a:hover { color: var(--blue); }

.cform-wrap {
  padding: clamp(26px, 4vw, 48px); background: rgba(255, 255, 255, .78);
  border-top: 3px solid var(--blue); box-shadow: 0 14px 34px rgba(14, 41, 63, .12);
}
.cform-head { margin-bottom: 14px; }
.cform-head h3 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; }
.cform-head .label { margin-bottom: 10px; }

.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 3vw, 36px); }
.field { position: relative; padding-top: 22px; margin-top: 8px; }
.field input, .field textarea, .field select {
  display: block; width: 100%; margin: 0; padding: 12px 0 9px;
  border: 0; border-bottom: 2px solid var(--blue); border-radius: 0; background: transparent;
  font: inherit; font-size: 1.0625rem; color: var(--navy); outline: none;
  transition: box-shadow .2s, border-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field textarea:focus, .field select:focus { box-shadow: 0 2px 0 0 var(--blue); }
.field label {
  position: absolute; left: 0; top: 34px; pointer-events: none;
  font-size: 1.0625rem; color: rgba(14, 41, 63, .62);
  transform-origin: left top; transition: transform .2s, color .2s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label {
  transform: translateY(-26px) scale(.8); color: var(--blue); font-weight: 600;
}
.field--select::after {
  content: ""; position: absolute; right: 4px; bottom: 18px; width: 9px; height: 9px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(45deg); pointer-events: none;
}
.field select { padding-right: 28px; cursor: pointer; }
.was-validated .field input:invalid, .was-validated .field textarea:invalid, .was-validated .field select:invalid {
  border-bottom-color: #B3261E;
}
.was-validated .field input:invalid + label, .was-validated .field textarea:invalid + label, .was-validated .field select:invalid + label { color: #B3261E; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { margin-top: 26px; }
.check { position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; }
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.check .box {
  flex: none; position: relative; width: 22px; height: 22px;
  border: 2px solid var(--blue); background: var(--white); transition: background-color .2s;
}
.check .box::after {
  content: ""; position: absolute; left: 6px; top: 1px; width: 6px; height: 12px;
  border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0);
  transition: transform .15s;
}
.check input:checked + .box { background: var(--blue); }
.check input:checked + .box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .box { outline: 3px solid var(--cyan); outline-offset: 2px; }
.was-validated .check input:invalid + .box { border-color: #B3261E; }
.consent-note { margin-top: 10px; font-size: .875rem; line-height: 1.5; color: rgba(14, 41, 63, .75); }

.form-error { margin-top: 16px; padding: 12px 16px; border-left: 3px solid #B3261E; background: rgba(179, 38, 30, .08); color: #7a1912; font-weight: 600; }
.form-foot { margin-top: 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-foot .btn { min-width: 220px; }
.form-foot .btn[disabled] { opacity: .65; cursor: wait; }
.req-note { font-size: .875rem; color: rgba(14, 41, 63, .7); }

.form-ok { position: relative; padding: clamp(24px, 4vw, 44px) 0 clamp(18px, 3vw, 30px); text-align: center; }
.form-ok[hidden] { display: none; }
.form-ok h3 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.125rem); color: var(--blue); margin-top: 18px; }
.form-ok p { max-width: 42ch; margin: 12px auto 0; font-size: 1.125rem; }
.form-ok::after {
  content: ""; display: block; height: 3px; margin: 30px auto 0; max-width: 260px;
  background: var(--blue); transform-origin: left; animation: okbar 10s linear forwards;
}
@keyframes okbar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.plane { width: 104px; height: 104px; margin: 0 auto; overflow: visible; animation: fly 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.plane path { fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.plane .wing { fill: rgba(1, 84, 145, .12); }
.plane .trail { stroke: var(--cyan); }
@keyframes fly { from { opacity: 0; transform: translate(-70px, 40px) scale(.7); } to { opacity: 1; transform: none; } }

/* Mapa a todo el ancho, con tinte de marca */
.map { position: relative; isolation: isolate; width: 100%; height: 460px; background: var(--mist); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.map::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--blue); mix-blend-mode: color;
}

@media (max-width: 899px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 559px) {
  .frow { grid-template-columns: 1fr; }
  .ccard { padding: 20px 16px; gap: 12px; }
  .ccard li { gap: 8px; font-size: .9375rem; }
  .ccard-ico { width: 46px; height: 46px; }
  .ccard-ico svg { width: 23px; height: 23px; }
  .form-foot .btn { width: 100%; }
  .map { height: 380px; }
}
@media (prefers-reduced-motion: reduce) { .plane { animation: none; } .form-ok::after { animation: none; } }

/* ───────── Ajustes globales (menú, línea animada, barra) ───────── */
html { scrollbar-color: var(--blue) var(--navy); }
.nav a { font-size: .78125rem; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 899px) { .nav a { font-size: 1rem; } }

.zoom, .shot { position: relative; }
.zoom::after, .shot::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left;
  transition: transform .4s; pointer-events: none;
}
.section-light .zoom::after { background: var(--blue); }
.zoom:hover::after, .zoom:focus-visible::after, .shot:hover::after, .shot:focus-visible::after { transform: scaleX(1); }

/* ───────── Página 404 ───────── */
.e404 { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; clip-path: inset(0); padding: 40px 0; }
.e404-in { position: relative; z-index: 1; width: min(100% - 2 * var(--gutter, 24px), 640px); text-align: center; }
.e404-logo { width: clamp(220px, 40vw, 340px); height: auto; margin: 0 auto clamp(28px, 5vw, 48px); }
.e404-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(4.5rem, 16vw, 9rem); line-height: 1; letter-spacing: -.01em; color: var(--blue); }
.e404-text { margin: 22px auto 34px; max-width: 34ch; font-size: clamp(1.125rem, 2.4vw, 1.375rem); line-height: 1.5; }

/* ───────── Preloader ───────── */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center; background: var(--mist);
  transition: opacity .45s ease, visibility .45s ease;
}
.preloader.done { opacity: 0; visibility: hidden; }
.spinner {
  width: 64px; height: 64px; border-radius: 50%;
  border: 6px solid var(--navy); border-top-color: transparent;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
