/* DUO Chile — sistema visual
   Verde DUO + amarillo señal, titulares condensados, cortes diagonales de "señal". */

:root {
  --green: #004402;
  --green-800: #003201;
  --green-900: #06200c;
  --green-950: #04150a;
  --green-600: #0b5c12;
  --green-100: #e3ece2;
  --yellow: #f3d400;
  --yellow-600: #d9bd00;
  --paper: #f2f3ef;
  --paper-2: #e8eae4;
  --white: #ffffff;
  --ink: #0f1a12;
  --ink-2: #3a463c;
  --muted: #5d6a5f;
  --line: rgba(15, 26, 18, .12);
  --line-strong: rgba(15, 26, 18, .22);
  --line-dark: rgba(255, 255, 255, .14);

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
  --skew: 9%;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  overflow-x: clip;
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.02; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.on-light :focus-visible, .header :focus-visible { outline-color: var(--green); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--green-900); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

/* ---------- Tipografía display ---------- */
.display, .h-xl, .h-lg, .h-md {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.005em;
}
.h-xl { font-style: italic; font-size: clamp(2.6rem, 7.4vw, 5.6rem); line-height: .9; }
.h-lg { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: .95; }
.h-md { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .14em; font-size: .9rem; color: var(--green);
}
.eyebrow::before {
  content: ""; width: 12px; height: 12px; background: var(--yellow);
  transform: skewX(-18deg); flex: none;
}
.dark .eyebrow { color: var(--yellow); }
.slash { color: var(--yellow); font-style: italic; font-weight: 800; }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.22rem); color: var(--ink-2); max-width: 60ch; }
.dark .lead { color: rgba(255,255,255,.8); }

/* Marca amarilla tipo "chip" sobre palabras clave */
.mark {
  display: inline-block; background: var(--yellow); color: var(--green-900);
  padding: .02em .28em .04em; margin-left: -.06em;
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
}

/* ---------- Botones ---------- */
.btn {
  --bg: var(--green); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem;
  text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
  border: 2px solid var(--bg); border-radius: var(--radius); cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { --bg: var(--green-600); }
.btn--yellow { --bg: var(--yellow); --fg: var(--green-900); }
.btn--yellow:hover { --bg: #ffe32e; }
.btn--ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn--ghost:hover { background: var(--green); color: var(--white); }
.dark .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.5); }
.dark .btn--ghost:hover { background: var(--white); color: var(--green-900); border-color: var(--white); }
.btn--wa { --bg: #128c4a; }
.btn--wa:hover { --bg: #0f7a40; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .45em; font-weight: 600;
  color: var(--green); text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 2px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.dark .link-arrow { color: var(--white); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 243, 239, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.logo { display: block; flex: none; }
.logo img { width: 132px; height: auto; }
.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; }
.nav__link, .nav__toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 12px; font-weight: 500; font-size: .98rem; text-decoration: none;
  color: var(--ink); background: none; border: 0; cursor: pointer; border-radius: var(--radius);
}
.nav__link:hover, .nav__toggle:hover, .nav__link[aria-current="page"] { color: var(--green); }
.nav__link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--yellow); }
.nav__toggle svg { width: 16px; height: 16px; transition: transform .2s; }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__item { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: -16px; width: 560px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  padding: 12px; background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 24px 48px -20px rgba(4, 21, 10, .35);
  list-style: none; margin: 0;
}
.dropdown[hidden] { display: none; }
.dropdown a {
  display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; text-decoration: none;
  font-size: .95rem; font-weight: 500; line-height: 1.25;
}
.dropdown a svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 1px; }
.dropdown a:hover { background: var(--paper); }
.dropdown .dropdown__all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }
.dropdown .dropdown__all a { color: var(--green); font-weight: 600; }
.header__cta { display: none; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; background: var(--green); color: var(--white);
  border: 0; border-radius: var(--radius); cursor: pointer;
}
.menu-btn svg { width: 24px; height: 24px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49;
  background: var(--green-950); color: var(--white);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 24px var(--gutter) 40px;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--line-dark); }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px;
  text-decoration: none; font-family: var(--font-display); font-weight: 800; font-style: italic;
  text-transform: uppercase; font-size: 1.6rem;
}
.mobile-nav .sub a { font-family: var(--font-body); font-style: normal; font-weight: 500; text-transform: none; font-size: 1.02rem; min-height: 44px; color: rgba(255,255,255,.82); padding-left: 14px; border-left: 2px solid var(--yellow); }
.mobile-nav .sub { padding-bottom: 12px; }
.mobile-nav .btn { margin-top: 28px; width: 100%; }
body.menu-open { overflow: hidden; }

@media (min-width: 1080px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; min-height: 44px; }
  .menu-btn { display: none; }
  .mobile-nav { display: none !important; }
  .logo img { width: 150px; }
}

/* ---------- Fondo técnico: grilla + marcas de registro ---------- */
.tech-bg {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 120px 120px;
  background-position: -1px -1px;
}
.reg { position: absolute; width: 22px; height: 22px; pointer-events: none; }
.reg::before, .reg::after { content: ""; position: absolute; background: var(--ink); }
.reg::before { left: 0; top: 0; width: 22px; height: 2px; }
.reg::after { left: 0; top: 0; width: 2px; height: 22px; }
.reg--tr { transform: scaleX(-1); }
.reg--bl { transform: scaleY(-1); }
.reg--br { transform: scale(-1); }
.cross { position: absolute; width: 18px; height: 18px; pointer-events: none; }
.cross::before, .cross::after { content: ""; position: absolute; background: var(--ink); }
.cross::before { left: 8px; top: 0; width: 2px; height: 18px; }
.cross::after { left: 0; top: 8px; width: 18px; height: 2px; }
.cross--y::before, .cross--y::after { background: var(--yellow); }

/* ---------- HERO (home) ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(32px, 6vw, 64px) 0 0; }
.hero__grid { position: relative; display: grid; gap: 28px; }
.hero__copy { position: relative; z-index: 2; }
.hero__eyebrow { font-family: var(--font-display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .92rem; color: var(--ink-2); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: .2em .6em; }
.hero__eyebrow span + span::before { content: "·"; margin-right: .6em; color: var(--green); }
.hero h1 { color: var(--green-900); }
.hero h1 .mark { margin-top: .08em; }
.hero__sub { margin-top: 22px; max-width: 46ch; color: var(--ink-2); font-size: 1.12rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__visual { position: relative; min-height: 340px; }
.hero__tower {
  position: absolute; inset: 0;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  background: var(--green-900);
}
.hero__tower img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero__list {
  display: none !important; list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 1rem;
}
.hero__list a { text-decoration: none; display: inline-flex; gap: .4em; padding: 4px 0; }
.hero__list a::before { content: "/"; color: var(--green); font-weight: 800; font-style: italic; }
.hero__list a:hover { color: var(--green); }

.hero__band { position: relative; display: grid; }
.hero--band { padding: clamp(40px, 6vw, 72px) 0 0; }
.hero__grid { padding-bottom: clamp(32px, 5vw, 56px); }
.hero__band-img {
  position: relative; height: clamp(220px, 38vw, 420px); overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.hero__band-img img { width: 100%; height: 100%; object-fit: cover; }
.hero__band-copy {
  position: relative; z-index: 2; background: var(--paper); padding: 28px 0 8px;
}
.hero__band-copy h2 { color: var(--ink); }
.hero__band-copy h2::before {
  content: ""; display: block; width: 4px; height: 44px; background: var(--yellow);
  transform: skewX(-18deg); margin-bottom: 18px;
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; min-height: 520px; }
  .hero__visual { min-height: 0; }
  .hero__tower { inset: -64px calc(-1 * var(--gutter)) 0 -6%; }
  .hero__list {
    display: grid !important; position: absolute; right: 0; bottom: 24px; z-index: 3; grid-template-columns: 1fr;
    background: rgba(242, 243, 239, .9); padding: 18px 22px; backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .hero__band { grid-template-columns: 1fr 1.25fr; align-items: end; }
  .hero__band-img { grid-column: 2; grid-row: 1; clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%); margin-right: calc(-1 * var(--gutter)); }
  .hero__band-copy { grid-column: 1; grid-row: 1; padding: 0 40px 40px 0; background: transparent; }
}
@media (min-width: 1300px) {
  .hero__band-img { margin-right: calc((100vw - var(--container)) / -2); }
  .hero__tower { right: calc((100vw - var(--container)) / -2); }
}

/* ---------- Strip de servicios con íconos ---------- */
.svc-strip { background: var(--white); border-block: 1px solid var(--line); }
.svc-strip ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
}
.svc-strip li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.svc-strip li:nth-child(2n) { border-right: 0; }
.svc-strip a {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px;
  text-align: center; text-decoration: none; padding: 22px 10px; height: 100%;
  font-weight: 500; font-size: .95rem; line-height: 1.2; transition: background .2s, color .2s;
}
.svc-strip svg { width: 30px; height: 30px; color: var(--green); stroke-width: 1.6; transition: transform .25s var(--ease); }
.svc-strip a:hover { background: var(--green); color: var(--white); }
.svc-strip a:hover svg { color: var(--yellow); transform: translateY(-3px); }
@media (min-width: 640px) {
  .svc-strip ul { grid-template-columns: repeat(3, 1fr); }
  .svc-strip li:nth-child(2n) { border-right: 1px solid var(--line); }
  .svc-strip li:nth-child(3n) { border-right: 0; }
}
@media (min-width: 1080px) {
  .svc-strip ul { grid-template-columns: repeat(10, 1fr); }
  .svc-strip li, .svc-strip li:nth-child(3n) { border-right: 1px solid var(--line); border-bottom: 0; }
  .svc-strip li:last-child { border-right: 0; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--white { background: var(--white); }
.dark { background: var(--green-950); color: var(--white); }
.dark h2, .dark h3 { color: var(--white); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { color: var(--green-900); }
.dark .section-head h2 { color: var(--white); }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; }
}

/* ---------- Panel "Trayectoria" (feature) ---------- */
.feature { position: relative; overflow: hidden; background: var(--green-950); color: var(--white); padding: clamp(64px, 9vw, 112px) 0 clamp(48px, 6vw, 80px); }
.feature::before { /* franja diagonal amarilla decorativa */
  content: ""; position: absolute; right: -40px; top: 0; width: 140px; height: 10px; background: var(--yellow);
  transform: skewX(-30deg); pointer-events: none;
}
.feature__top { display: grid; gap: 36px; align-items: center; }
.feature__copy .eyebrow { color: var(--yellow); }
.feature__copy h2 { margin: 14px 0 20px; max-width: 14ch; }
.feature__copy p { color: rgba(255,255,255,.8); max-width: 52ch; margin-bottom: 28px; font-size: 1.08rem; }
.feature__media { margin: 0; position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.feature__media img { width: 100%; height: 112%; object-fit: cover; }
.feature__media { border-bottom: 4px solid var(--yellow); }
@media (min-width: 960px) {
  .feature__top { grid-template-columns: 1fr 1.05fr; gap: 72px; }
  .feature__media { clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%); }
}
.feature__facts {
  list-style: none; padding: 0; margin: clamp(48px, 7vw, 80px) 0 0;
  display: grid; gap: 0; border-top: 1px solid var(--line-dark);
}
.feature__facts li { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line-dark); }
.feature__facts strong {
  font-family: var(--font-display); font-style: italic; font-weight: 800; color: var(--yellow);
  font-size: clamp(3rem, 6vw, 4.6rem); line-height: .9; min-width: 2.6ch; font-variant-numeric: tabular-nums;
}
.feature__facts span { color: rgba(255,255,255,.85); line-height: 1.4; font-size: 1.02rem; max-width: 28ch; }
@media (min-width: 800px) {
  .feature__facts { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line-dark); }
  .feature__facts li { grid-template-columns: 1fr; align-items: start; gap: 12px; padding: 32px 28px; border-bottom: 0; border-left: 1px solid var(--line-dark); }
  .feature__facts li:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- Marcas (logos) ---------- */
.logo-rail { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-rail__track { display: flex; gap: 12px; width: max-content; list-style: none; padding: 0; margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .logo-rail__track { animation: rail 60s linear infinite; }
  .logo-rail:hover .logo-rail__track { animation-play-state: paused; }
}
@keyframes rail { to { transform: translateX(-50%); } }
.logo-tile {
  display: grid; place-items: center; width: 168px; height: 92px; padding: 16px 20px;
  background: var(--white); border: 1px solid var(--line); text-decoration: none;
  transition: border-color .2s, transform .2s var(--ease);
}
.logo-tile img { max-height: 52px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .78; transition: filter .25s, opacity .25s; }
.logo-tile:hover { border-color: var(--green); }
.logo-tile:hover img { filter: none; opacity: 1; }
.logo-tile__name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; color: var(--green-900); text-align: center; line-height: 1; }

/* ---------- Noticias ---------- */
.news-grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.card-news { position: relative; display: flex; flex-direction: column; }
.card-news__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.card-news__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card-news:hover .card-news__img img { transform: scale(1.04); }
.card-news__meta { display: flex; gap: 10px; align-items: center; margin: 16px 0 8px; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--muted); }
.card-news__meta .tag { color: var(--green); }
.card-news__meta .tag::before { content: "/"; color: var(--yellow); margin-right: 10px; font-style: italic; }
.card-news h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.15rem; line-height: 1.3; text-transform: none; }
.card-news h3 a { text-decoration: none; }
.card-news h3 a::after { content: ""; position: absolute; inset: 0; }
.card-news h3 a:hover { color: var(--green); }
.card-news p { margin: 10px 0 0; color: var(--ink-2); font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-news__arrow { margin-top: 14px; color: var(--green); }
.card-news__arrow svg { width: 26px; height: 26px; transition: transform .2s var(--ease); }
.card-news:hover .card-news__arrow svg { transform: translateX(6px); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--green-950); color: var(--white); overflow: hidden; }
.cta-band__grid { display: grid; }
.cta-band__q { background: var(--yellow); color: var(--green-900); padding: 36px var(--gutter); }
.cta-band__q h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1; }
.cta-band__body { padding: 32px var(--gutter) 40px; display: grid; gap: 22px; align-content: center; }
.cta-band__body p { margin: 0; color: rgba(255,255,255,.85); max-width: 46ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) {
  .cta-band__grid { grid-template-columns: 1fr 1.4fr; }
  .cta-band__q { clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); padding: 56px 15% 56px max(var(--gutter), calc((100vw - var(--container)) / 2)); }
  .cta-band__body { grid-template-columns: 1fr auto; align-items: center; padding: 48px max(var(--gutter), calc((100vw - var(--container)) / 2)) 48px 24px; }
}

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--green-950); color: rgba(255,255,255,.78); border-top: 1px solid var(--line-dark); overflow: hidden; }
.footer__grid { display: grid; gap: 36px; padding: 56px 0 40px; }
.footer__brand img { width: 150px; background: var(--white); padding: 10px 12px; }
.footer__brand p { margin-top: 18px; max-width: 32ch; font-size: .98rem; }
.footer h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .95rem; color: var(--yellow); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 4px; }
.footer address { display: grid; gap: 10px; }
.footer address a, .footer address span { display: inline-flex; gap: 10px; align-items: center; }
.footer address svg { width: 18px; height: 18px; color: var(--yellow); flex: none; }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-dark); transition: background .2s, border-color .2s; }
.social a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--green-900); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding: 22px 0 28px; border-top: 1px solid var(--line-dark); font-size: .9rem; }
.footer__stripes { position: absolute; right: 0; bottom: 0; width: 120px; height: 64px; background: repeating-linear-gradient(-60deg, transparent 0 10px, var(--yellow) 10px 18px); opacity: .9; clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); pointer-events: none; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #128c4a; color: var(--white); box-shadow: 0 10px 28px -8px rgba(0,0,0,.45);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }

/* ---------- Page hero (interiores) ---------- */
.page-hero { position: relative; background: var(--green-950); color: var(--white); overflow: hidden; }
.page-hero__grid { display: grid; }
.page-hero__copy { position: relative; z-index: 2; padding: clamp(40px, 7vw, 88px) 0 clamp(36px, 5vw, 64px); }
.page-hero h1 { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(2.3rem, 5.6vw, 4.4rem); line-height: .92; margin: 14px 0 20px; max-width: 18ch; }
.page-hero .lead { color: rgba(255,255,255,.82); }
.page-hero__img { position: relative; height: 240px; margin-inline: calc(-1 * var(--gutter)); }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,21,10,0) 40%, rgba(4,21,10,.45)); }
.page-hero--plain .page-hero__copy { padding-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) {
  .page-hero__grid { grid-template-columns: 1.1fr 1fr; min-height: 440px; }
  .page-hero__img { height: auto; margin: 0 calc((100vw - min(100vw - 2 * var(--gutter), var(--container))) / -2) 0 0; clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); }
  .page-hero__img::after { display: none; }
  .page-hero__copy { padding-right: 32px; }
}
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.breadcrumbs { font-size: .9rem; color: rgba(255,255,255,.7); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: var(--yellow); margin-right: 6px; font-style: italic; font-weight: 700; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Layout contenido + aside ---------- */
.content-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .content-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; align-items: start; } }
.aside { display: grid; gap: 20px; }
@media (min-width: 1000px) { .aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.aside-card { background: var(--white); border: 1px solid var(--line); padding: 26px; }
.aside-card h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; color: var(--green-900); margin-bottom: 10px; }
.aside-card p { color: var(--ink-2); font-size: .98rem; }
.aside-card .btn { width: 100%; margin-top: 8px; }
.aside-card--dark { background: var(--green-950); color: var(--white); border-color: var(--green-950); }
.aside-card--dark h2 { color: var(--white); }
.aside-card--dark p { color: rgba(255,255,255,.8); }
.aside-list { list-style: none; padding: 0; margin: 0; }
.aside-list li { border-top: 1px solid var(--line); }
.aside-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; text-decoration: none; font-weight: 500; font-size: .98rem; }
.aside-list a:hover, .aside-list a[aria-current="page"] { color: var(--green); }
.aside-list a[aria-current="page"] { font-weight: 600; }
.aside-list svg { width: 16px; height: 16px; flex: none; color: var(--green); }

/* ---------- Prosa ---------- */
.prose { max-width: 74ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--green-900); margin-top: 1.8em; line-height: 1; }
.prose h2::before { content: "/ "; color: var(--yellow); font-style: italic; }
.prose h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.22rem; color: var(--ink); margin-top: 1.6em; line-height: 1.3; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .4em 0; }
.prose ul li::marker { color: var(--green); }
.prose a { color: var(--green); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose figure { margin: 1.6em 0; }
.prose img { width: auto; max-width: 100%; height: auto; }
.prose figure img { background: var(--white); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--yellow); font-size: 1.12rem; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--paper-2); }
.prose > :first-child { margin-top: 0; }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; }

/* ---------- Bloques de servicio ---------- */
.blocks { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 720px) { .blocks--2 { grid-template-columns: 1fr 1fr; } }
.block {
  position: relative; background: var(--white); padding: 26px 26px 26px 30px;
  border: 1px solid var(--line); overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
/* Acento amarillo diagonal arriba a la izquierda */
.block::before {
  content: ""; position: absolute; left: 0; top: 0; width: 64px; height: 4px; background: var(--yellow);
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); transition: width .35s var(--ease);
}
.block:hover { border-color: var(--green); box-shadow: 0 18px 36px -24px rgba(4, 21, 10, .45); }
.block:hover::before { width: 100%; }
.prose .block > * + * { margin-top: .6em; }
.prose .block > h3, .block > h3 { margin: 0 0 10px; }
.block h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.45rem; color: var(--green-900); line-height: 1.05; }
.block p, .block ul { color: var(--ink-2); font-size: 1rem; margin: 0; }
.block ul { padding-left: 1.1em; }
.block li { margin: .35em 0; }
.block li::marker { color: var(--green); }

/* Con número: pestaña verde con corte diagonal */
.block:has(.block__num) { padding-left: 104px; min-height: 120px; }
.block:has(.block__num)::before { left: 104px; }
.block__num {
  position: absolute; left: 0; top: 0; bottom: 0; width: 80px;
  display: flex; align-items: flex-start; justify-content: center; padding-top: 22px;
  background: var(--green-950); color: var(--yellow);
  font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: 2rem; line-height: 1; letter-spacing: -.01em;
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
  transition: background .25s var(--ease);
}
.block:hover .block__num { background: var(--green); }
.block__num:not(:empty) { margin: 0 !important; }
@media (max-width: 520px), (min-width: 720px) {
  .blocks--2 .block:has(.block__num) { padding-left: 26px; padding-top: 74px; }
  .blocks--2 .block:has(.block__num)::before { left: 0; }
  .blocks--2 .block__num { bottom: auto; height: 52px; width: 92px; padding-top: 0; align-items: center; font-size: 1.6rem; clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%); }
  .blocks--2 .block::before { top: auto; bottom: 0; }
}
@media (max-width: 520px) {
  .block:has(.block__num) { padding-left: 26px; padding-top: 74px; }
  .block:has(.block__num)::before { left: 0; }
  .block__num { bottom: auto; height: 52px; width: 92px; padding-top: 0; align-items: center; font-size: 1.6rem; clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%); }
}
.block h3 + h3, .block ul + h3 { margin-top: 18px !important; }

.quote-band { position: relative; background: var(--yellow); color: var(--green-900); padding: clamp(36px, 5vw, 56px) 0; }
.quote-band p { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1; margin: 0; max-width: 28ch; }
.quote-band small { display: block; margin-top: 14px; font-family: var(--font-body); font-size: 1.05rem; font-weight: 500; font-style: normal; text-transform: none; max-width: 60ch; }

.spec { display: grid; gap: 14px; }
.spec figure { margin: 0; }
.spec img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 28px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Hub de servicios ---------- */
.svc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 720px) { .svc-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .svc-list { grid-template-columns: repeat(3, 1fr); } }
.svc-card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--white); padding: 28px 26px 26px; transition: background .25s; }
.svc-card__icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--green); color: var(--yellow); clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); margin-bottom: 18px; }
.svc-card__icon svg { width: 22px; height: 22px; }
.svc-card h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.55rem; line-height: 1; color: var(--green-900); margin-bottom: 10px; }
.svc-card h3 a { text-decoration: none; }
.svc-card h3 a::after { content: ""; position: absolute; inset: 0; }
.svc-card p { color: var(--ink-2); font-size: 1rem; flex: 1; }
.svc-card .more { display: inline-flex; gap: 6px; align-items: center; color: var(--green); font-weight: 600; font-size: .95rem; }
.svc-card .more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.svc-card:hover { background: var(--paper); }
.svc-card:hover .more svg { transform: translateX(4px); }

/* ---------- Directorio de marcas ---------- */
.brand-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line-strong); background: var(--white); text-decoration: none; font-weight: 500; font-size: .95rem; border-radius: 999px; cursor: pointer; }
.chip:hover, .chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--white); }
.brand-group + .brand-group { margin-top: 64px; }
.brand-group > h2 { margin-bottom: 8px; color: var(--green-900); }
.brand-group > p { color: var(--ink-2); margin-bottom: 24px; max-width: 70ch; }
.brand-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .brand-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .brand-grid { grid-template-columns: repeat(4, 1fr); } }
.brand-card { position: relative; background: var(--white); display: flex; flex-direction: column; height: 100%; padding: 18px; transition: background .2s; }
.brand-card__logo { height: 76px; display: grid; place-items: center; margin-bottom: 14px; }
.brand-card__logo img { max-height: 64px; max-width: 80%; width: auto; object-fit: contain; }
.brand-card h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.3rem; color: var(--green-900); line-height: 1; }
.brand-card h3 a { text-decoration: none; }
.brand-card h3 a::after { content: ""; position: absolute; inset: 0; }
.brand-card p { margin: 6px 0 0; font-size: .9rem; color: var(--muted); line-height: 1.35; }
.brand-card:hover { background: var(--paper); }
.brand-card[hidden] { display: none; }

.brand-head { display: grid; gap: 20px; align-items: center; }
.brand-head__logo { background: var(--white); padding: 22px; display: grid; place-items: center; min-height: 130px; }
.brand-head__logo img { max-height: 90px; width: auto; }
@media (min-width: 900px) { .brand-head { grid-template-columns: 1fr 300px; } }

.downloads { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.downloads a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--paper); text-decoration: none; font-weight: 500; font-size: .95rem; line-height: 1.3; border-left: 3px solid var(--yellow); }
.downloads a:hover { background: var(--green-100); }
.downloads svg { width: 18px; height: 18px; color: var(--green); flex: none; }

/* ---------- Clientes ---------- */
.client-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .client-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1040px) { .client-grid { grid-template-columns: repeat(6, 1fr); } }
.client-grid li { background: var(--white); display: grid; place-items: center; aspect-ratio: 3/2; padding: 18px; }
.client-grid img { max-height: 70px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter .25s, opacity .25s; }
.client-grid li:hover img { filter: none; opacity: 1; }

/* ---------- Equipo ---------- */
.team { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .team { grid-template-columns: repeat(3, 1fr); } }
.team figure { margin: 0; }
.team img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(.15); clip-path: polygon(0 0, 100% 0, 100% 92%, 88% 100%, 0 100%); background: var(--paper-2); }
.team figcaption { margin-top: 12px; }
.team strong { display: block; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.35rem; line-height: 1; color: var(--green-900); }
.team span { color: var(--muted); font-size: .95rem; }

.values { display: grid; gap: 2px; background: var(--line-dark); border: 1px solid var(--line-dark); }
@media (min-width: 800px) { .values { grid-template-columns: repeat(4, 1fr); } }
.values article { background: var(--green-950); padding: 28px 24px; }
.values h3 { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.6rem; color: var(--yellow); margin-bottom: 10px; }
.values p { color: rgba(255,255,255,.8); font-size: 1rem; margin: 0; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 10px; background: var(--yellow); clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%); }

.two-col { display: grid; gap: 40px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } }
.img-cut { clip-path: polygon(0 0, 100% 0, 100% 88%, 90% 100%, 0 100%); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Contacto ---------- */
.contact-cards { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 800px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.contact-card { background: var(--white); padding: 32px 28px; display: flex; flex-direction: column; gap: 10px; }
.contact-card svg { width: 30px; height: 30px; color: var(--green); }
.contact-card h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; color: var(--green-900); }
.contact-card p { color: var(--ink-2); margin: 0; flex: 1; }
.contact-card a.value { font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration-color: var(--yellow); text-underline-offset: 4px; word-break: break-word; }

/* ---------- Paginación / listado noticias ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; align-content: center; }

/* ---------- Animación (GSAP) ---------- */
.counter { font-variant-numeric: tabular-nums; }

/* Contexto oscuro en hero interior y tarjetas */
.page-hero .eyebrow { color: var(--yellow); }
.aside-card--dark .btn--ghost, .cta-band .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.5); }
.aside-card--dark .btn--ghost:hover, .cta-band .btn--ghost:hover { background: var(--white); color: var(--green-900); border-color: var(--white); }
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.split-w > span { display: inline-block; will-change: transform; }
.block__num--word { font-size: 1.15rem !important; letter-spacing: .04em; }

/* Formulario de contacto (arma el mensaje y lo abre en WhatsApp o correo; sin backend) */
.cform-wrap { display: grid; gap: 40px; }
@media (min-width: 960px) { .cform-wrap { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } }
.cform-intro p { color: var(--ink-2); max-width: 46ch; margin: 18px 0 0; }
.cform-note { font-size: .95rem; color: var(--muted); border-left: 3px solid var(--yellow); padding-left: 14px; }
.cform { display: grid; gap: 18px; background: var(--paper); padding: clamp(22px, 4vw, 40px); border-top: 4px solid var(--green); }
.cform-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .cform-row { grid-template-columns: 1fr 1fr; } }
.cform label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; color: var(--green-900); }
.cform input, .cform select, .cform textarea {
  font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink); width: 100%;
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 12px 14px;
}
.cform textarea { resize: vertical; min-height: 130px; }
.cform input:focus-visible, .cform select:focus-visible, .cform textarea:focus-visible { outline: 3px solid var(--green); outline-offset: 0; border-color: var(--green); }
.cform [aria-invalid="true"] { border-color: #b3261e; }
.cform-error { margin: 0; color: #b3261e; font-weight: 600; }
.cform-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) { .cform-actions .btn { width: 100%; } }
