/* =============================================================
   1. Tokens
   ============================================================= */
@property --mesh-x { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --mesh-y { syntax: "<percentage>"; inherits: false; initial-value: 50%; }

:root {
  --bg:          #f7f6f2;
  --bg-alt:      #edf0f4;
  --surface:     #ffffff;
  --ink:         #131f36;
  --ink-soft:    #37425c;
  --ink-mute:    #667089;
  --yellow:      #ffd500;
  --yellow-deep: #d9a800;
  --navy-deep:   #0d1526;
  --navy-deep-2: #121f38;
  --cream:       #f5f2e6;
  --line:        rgba(19, 31, 54, 0.12);
  --line-light:  rgba(245, 242, 230, 0.16);

  --display: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 84px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  text-wrap: balance;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 700;
}
::selection { background: var(--yellow); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--yellow-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 720px)  { .container { padding-inline: 2rem; } }
@media (min-width: 1280px) { .container { padding-inline: 2.5rem; } }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--cream);
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.section { padding-block: clamp(4rem, 8vw, 8rem); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--yellow-deep);
  margin-bottom: 1rem;
}
.kicker::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--yellow-deep);
  display: inline-block;
}
.kicker-light { color: var(--yellow); }
.kicker-light::before { background: var(--yellow); }

.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 18ch;
  margin-bottom: 1.1rem;
}
.section-title-light { color: var(--cream); }
.section-lede {
  max-width: 56ch;
  font-size: 1.08rem;
  color: var(--ink-mute);
  margin-bottom: 2.5rem;
}

/* reveal-on-scroll (universal, gotcha-safe) */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
/* defensive: split-text elements must never stay invisible */
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .96rem;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(19,31,54,0.1), 0 1px 3px rgba(19,31,54,0.08);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .3s, color .3s;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }

.btn-primary {
  background: var(--yellow);
  color: var(--ink);
}
.btn-primary:hover {
  box-shadow: 0 20px 40px rgba(217,168,0,0.35), 0 8px 18px rgba(19,31,54,0.12);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-ghost-light {
  background: rgba(245,242,230,0.08);
  color: var(--cream);
  border: 1.5px solid rgba(245,242,230,0.45);
  box-shadow: none;
  backdrop-filter: blur(6px);
}
.btn-ghost-light:hover { background: rgba(245,242,230,0.16); border-color: var(--cream); }

.btn-small { padding: .65rem 1.3rem; font-size: .88rem; }
.btn-large { padding: 1.15rem 2.1rem; font-size: 1.02rem; }

/* =============================================================
   5. Cards / halo / tilt (signature light effects)
   ============================================================= */
.card {
  position: relative;
  isolation: isolate;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.1rem 1.9rem;
  --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft), box-shadow .55s var(--ease-soft), border-color .3s;
}
.card:hover { transition-duration: .15s; border-color: rgba(217,168,0,0.4); }
.card-icon {
  display: inline-flex;
  width: 52px; height: 52px;
  color: var(--yellow-deep);
  margin-bottom: 1.3rem;
}
.card-icon svg { width: 100%; height: 100%; }
.card h3 {
  font-size: 1.18rem;
  margin-bottom: .6rem;
  transform: translateZ(30px);
}
.card p { color: var(--ink-mute); font-size: .96rem; transform: translateZ(20px); }

.has-halo::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
              rgba(255, 213, 0, 0.28), transparent 62%);
  opacity: 0;
  transition: opacity .4s;
  mix-blend-mode: multiply;
}
.has-halo:hover::before { opacity: 1; }
.has-halo:hover {
  box-shadow: 0 40px 70px -30px rgba(19,31,54,0.22), 0 0 0 1px rgba(255,213,0,0.25);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
@media (min-width: 640px)  { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 500;
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), backdrop-filter .4s;
}
@media (max-width: 640px) {
  /* On phones the bar is always solid — the hero content below starts
     clear of it (see .hero padding-top), so nothing ever needs to show
     through the nav at all. */
  .nav {
    background: rgba(247,246,242,0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(19,31,54,0.08);
  }
  .nav .nav-logo { filter: none; }
  .nav .nav-link { color: var(--ink); text-shadow: none; }
  .nav .nav-burger span { background: var(--ink); box-shadow: none; }
}
.nav-inner {
  display: flex; align-items: center; gap: 1.5rem;
  height: var(--nav-h);
}
.nav.is-scrolled,
.nav.nav-solid {
  background: rgba(247,246,242,0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(19,31,54,0.08);
}
.nav-brand { display: inline-flex; align-items: center; }
.nav-logo {
  height: 58px; width: auto;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.35));
  transition: filter .4s;
}
.nav.is-scrolled .nav-logo,
.nav.nav-solid .nav-logo { filter: none; }
.nav-links {
  display: none;
  align-items: center;
  gap: 1.9rem;
  margin-inline: auto;
}
.nav-link {
  position: relative;
  font-weight: 600;
  font-size: .95rem;
  color: var(--cream);
  text-shadow: 0 1px 14px rgba(0,0,0,0.4);
  padding-block: .3rem;
  transition: color .35s, text-shadow .35s;
}
.nav.is-scrolled .nav-link,
.nav.nav-solid .nav-link {
  color: var(--ink);
  text-shadow: none;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--yellow-deep);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }
.nav-burger {
  display: grid; gap: 5px; padding: .5rem;
  margin-left: auto;
}
.nav-burger span {
  width: 24px; height: 2px; background: var(--cream); border-radius: 2px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.4);
  transition: transform .35s var(--ease-out), opacity .35s, background .35s;
}
.nav.is-scrolled .nav-burger span,
.nav.nav-solid .nav-burger span { background: var(--ink); box-shadow: none; }
.nav-mobile {
  position: fixed; inset: 0; top: var(--nav-h); z-index: 490;
  background: var(--navy-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.6rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px);
  transition: opacity .4s var(--ease-soft), transform .4s var(--ease-soft), visibility 0s linear .4s;
}
.nav-mobile[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .4s var(--ease-soft), transform .4s var(--ease-soft), visibility 0s linear 0s;
}
.nav-mobile-link { color: var(--cream); font-size: 1.4rem; font-weight: 700; font-family: var(--display); }
.nav-mobile-cta { margin-top: 1rem; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .nav-mobile { display: none; }
}

/* =============================================================
   8. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  padding-bottom: clamp(4rem, 9vw, 7rem);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; background: #d9dadc; }
.hero-video {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
@media (max-width: 640px) {
  /* The nav is solid on phones now (see .nav above), so hero content simply
     starts below it — no overlap is possible regardless of the video. */
  .hero { padding-top: calc(var(--nav-h) + 1.5rem); }
  /* Soft ambient light rather than a sharp logo replay: blurred, dimmed and
     slightly scaled up (to hide the blur's edge artifacts). */
  .hero-video {
    filter: blur(10px) brightness(0.85) saturate(1.15);
    transform: scale(1.12);
  }
}
.hero-bg-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,21,38,0.68) 0%, rgba(13,21,38,0.5) 40%, rgba(13,21,38,0.94) 100%),
    linear-gradient(90deg, rgba(13,21,38,0.6) 0%, transparent 55%);
}
@media (max-width: 640px) {
  .hero-bg-tint {
    background: linear-gradient(180deg, rgba(13,21,38,0.45) 0%, rgba(13,21,38,0.35) 45%, rgba(13,21,38,0.85) 100%);
  }
}
.hero-inner { position: relative; z-index: 1; }
.hero-kicker { color: var(--yellow); }
.hero-kicker::before { background: var(--yellow); }
.hero-title {
  color: var(--cream);
  font-size: clamp(2.4rem, 6.4vw, 5.4rem);
  max-width: 16ch;
  text-shadow: 0 4px 30px rgba(0,0,0,0.35);
}
.hero-title em {
  font-style: normal;
  color: var(--yellow);
}
.hero-sub {
  color: rgba(245,242,230,0.86);
  font-size: 1.15rem;
  max-width: 46ch;
  margin-block: 1.4rem 2.1rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; z-index: 1;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(245,242,230,0.5);
  border-radius: 999px;
}
.hero-scroll-cue span {
  position: absolute; top: 7px; left: 50%;
  width: 4px; height: 8px; margin-left: -2px;
  background: var(--yellow);
  border-radius: 2px;
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(14px); opacity: .3; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue span { animation: none; }
}

/* =============================================================
   9. Stats
   ============================================================= */
.stats { background: var(--navy-deep); padding-block: clamp(2.6rem, 5vw, 4rem); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  max-width: 560px;
  margin-inline: auto;
  gap: 2rem 4.5rem;
  text-align: center;
}
.stat { display: flex; flex-direction: column; gap: .4rem; }
.stat-value {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.5vw, 3.4rem);
  font-weight: 800;
  color: var(--yellow);
}
.stat-label {
  font-size: .82rem;
  color: rgba(245,242,230,0.72);
  letter-spacing: .02em;
}

/* =============================================================
   10. Nosotros
   ============================================================= */
.nosotros-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 960px) {
  .nosotros-grid { grid-template-columns: 0.8fr 1.6fr; align-items: start; gap: 4rem; }
}
.nosotros-figure {
  isolation: isolate;
  display: flex; flex-direction: column; gap: .4rem;
  padding: 2.4rem;
  border-radius: 24px;
  color: var(--cream);
  overflow: hidden;
  min-height: 260px;
  justify-content: flex-end;
  background: var(--ink) url("assets/img/hero-arcos.webp") center 30% / cover no-repeat;
}
@media (min-width: 960px) {
  /* Sticky only makes sense once the 2-column layout kicks in — on a single
     mobile column it would pin the card over the text scrolling beneath it. */
  .nosotros-figure { position: sticky; top: calc(var(--nav-h) + 2rem); }
}
.nosotros-figure::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13,21,38,0.55) 0%, rgba(13,21,38,0.88) 100%);
}
.nosotros-year {
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 4.6rem);
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
}
.nosotros-year-label { color: rgba(245,242,230,0.75); font-size: .95rem; }
.nosotros-text h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 20ch; margin-bottom: 1.4rem; }
.nosotros-mission { font-size: 1.08rem; max-width: 62ch; margin-bottom: 1.8rem; }

.audience-chips {
  display: flex; flex-wrap: wrap; gap: .6rem;
  list-style: none; padding: 0;
}
.audience-chips li {
  padding: .5rem 1rem;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* =============================================================
   11. Servicios (alt background band)
   ============================================================= */
.servicios { background: var(--bg-alt); }

/* =============================================================
   12. Ventajas
   ============================================================= */
.ventajas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
}
@media (min-width: 720px)  { .ventajas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .ventajas-grid { grid-template-columns: repeat(4, 1fr); } }
.ventaja { border-top: 2px solid var(--line); padding-top: 1.4rem; }
.ventaja-number {
  display: block;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--yellow-deep);
  margin-bottom: .8rem;
}
.ventaja h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.ventaja p { color: var(--ink-mute); font-size: .95rem; }

/* =============================================================
   13. Proyectos / category cards → gallery-by-category
   ============================================================= */
.proyectos { background: var(--bg); }

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
@media (min-width: 640px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }

.category-card {
  position: relative;
  isolation: isolate;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  display: block;
  width: 100%;
  --rx: 0deg; --ry: 0deg;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.category-card:hover { transition-duration: .15s; box-shadow: 0 45px 80px -30px rgba(13,21,38,0.4); }
.category-card.has-halo::before {
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%),
              rgba(255,213,0,0.35), transparent 65%);
  mix-blend-mode: screen;
  z-index: 2;
}
.category-card > img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-soft), filter .6s;
}
.category-card:hover > img { transform: scale(1.08); filter: saturate(1.15) brightness(1.03); }

.category-card-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(13,21,38,0.05) 35%, rgba(13,21,38,0.86) 100%);
}
.category-card-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1.6rem 1.7rem;
  text-align: left;
}
.category-card-title {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 800;
  color: var(--cream);
}
.category-card-meta {
  font-size: .84rem;
  font-weight: 600;
  color: var(--yellow);
  letter-spacing: .01em;
}

/* light-sweep reveal gleam */
.category-card::after {
  content: "";
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.55) 50%, transparent 60%);
  transform: translateX(-140%);
  pointer-events: none;
}
.category-card.is-revealed::after {
  animation: lightSweep 1.1s var(--ease-out) .15s 1;
}
@keyframes lightSweep {
  to { transform: translateX(140%); }
}

/* =============================================================
   13b. Gallery sub-pages (proyectos-*.html) — no hero, solid nav
   ============================================================= */
.galeria-page { padding-top: calc(var(--nav-h) + 2.5rem); }

.back-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .9rem;
  color: var(--ink-mute);
  margin-bottom: 1.6rem;
  transition: color .3s, gap .3s;
}
.back-link:hover { color: var(--ink); gap: .75rem; }

.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 2.4rem;
}
@media (min-width: 640px)  { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }

.photo-tile {
  position: relative;
  isolation: isolate;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: block;
  width: 100%;
  --rx: 0deg; --ry: 0deg;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.photo-tile:hover { transition-duration: .15s; box-shadow: 0 45px 80px -30px rgba(13,21,38,0.4); }
.photo-tile.has-halo::before {
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%),
              rgba(255,213,0,0.35), transparent 65%);
  mix-blend-mode: screen;
  z-index: 2;
}
.photo-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-soft), filter .6s;
}
.photo-tile:hover img { transform: scale(1.08); filter: saturate(1.15) brightness(1.03); }
.photo-tile-caption {
  position: absolute; left: .85rem; bottom: .85rem; z-index: 2;
  padding: .35rem .75rem;
  background: rgba(13,21,38,0.72);
  color: var(--cream);
  font-size: .78rem;
  font-weight: 600;
  border-radius: 10px;
  backdrop-filter: blur(4px);
  max-width: calc(100% - 1.7rem);
}
.photo-tile::after {
  content: "";
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.55) 50%, transparent 60%);
  transform: translateX(-140%);
  pointer-events: none;
}
.photo-tile.is-revealed::after {
  animation: lightSweep 1.1s var(--ease-out) .15s 1;
}

/* =============================================================
   14. Clientes (marquee, dark band)
   ============================================================= */
.clientes { background: var(--navy-deep); padding-block: clamp(4rem, 7vw, 6rem); }
.clientes .container { margin-bottom: 2.6rem; }

.marquee { overflow: hidden; position: relative; white-space: nowrap; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--navy-deep), transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--navy-deep), transparent); }
.marquee-track {
  display: inline-flex; align-items: center; gap: 2.2rem;
  white-space: nowrap; will-change: transform;
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-weight: 700;
  color: rgba(245,242,230,0.9);
  padding-inline: 1.1rem;
}
.marquee-track span[aria-hidden] { color: var(--yellow); }

/* =============================================================
   15. Contacto
   ============================================================= */
.contacto-grid {
  display: grid;
  gap: 2.6rem;
}
@media (min-width: 960px) {
  .contacto-grid { grid-template-columns: 1.05fr 0.95fr; align-items: stretch; }
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.2rem; }
.contact-details { list-style: none; padding: 0; display: grid; gap: 1rem; }
.contact-details li { display: flex; flex-direction: column; gap: .15rem; }
.contact-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute); }
.contact-details a { font-weight: 600; color: var(--ink); }
.contact-details a:hover { color: var(--yellow-deep); }

.contacto-map-wrap {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.contacto-map {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 320px;
}
.contacto-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
.map-directions-link {
  align-self: flex-start;
  display: inline-flex;
  padding: .6rem 1.1rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-size: .84rem;
  box-shadow: 0 8px 20px rgba(19,31,54,0.25);
  transition: transform .3s var(--ease-soft);
}
.map-directions-link:hover { transform: translateY(-2px); }

/* =============================================================
   16. Footer
   ============================================================= */
.footer { background: var(--ink); color: rgba(245,242,230,0.78); padding-block: 3.6rem 1.6rem; }
.footer-grid {
  display: grid; gap: 2.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-logo { height: 34px; width: auto; margin-bottom: 1rem; filter: brightness(1.4); }
.footer-brand p { max-width: 34ch; font-size: .92rem; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: .75rem; font-size: .95rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--yellow); }
.footer-bottom {
  margin-top: 2.6rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line-light);
  font-size: .82rem; color: rgba(245,242,230,0.5);
}

/* =============================================================
   17. Lightbox
   ============================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(13,21,38,0.94);
  display: none;
  align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox[data-open="true"] { display: flex; }
.lightbox figure { max-width: 92vw; max-height: 86vh; }
.lightbox img { max-width: 92vw; max-height: 76vh; border-radius: 10px; object-fit: contain; margin-inline: auto; }
.lightbox figcaption { color: var(--cream); text-align: center; margin-top: 1rem; font-size: .95rem; }
.lightbox-close {
  position: absolute; top: 1.4rem; right: 1.6rem;
  color: var(--cream); font-size: 1.4rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(245,242,230,0.1);
}
.lightbox-close:hover { background: rgba(245,242,230,0.2); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: var(--cream); font-size: 2.4rem;
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(245,242,230,0.1);
  display: grid; place-items: center;
}
.lightbox-nav:hover { background: rgba(245,242,230,0.2); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
@media (max-width: 640px) {
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.8rem; }
}

/* =============================================================
   18. Responsive helpers
   ============================================================= */
@media (max-width: 539px) {
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* =============================================================
   19. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .category-card::after, .photo-tile::after { display: none; }
  .stat-value { transition: none; }
}
