/* ============================================================
   mled — publicidad verde Chile
   Hoja de estilos única. Sin build step.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --brand:       #14502E; /* verde profundo — texto, nav, CTA */
  --green:       #4CAF50; /* acento principal */
  --green-light: #6BCB5A; /* acento claro sobre fondos oscuros */
  --green-mid:   #1E7A45; /* degradados */
  --text-muted:  #3a5a48; /* cuerpo secundario sobre fondo claro */
  --footer-muted:#6a8475; /* texto tenue del footer */
  --bg:          #F4F8F2; /* fondo general */
  --dark:        #0B1A12; /* sección oscura "Luz responsable" */
  --wa:          #25D366; /* WhatsApp */
  --white:       #FFFFFF;

  --maxw: 1120px;
  --radius-card: 22px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--brand);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- Animaciones ---------- */
@keyframes mledFloat  { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes mledPulse  { 0%,100%{box-shadow:0 8px 24px rgba(76,175,80,.45)} 50%{box-shadow:0 8px 34px rgba(76,175,80,.75)} }
@keyframes mledShimmer{ 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  *, [data-reveal] { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Utilidades ---------- */
.container { max-width: var(--maxw); margin: 0 auto; }
.mono {
  font-family: 'IBM Plex Mono', monospace;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244,248,242,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20,80,46,.1);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
}
.brand img {
  height: 58px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-weight: 500;
  font-size: 15px;
  color: var(--brand);
}
.nav-cta {
  background: var(--green);
  color: #fff;
  padding: 11px 24px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  transition: background .2s, color .2s;
}
/* gana en especificidad a ".nav-links a" para que el texto sea siempre blanco */
.nav-links a.nav-cta,
.nav-mobile a.nav-cta { color: #fff; }
.nav-cta:hover { background: var(--brand); color: #fff; }

.burger {
  background: none; border: none; cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.burger span {
  width: 24px; height: 2.5px;
  background: var(--brand);
  border-radius: 2px;
  display: block;
}

/* menú móvil desplegable */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 28px 20px;
  border-top: 1px solid rgba(20,80,46,.08);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 0;
  font-weight: 500;
  font-size: 17px;
}
.nav-mobile .nav-cta {
  margin-top: 8px;
  padding: 13px 24px;
  font-size: 16px;
  text-align: center;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: radial-gradient(120% 90% at 75% 0%, var(--green-light) 0%, var(--green) 28%, var(--green-mid) 62%, var(--brand) 100%);
  background-size: 200% 200%;
  animation: mledShimmer 18s ease infinite;
  color: var(--bg);
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero { min-height: 100vh; display: flex; align-items: center; }
  .hero-inner { padding-top: 64px; padding-bottom: 64px; }
}
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 50% at 18% 28%, rgba(255,255,255,.28), transparent 70%),
    radial-gradient(35% 45% at 85% 70%, rgba(190,255,170,.25), transparent 70%),
    radial-gradient(30% 40% at 60% 10%, rgba(255,255,255,.16), transparent 70%);
  pointer-events: none;
}
.hero-wave {
  position: absolute; inset: 0;
  opacity: .06;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><path d="M0 30 Q15 0 30 30 T60 30" fill="none" stroke="white" stroke-width="1"/></svg>');
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 88px 28px 56px;
  text-align: center;
}
.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
  max-width: 24ch;
  margin: 0 auto;
}
.hero-sub {
  margin: 28px auto 0;
  max-width: 54ch;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
  color: rgba(244,248,242,.92);
  font-weight: 400;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 38px;
}
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #fff;
  padding: 16px 30px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 16.5px;
  box-shadow: 0 10px 30px rgba(11,26,18,.3);
  transition: transform .2s, background .2s;
}
.btn-wa:hover { transform: translateY(-2px); background: var(--green-light); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  padding: 16px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 16.5px;
  transition: background .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.26); }

/* strip de pantallas del hero */

/* ============================================================
   MANIFIESTO VERDE
   ============================================================ */
.manifesto {
  background: var(--white);
  padding: 96px 28px;
}
.manifesto-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 20px;
}
.big-number {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(96px, 15vw, 168px);
  line-height: .82;
  letter-spacing: -.05em;
  color: var(--brand);
  display: block;
}
.big-number sup {
  font-size: .42em;
  vertical-align: super;
}
.manifesto h2 {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
  margin-top: 8px;
  color: var(--brand);
}
.manifesto p.lead {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 46ch;
  text-wrap: pretty;
}
.manifesto-aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.seal {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1.5px solid var(--green);
  padding: 14px 22px;
  border-radius: 100px;
}
.seal span {
  font-weight: 700;
  font-size: 15px;
  color: var(--brand);
  letter-spacing: -.01em;
}
.norm-card {
  background: linear-gradient(135deg, var(--brand), var(--green-mid));
  color: var(--bg);
  padding: 34px;
  border-radius: 24px;
}
.norm-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.norm-card p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(244,248,242,.9);
}
/* ============================================================
   RED DE PANTALLAS
   ============================================================ */
.screens {
  background: var(--bg);
  padding: 96px 28px;
}
.screens-head {
  margin: 0 auto 48px;
  text-align: center;
}
.screens-head h2 {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
  color: var(--brand);
  max-width: 18ch;
  margin: 0 auto;
}
.city-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.city-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 100px;
  border: 1.5px solid rgba(20,80,46,.18);
  background: var(--white);
  color: var(--brand);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  transition: all .2s;
}
.city-tab .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}
.city-tab.is-active {
  background: var(--brand);
  color: var(--bg);
  border-color: var(--brand);
}
.city-tab.is-active .num { color: var(--green-light); }

.city-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(20,80,46,.14);
}
.city-title h3 {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -.02em;
  color: var(--brand);
}
.city-title .count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
}
.screen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.screen-card {
  background: var(--white);
  border: 1px solid rgba(20,80,46,.12);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.screen-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(20,80,46,.12);
}
.screen-card.is-soon {
  background: var(--bg);
  border-color: var(--green);
  opacity: .78;
}
.screen-photo {
  position: relative;
  aspect-ratio: 16/10;
  background: repeating-linear-gradient(135deg, rgba(20,80,46,.07) 0 10px, rgba(20,80,46,.03) 10px 20px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.screen-photo .placeholder {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: rgba(20,80,46,.5);
  letter-spacing: .04em;
}
.screen-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .35s var(--ease), filter .35s var(--ease);
}
.screen-card:hover .screen-img {
  transform: scale(1.04);
  filter: brightness(1.04) saturate(1.06);
}
.soon-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--brand);
  color: var(--green-light);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 7px 13px;
  border-radius: 100px;
  font-family: 'IBM Plex Mono', monospace;
}
.screen-body { padding: 24px; }
.screen-body .avenida {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
}
.screen-body h4 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -.02em;
  color: var(--brand);
  margin-top: 8px;
}
.screen-body .desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-top: 10px;
  text-wrap: pretty;
}
.screen-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 18px auto 0;
  background: var(--green);
  color: #fff;
  padding: 11px 20px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14.5px;
  transition: background .2s;
}
.screen-link:hover { background: var(--green-light); }

/* ============================================================
   MARCAS (marquee vertical · 3 columnas)
   ============================================================ */
.brands { background: var(--bg); padding: 96px 0; }
.brands-head { text-align: center; margin: 0 auto 48px; padding: 0 28px; }
.brands-head h2 {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.04;
  letter-spacing: -.035em;
  color: var(--brand);
  margin: 0 auto;
  text-wrap: balance;
}
.brands-marquee {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  width: 100%;
  padding: 0 18px;
  height: 540px;
  overflow: hidden;
  box-sizing: border-box;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 13%, #000 87%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 13%, #000 87%, transparent);
}
.brand-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  will-change: transform;
}
.brand-col.up   { animation: brandUp   var(--dur, 40s) linear infinite; }
.brand-col.down { animation: brandDown var(--dur, 40s) linear infinite; }
.brands-marquee:hover .brand-col { animation-play-state: paused; }
@keyframes brandUp   { from { transform: translateY(0); }    to { transform: translateY(-50%); } }
@keyframes brandDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.brand-card {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/9;
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(20,80,46,.10);
  border-radius: 18px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.brand-card img {
  max-width: 100%;
  max-height: 84px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .6;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.brand-card:hover {
  transform: translateY(-4px);
  border-color: rgba(76,175,80,.5);
  box-shadow: 0 14px 30px rgba(20,80,46,.10);
}
.brand-card:hover img { filter: grayscale(0); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .brand-col { animation: none !important; }
  .brands-marquee { height: auto; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 1100px) { .brands-marquee { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 820px)  { .brands-marquee { grid-template-columns: repeat(3, 1fr); height: 500px; } }
@media (max-width: 540px)  { .brands-marquee { grid-template-columns: repeat(2, 1fr); height: 460px; } }

/* ============================================================
   LUZ RESPONSABLE (sección oscura)
   ============================================================ */
.responsible {
  position: relative;
  background: var(--dark);
  color: var(--bg);
  padding: 104px 28px;
  overflow: hidden;
}
.responsible-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 60% at 80% 10%, rgba(76,175,80,.18), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(107,203,90,.12), transparent 70%);
  pointer-events: none;
}
.responsible-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
}
.responsible-head {
  margin: 0 auto 64px;
  text-align: center;
}
.responsible-head .eyebrow { color: var(--green-light); }
.responsible-head h2 {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -.035em;
  text-wrap: balance;
  max-width: 20ch;
  margin: 0 auto;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  overflow: hidden;
}
.stat {
  background: var(--dark);
  padding: 40px 30px;
}
.stat .v {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(48px, 7vw, 76px);
  line-height: .9;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--green-light), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .l {
  font-size: 16px;
  color: rgba(244,248,242,.78);
  margin-top: 14px;
  line-height: 1.45;
  text-wrap: pretty;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact {
  background: var(--white);
  padding: 96px 28px;
}
.contact-card {
  max-width: 920px;
  margin: 0 auto;
  background: radial-gradient(120% 130% at 80% 0%, var(--green), var(--brand));
  border-radius: 32px;
  padding: clamp(40px, 6vw, 72px);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.contact-wave {
  position: absolute; inset: 0;
  opacity: .1;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><path d="M0 30 Q15 0 30 30 T60 30" fill="none" stroke="white" stroke-width="1"/></svg>');
  pointer-events: none;
}
.contact-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}
.contact-card h2 {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
  max-width: 16ch;
}
.contact-card p {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(244,248,242,.92);
  max-width: 42ch;
  text-wrap: pretty;
}
.btn-wa-white {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  background: #fff;
  color: var(--brand);
  padding: 18px 34px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 14px 36px rgba(11,26,18,.35);
  transition: transform .2s;
}
.btn-wa-white:hover { transform: translateY(-2px); }
.contact-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-left: clamp(20px, 3vw, 40px);
  border-left: 1px solid rgba(255,255,255,.28);
}
.contact-item .k {
  font-size: 12px;
  color: rgba(244,248,242,.7);
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.contact-item .val {
  font-size: 18px;
  font-weight: 600;
  margin-top: 6px;
}
.contact-item .val a {
  color: inherit;
  text-decoration: none;
  transition: opacity .2s;
}
.contact-item .val a:hover { opacity: .75; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid rgba(20,80,46,.12);
  padding: 56px 28px 40px;
}
.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}
.footer-logo {
  height: 92px;
  width: auto;
  display: block;
}
.footer p.about {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 38ch;
}
.footer-col p.head {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-col .links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col .links a { font-size: 15px; color: var(--brand); }
.footer-col .links span { font-size: 15px; color: var(--text-muted); }
.footer-bottom {
  max-width: 1120px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(20,80,46,.1);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom span { font-size: 13.5px; color: var(--footer-muted); }
.footer-bottom strong { color: var(--brand); font-weight: 700; }
.footer-bottom a { text-decoration: none; transition: opacity .2s; }
.footer-bottom a:hover { opacity: .7; }
.footer-bottom a:hover strong { color: var(--green); }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 60;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--wa);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: mledPulse 2.6s ease-in-out infinite;
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .burger { display: flex; }
}
@media (max-width: 760px) {
  .manifesto-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .contact-side {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,.28);
    padding-left: 0;
    padding-top: 28px;
    flex-flow: row wrap;
    gap: 24px 36px;
  }
}
