/* ===========================================================================
   ASTRA TELECOM — Sistema visual
   Neutros cálidos · acento terracota · tipografía Geist/Geist Mono/Newsreader
   =========================================================================== */

:root {
  /* Tipografía */
  --font-sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-display: var(--font-sans); /* lo cambia el Tweak de tipografía */

  /* Neutros — base blanca */
  --bg: #ffffff;
  --bg-soft: #f4f4f3;
  --surface: #ffffff;
  --ink: #1c1b19;
  --ink-2: #46433e;
  --muted: #6f6a62;
  --faint: #9a958c;
  --line: #eceae5;
  --line-2: #ddd9d1;
  --dark: #1b1815;
  --dark-2: #262119;
  --on-dark: #ece7dd;
  --on-dark-muted: #a59d8f;

  /* Acento — azul del logo (default). Lo sobreescribe el panel de Tweaks. */
  --accent: #2b537f;
  --accent-strong: #214162;
  --accent-soft: #dde6f0;
  --accent-contrast: #ffffff;

  /* Marca (logo) */
  --brand-blue: #2b537f;

  /* Forma / sombra */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(33,30,26,.05), 0 2px 8px rgba(33,30,26,.04);
  --shadow-md: 0 4px 14px rgba(33,30,26,.07), 0 14px 40px rgba(33,30,26,.07);
  --shadow-lg: 0 10px 30px rgba(33,30,26,.10), 0 30px 70px rgba(33,30,26,.10);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1.25rem, 5vw, 2.75rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-corners="sharp"] {
  --radius: 2px;
  --radius-sm: 1px;
  --radius-lg: 3px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden; /* Corta desbordamiento horizontal en html */
  max-width: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-contrast); }

/* ---------- Utilidades ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 1.6rem; height: 1px;
  background: var(--accent);
  opacity: .6;
}
.eyebrow.center::after {
  content: "";
  width: 1.6rem; height: 1px;
  background: var(--accent);
  opacity: .6;
}
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}
.lead {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.muted { color: var(--muted); }
.serif-on [data-display], .serif-on .display { font-family: var(--font-serif); letter-spacing: -0.012em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.95em 1.5em;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn .ar { transition: transform .3s var(--ease); }
.btn:hover .ar { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--surface); color: var(--ink); }
.btn-light:hover { background: #fff; transform: translateY(-1px); }
.btn-on-dark { background: transparent; color: var(--on-dark); border-color: rgba(236,231,221,.28); }
.btn-on-dark:hover { border-color: var(--on-dark); }
.btn-lg { padding: 1.05em 1.8em; font-size: 1rem; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: 500; color: var(--accent);
  font-size: 0.94rem;
}
.link-arrow .ar { transition: transform .3s var(--ease); }
.link-arrow:hover .ar { transform: translateX(4px); }

/* ===========================================================================
   HEADER
   =========================================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  background: rgba(20,17,14,0.55);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  color: var(--on-dark);
}
.header__inner { display: flex; align-items: center; gap: 1.5rem; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; flex: none; }
.brand img { height: 34px; width: auto; }
.header__nav { display: flex; align-items: center; gap: 2.1rem; margin-inline: auto; }
.header__nav a { font-size: 0.95rem; color: rgba(236,231,221,.85); transition: color .2s; position: relative; padding-block: .4rem; }
.header__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .28s var(--ease); }
.header__nav a:hover { color: #fff; }
.header__nav a:hover::after { transform: scaleX(1); }
.header__nav a.active { color: var(--ink); font-weight: 500; }
.header__nav a.active::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 1.2rem; flex: none; }
.header__tel { font-family: var(--font-mono); font-size: .85rem; color: rgba(236,231,221,.75); white-space: nowrap; display: inline-flex; align-items: center; gap: 1.2rem; }
.header__tel::before { content: ""; width: 1px; height: 18px; background: var(--line-2); }
.header__tel:hover { color: var(--accent); }

/* estado: sobre el hero (claro) */
.header[data-over-hero="true"] { color: var(--on-dark); }
.header[data-over-hero="true"] .brand img { content: none; }
.header[data-over-hero="true"] .header__nav a { color: rgba(236,231,221,.82); }
.header[data-over-hero="true"] .header__nav a:hover { color: #fff; }
.header[data-over-hero="true"] .header__tel { color: rgba(236,231,221,.82); }
.header[data-over-hero="true"] .header__tel::before { background: rgba(236,231,221,.28); }
.header[data-over-hero="true"] .header__nav a::after { background: #fff; }
.header[data-over-hero="true"] .btn-ghost { color: var(--on-dark); border-color: rgba(236,231,221,.32); }
.header[data-over-hero="true"] .btn-ghost:hover { border-color: var(--on-dark); }
.header[data-over-hero="true"] .logo-dark { display: none; }
.header[data-over-hero="true"] .logo-light { display: block; }
/* Por defecto mostrar logo blanco (header oscuro) */
.header .logo-dark  { display: none; }
.header .logo-light { display: block; }
.logo-light { display: none; }

/* estado: scrolled (sólido) */
.header.is-scrolled,
.header--solid {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--line);
  color: var(--ink);
  box-shadow: 0 1px 24px rgba(20,17,14,.07);
}
.header.is-scrolled .header__nav a,
.header--solid .header__nav a { color: var(--ink-2); }
.header.is-scrolled .header__nav a:hover,
.header--solid .header__nav a:hover { color: var(--ink); }
.header.is-scrolled .logo-dark,
.header--solid .logo-dark { display: block; }
.header.is-scrolled .logo-light,
.header--solid .logo-light { display: none; }
.header.is-scrolled .btn-ghost,
.header--solid .btn-ghost { color: var(--ink); border-color: var(--line-2); }
.header.is-scrolled .header__tel,
.header--solid .header__tel { color: var(--ink-2); }
.header.is-scrolled .header__tel::before,
.header--solid .header__tel::before { background: var(--line-2); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 27px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* menú móvil */
.mobile-nav {
  position: fixed; inset: 0; z-index: 80;
  background: var(--bg);
  padding: 80px var(--gutter) 2.5rem;
  display: flex; flex-direction: column; gap: .15rem;
  transform: translateY(-100%); opacity: 0; pointer-events: none;
  transition: transform .4s var(--ease), opacity .3s;
  overflow-y: auto;                    /* Scroll si no cabe todo */
  -webkit-overflow-scrolling: touch;   /* Scroll suave en iOS */
}
body.menu-open .mobile-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 5vw, 1.5rem); /* Más pequeño en pantallas chicas */
  font-weight: 600;
  letter-spacing: -.02em;
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav .btn {
  margin-top: 1.25rem;
  justify-content: center;
  padding: .9rem 1.5rem;
  font-size: 1rem;
  width: 100%;
}

/* ===========================================================================
   HERO
   =========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media image-slot { width: 100%; height: 100%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20,17,14,.46) 0%, rgba(20,17,14,.12) 32%, rgba(20,17,14,.30) 70%, rgba(20,17,14,.78) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(3.5rem, 7vw, 6rem); padding-top: 120px; }
.hero__eyebrow { color: rgba(236,231,221,.9); }
.hero__eyebrow::before { background: rgba(236,231,221,.7); }
.hero h1 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5.1rem);
  letter-spacing: -0.035em; line-height: 1.0;
  max-width: 16ch; text-wrap: balance;
  margin-top: 1.1rem;
}
.hero p.hero__sub {
  color: rgba(236,231,221,.92);
  font-size: clamp(1.1rem, 1rem + 0.7vw, 1.5rem);
  max-width: 46ch; margin-top: 1.4rem; line-height: 1.45; text-wrap: pretty;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero__meta {
  margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 2.2rem;
  border-top: 1px solid rgba(236,231,221,.18); padding-top: 1.6rem; max-width: 640px;
}
.hero__meta div { color: rgba(236,231,221,.92); }
.hero__meta .n { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; letter-spacing: -.02em; display: block; }
.hero__meta .l { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(236,231,221,.62); margin-top: .25rem; }

/* hero slot premium placeholder */
image-slot#hero-img::part(frame) {
  background:
    linear-gradient(135deg, #2a2620 0%, #211d18 100%);
  background-color: #221e19;
}
image-slot#hero-img::part(empty) { color: rgba(236,231,221,.5); }
image-slot#hero-img::part(ring) { border-color: rgba(236,231,221,.16); }

/* variante split */
[data-hero="split"] .hero { min-height: auto; display: block; padding-top: 76px; }
[data-hero="split"] .hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem,5vw,5rem); padding-block: clamp(3rem,7vw,6rem); }
[data-hero="split"] .hero__media { position: static; grid-column: 2; height: clamp(420px, 62vh, 640px); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
[data-hero="split"] .hero__media image-slot { border-radius: var(--radius-lg); }
[data-hero="split"] .hero__scrim { display: none; }
[data-hero="split"] .hero__text { grid-column: 1; grid-row: 1; }
[data-hero="split"] .hero h1 { color: var(--ink); }
[data-hero="split"] .hero p.hero__sub { color: var(--ink-2); }
[data-hero="split"] .hero__eyebrow { color: var(--accent); }
[data-hero="split"] .hero__eyebrow::before { background: var(--accent); }
[data-hero="split"] .hero__meta { border-top-color: var(--line); }
[data-hero="split"] .hero__meta div { color: var(--ink); }
[data-hero="split"] .hero__meta .l { color: var(--muted); }
[data-hero="split"] image-slot#hero-img::part(frame) { background: var(--bg-soft); }
[data-hero="split"] image-slot#hero-img::part(empty) { color: var(--muted); }
[data-hero="split"] .header:not(.is-scrolled) { position: absolute; }
[data-hero="split"] .header:not(.is-scrolled) .header__nav a,
[data-hero="split"] .header:not(.is-scrolled) .header__tel { color: var(--ink-2); }
[data-hero="split"] .header:not(.is-scrolled) .logo-dark { display: block; }
[data-hero="split"] .header:not(.is-scrolled) .logo-light { display: none; }
[data-hero="split"] .header:not(.is-scrolled) .btn-ghost { color: var(--ink); border-color: var(--line-2); }

/* variante editorial (centrada minimal) */
[data-hero="editorial"] .hero { min-height: 92svh; align-items: center; text-align: center; background: var(--bg); }
[data-hero="editorial"] .hero__media { inset: auto; position: absolute; bottom: 0; left: 0; right: 0; height: 38%; z-index: 0; opacity: 1; -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%); mask-image: linear-gradient(180deg, transparent, #000 70%); }
[data-hero="editorial"] .hero__scrim { display: none; }
[data-hero="editorial"] .hero__inner { display: flex; flex-direction: column; align-items: center; }
[data-hero="editorial"] .hero h1 { color: var(--ink); max-width: 18ch; }
[data-hero="editorial"] .hero p.hero__sub { color: var(--ink-2); margin-inline: auto; }
[data-hero="editorial"] .hero__eyebrow { color: var(--accent); }
[data-hero="editorial"] .hero__eyebrow::before { background: var(--accent); }
[data-hero="editorial"] .hero__cta { justify-content: center; }
[data-hero="editorial"] .hero__meta { display: none; }
[data-hero="editorial"] image-slot#hero-img::part(frame) { background: var(--bg-soft); }
[data-hero="editorial"] image-slot#hero-img::part(ring) { display: none; }
[data-hero="editorial"] .header:not(.is-scrolled) .header__nav a,
[data-hero="editorial"] .header:not(.is-scrolled) .header__tel { color: var(--ink-2); }
[data-hero="editorial"] .header:not(.is-scrolled) .logo-dark { display: block; }
[data-hero="editorial"] .header:not(.is-scrolled) .logo-light { display: none; }
[data-hero="editorial"] .header:not(.is-scrolled) .btn-ghost { color: var(--ink); border-color: var(--line-2); }

/* ===========================================================================
   MARCAS / TRUST STRIP
   =========================================================================== */
.brands { border-block: 1px solid var(--line); background: var(--surface); padding-block: 2.5rem; }
.brands__head { margin-bottom: 2rem; }
.brands__label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Grid de logos */
.brands-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .brands-logos { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .brands-logos { grid-template-columns: repeat(3, 1fr); } }

.brand-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s, transform .2s;
  text-decoration: none;
}
.brand-logo-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(43,83,127,.1);
  transform: translateY(-2px);
}
.brand-logo-item img {
  height: 32px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%) opacity(.65);
  transition: filter .2s;
}
.brand-logo-item:hover img { filter: grayscale(0%) opacity(1); }

/* Mantener compatibilidad con brand-word legacy */
.brands__inner { display: flex; align-items: center; gap: clamp(1.5rem, 5vw, 4rem); padding-block: 1.7rem; flex-wrap: wrap; }
.brands__row { display: flex; align-items: center; gap: clamp(1.4rem, 4vw, 3.2rem); flex-wrap: wrap; flex: 1; }
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: .01em; color: #8b8478; transition: color .3s; }
.brand-word:hover { color: var(--ink); }

/* ── Marquee de marcas ─────────────────────────────────────── */
.brands-marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--surface);
  padding-block: 1.25rem;
}
.brands-marquee__track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.brands-marquee__track:hover { animation-play-state: paused; }
.brands-marquee__track img {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(.55);
  transition: filter .25s;
  flex-shrink: 0;
}
.brands-marquee__track img:hover { filter: grayscale(0%) opacity(1); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .brands-marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ===========================================================================
   SECTION HEAD
   =========================================================================== */
.sec-head { max-width: 760px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem); margin-top: 1rem; }
.sec-head p { margin-top: 1.1rem; }

/* ===========================================================================
   SERVICIOS
   =========================================================================== */
.services { background: var(--bg); }
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: clamp(2.5rem, 5vw, 4rem); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.svc {
  position: relative; padding: clamp(1.6rem, 2.4vw, 2.4rem);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .7rem;
  transition: background .3s var(--ease);
}
.svc:nth-child(2n) { border-right: 0; }
.services__grid .svc:nth-last-child(-n+2) { border-bottom: 0; }
.svc:hover { background: var(--bg); }
.svc__n { font-family: var(--font-mono); font-size: .78rem; color: var(--accent); letter-spacing: .06em; }
.svc__tag { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: .5em; }
.svc__tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.svc h3 { font-size: 1.32rem; font-family: var(--font-display); letter-spacing: -.02em; }
.svc p { color: var(--ink-2); font-size: .98rem; line-height: 1.55; max-width: 42ch; }
.svc .link-arrow { margin-top: auto; opacity: 0; transform: translateY(4px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.svc:hover .link-arrow { opacity: 1; transform: translateY(0); }
@media (hover: none) { .svc .link-arrow { opacity: 1; transform: none; } }

/* ===========================================================================
   PROCESO
   =========================================================================== */
.process { background: var(--dark); color: var(--on-dark); }
.process .eyebrow { color: var(--accent); }
.process .sec-head h2 { color: #fff; }
.process .sec-head p { color: var(--on-dark-muted); }
.proc__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(2.5rem,5vw,4rem); background: rgba(236,231,221,.12); border: 1px solid rgba(236,231,221,.12); border-radius: var(--radius-lg); overflow: hidden; }
.proc { background: var(--dark); padding: clamp(1.6rem,2.4vw,2.3rem); display: flex; flex-direction: column; gap: .8rem; min-height: 230px; transition: background .3s; }
.proc:hover { background: var(--dark-2); }
.proc__n { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); letter-spacing: .1em; }
.proc h3 { color: #fff; font-size: 1.25rem; font-family: var(--font-display); margin-top: .3rem; }
.proc p { color: var(--on-dark-muted); font-size: .94rem; line-height: 1.55; }

/* ===========================================================================
   PROYECTOS
   =========================================================================== */
.projects { background: var(--bg); }
.proj__head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.proj__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.2rem, 2.4vw, 2rem); margin-top: clamp(2.5rem,5vw,4rem); }
.proj { grid-column: span 6; display: flex; flex-direction: column; }
.proj.feature { grid-column: span 12; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem,3vw,3rem); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.proj.feature .proj__media { height: 100%; min-height: 360px; }
.proj__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-soft); }
.proj.feature .proj__media { border-radius: 0; aspect-ratio: auto; }
.proj__media image-slot { width: 100%; height: 100%; }
.proj__body { padding: 1.3rem .1rem 0; display: flex; flex-direction: column; gap: .7rem; }
.proj.feature .proj__body { padding: clamp(1.5rem,3vw,2.6rem) clamp(1.5rem,3vw,2.6rem) clamp(1.5rem,3vw,2.6rem) 0; }
.proj__tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.proj h3 { font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); }
.proj p { color: var(--ink-2); font-size: .98rem; line-height: 1.55; }
.proj__result { margin-top: .4rem; display: flex; gap: 1.8rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1rem; }
.proj__result .n { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); display: block; }
.proj__result .l { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }
.proj__media .ph-cap { position: absolute; left: 14px; bottom: 12px; z-index: 3; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .05em; color: var(--muted); pointer-events: none; }
image-slot.shot::part(frame) { background: repeating-linear-gradient(135deg, #efe9df 0 10px, #ece5d9 10px 20px); }

/* ===========================================================================
   COBERTURA LOCAL
   =========================================================================== */
.coverage { background: var(--surface); border-block: 1px solid var(--line); }
.coverage__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.coverage__zones { display: grid; grid-template-columns: repeat(2, 1fr); gap: .1rem 2rem; }
.zone { display: flex; align-items: baseline; gap: .7rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.zone .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); }
.zone strong { font-weight: 500; }
.coverage__links { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .55rem; }
.chip { font-family: var(--font-mono); font-size: .78rem; padding: .5em .85em; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); transition: border-color .2s, color .2s, background .2s; }
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* ===========================================================================
   POR QUÉ ASTRA / EEAT
   =========================================================================== */
.why { background: var(--bg); }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.4rem,3vw,2.4rem); margin-top: clamp(2.5rem,5vw,4rem); }
.value { display: flex; flex-direction: column; gap: .7rem; }
.value__n { font-family: var(--font-display); font-size: clamp(2.2rem,1.6rem+1.6vw,3rem); font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.value h3 { font-size: 1.08rem; font-family: var(--font-display); }
.value p { color: var(--ink-2); font-size: .95rem; line-height: 1.55; }
.value__n + h3 { margin-top: .2rem; }
.value .top { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

.quote { margin-top: clamp(3rem,6vw,5rem); display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; padding: clamp(1.8rem,4vw,3rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.quote image-slot { width: 96px; height: 96px; flex: none; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.25rem,1rem+1.2vw,1.7rem); line-height: 1.35; letter-spacing: -.015em; text-wrap: pretty; }
.quote .cite { margin-top: 1rem; font-size: .9rem; color: var(--muted); font-family: var(--font-mono); letter-spacing: .03em; }

/* ===========================================================================
   FAQ
   =========================================================================== */
.faq { background: var(--surface); border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; padding: 1.35rem 0; display: flex; align-items: center; gap: 1.5rem; justify-content: space-between; font-family: var(--font-display); font-size: clamp(1.05rem,1rem+.4vw,1.25rem); font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.faq__icon { flex: none; width: 22px; height: 22px; position: relative; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--accent); transition: transform .3s var(--ease); }
.faq__icon::before { top: 10.5px; left: 2px; right: 2px; height: 1.5px; }
.faq__icon::after { left: 10.5px; top: 2px; bottom: 2px; width: 1.5px; }
.faq__item[aria-expanded="true"] .faq__icon::after { transform: scaleY(0); }
.faq__a { overflow: hidden; height: 0; transition: height .35s var(--ease); }
.faq__a-inner { padding-bottom: 1.5rem; color: var(--ink-2); max-width: 60ch; line-height: 1.6; }

/* ===========================================================================
   CTA BAND
   =========================================================================== */
.cta-band { background: var(--dark); color: var(--on-dark); position: relative; overflow: hidden; }
.cta-band__inner { display: grid; grid-template-columns: 1.2fr auto; align-items: center; gap: 2rem; }
.cta-band h2 { font-family: var(--font-display); color: #fff; font-size: clamp(1.8rem,1.3rem+2vw,3rem); max-width: 18ch; }
.cta-band p { color: var(--on-dark-muted); margin-top: 1rem; max-width: 40ch; }
.cta-band__actions { display: flex; flex-direction: column; gap: .8rem; }

/* ===========================================================================
   CONTACTO / FORM
   =========================================================================== */
.contact { background: var(--bg); }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,5vw,4.5rem); }
.contact__info h2 { font-family: var(--font-display); font-size: clamp(1.8rem,1.3rem+2vw,2.8rem); margin-top: 1rem; }
.contact__info p.lead { margin-top: 1.1rem; }
.contact__details { margin-top: 2.2rem; display: flex; flex-direction: column; gap: 1.3rem; }
.detail { display: flex; gap: 1rem; align-items: flex-start; }
.detail__k { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); width: 96px; flex: none; padding-top: .3rem; }
.detail__v { font-size: 1.05rem; }
.detail__v a:hover { color: var(--accent); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem,3vw,2.6rem); box-shadow: var(--shadow-sm); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.1rem; }
.field label { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .98rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: .85em .95em; transition: border-color .2s, box-shadow .2s, background .2s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179,38,30,.12); }
.field .err-msg { font-size: .78rem; color: #b3261e; display: none; }
.field.invalid .err-msg { display: block; }
.form__submit { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .5rem; flex-wrap: wrap; }
.form__note { font-size: .82rem; color: var(--muted); max-width: 30ch; }
.form__success { display: none; text-align: center; padding: 2rem 1rem; }
.form.sent .form__fields { display: none; }
.form.sent .form__success { display: block; }
.form__success .check { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 1.2rem; font-size: 1.6rem; }
.form__success h3 { font-family: var(--font-display); font-size: 1.5rem; }
.form__success p { color: var(--ink-2); margin-top: .6rem; }

/* ===========================================================================
   FOOTER
   =========================================================================== */
.footer { background: var(--dark); color: var(--on-dark); padding-top: clamp(4rem,7vw,6rem); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(1.5rem,4vw,3rem); padding-bottom: clamp(3rem,5vw,4rem); border-bottom: 1px solid rgba(236,231,221,.12); }
.footer__brand img { height: 30px; width: auto; margin-bottom: 1.2rem; }
.footer__brand p { color: var(--on-dark-muted); font-size: .95rem; max-width: 32ch; line-height: 1.6; }
.footer__brand .tel { display: block; margin-top: 1.2rem; font-family: var(--font-mono); font-size: 1.05rem; color: #fff; }
.footer h4 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); font-weight: 500; margin-bottom: 1.1rem; }
.footer__col a { display: block; color: rgba(236,231,221,.8); font-size: .95rem; padding: .4rem 0; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.8rem; flex-wrap: wrap; }
.footer__bottom p { color: var(--on-dark-muted); font-size: .82rem; font-family: var(--font-mono); letter-spacing: .03em; }
.footer__social { display: flex; gap: .6rem; }
.footer__social a { width: 38px; height: 38px; border: 1px solid rgba(236,231,221,.2); border-radius: 50%; display: grid; place-items: center; color: var(--on-dark); transition: border-color .2s, background .2s; }
.footer__social a:hover { border-color: var(--on-dark); background: rgba(236,231,221,.06); }

/* ===========================================================================
   WHATSAPP FLOTANTE + back to top
   =========================================================================== */
.wa {
  position: fixed; right: clamp(1rem,3vw,1.8rem); bottom: clamp(1rem,3vw,1.8rem); z-index: 70;
  display: inline-flex; align-items: center; gap: .6rem;
  background: #1f8a4c; color: #fff; padding: .85em 1.2em .85em 1em; border-radius: 999px;
  box-shadow: var(--shadow-md); font-weight: 500; font-size: .92rem;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.wa:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.wa svg { width: 22px; height: 22px; flex: none; }
.wa .wa-label { transition: max-width .35s var(--ease), opacity .25s; white-space: nowrap; }
@media (max-width: 560px) { .wa { padding: .9em; } .wa .wa-label { display: none; } }

/* ===========================================================================
   REVEAL (animaciones suaves)
   =========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal[data-d="1"] { transition-delay: .08s; }
  .reveal[data-d="2"] { transition-delay: .16s; }
  .reveal[data-d="3"] { transition-delay: .24s; }
}

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */
@media (max-width: 1080px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}
@media (max-width: 920px) {
  .header__nav, .header__tel { display: none; }
  .burger { display: block; }
  .header__actions .btn { display: none; }
  /* Iconos del header en móvil — más accesibles */
  .header__actions { gap: .85rem; }
  .cart-nav-btn svg, #btn-mi-cuenta svg { width: 22px; height: 22px; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .proc__grid { grid-template-columns: repeat(2, 1fr); }
  .coverage__grid, .faq__grid, .contact__grid, .cta-band__inner { grid-template-columns: 1fr; }
  .proj.feature { grid-template-columns: 1fr; }
  .proj.feature .proj__media { min-height: 300px; aspect-ratio: 16/10; }
  .proj.feature .proj__body { padding: 0 clamp(1.4rem,4vw,2rem) clamp(1.8rem,4vw,2.4rem); }
  [data-hero="split"] .hero__inner { grid-template-columns: 1fr; }
  [data-hero="split"] .hero__media { grid-column: 1; grid-row: 2; height: 360px; }
}
@media (max-width: 720px) {
  .services__grid { grid-template-columns: 1fr; }
  .svc { border-right: 0 !important; }
  .services__grid .svc:nth-last-child(1) { border-bottom: 0; }
  .services__grid .svc:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .coverage__zones { grid-template-columns: 1fr; }
  .proj { grid-column: span 12; }
  .cta-band__actions { width: 100%; }
  .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .why__grid, .proc__grid { grid-template-columns: 1fr; }
  .hero__meta { gap: 1.4rem; }
}
