/* ============================================================
   TecnoCiclo Ambiental — hoja de estilo hecha a mano (v2)
   Tema claro · paleta y tipografía oficiales de marca
   ============================================================ */

:root {
  /* Marca (guía oficial) */
  --verde:        #2A861A;
  --verde-oscuro: #0B5C18;
  --verde-claro:  #77C62B;
  --verde-lima:   #9ADE38;
  --azul:         #062A59;
  --azul-oscuro:  #021F43;
  --amarillo:     #F5C842;
  --blanco:       #FFFFFF;
  --gris-claro:   #F3F6F4;
  --gris-texto:   #5F6B7A;
  --gris-borde:   #DCEFE0;

  --font-display: "Montserrat", sans-serif;
  --font-body:    "Poppins", sans-serif;

  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow: 0 18px 44px -22px rgba(6,42,89,.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--blanco);
  color: var(--gris-texto);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3 { font-family: var(--font-display); color: var(--azul); font-weight: 800; line-height: 1.08; letter-spacing: -.01em; }

.hl { color: var(--verde); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  padding: .8rem 1.3rem; border-radius: 12px; border: 2px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s, color .25s;
  white-space: nowrap;
}
.btn--lg { padding: .95rem 1.6rem; font-size: 1rem; }
.btn--wa { background: #25D366; color: #06210f; }
.btn--wa:hover { background: #22c15d; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(37,211,102,.6); }
.btn--solid { background: linear-gradient(135deg, var(--verde) 0%, var(--verde-claro) 100%); color: #fff; }
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(42,134,26,.6); }
.btn--outline { border-color: var(--gris-borde); color: var(--azul); background: #fff; }
.btn--outline:hover { border-color: var(--verde); color: var(--verde); transform: translateY(-2px); }
.ico-wa { width: 1.25em; height: 1.25em; fill: currentColor; }
.ico-line { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   NAV (claro)
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .75rem clamp(1rem, 4vw, 2.4rem);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gris-borde);
  transition: box-shadow .3s;
}
.nav.is-scrolled { box-shadow: 0 8px 24px -18px rgba(6,42,89,.5); }

.brand { display: flex; align-items: center; gap: .55rem; margin-right: auto; }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__mark img { width: 100%; height: 100%; }
.brand__wordmark { height: 32px; width: auto; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 1.42rem; font-weight: 800; letter-spacing: -.02em; }
.brand__name b { color: var(--verde); font-weight: 800; }
.brand__name i { color: var(--azul); font-style: normal; }
.brand__sub { font-family: var(--font-display); font-size: .62rem; font-weight: 700; letter-spacing: .4em; color: var(--azul); text-transform: uppercase; margin-top: 4px; }

.nav__links { display: flex; gap: 1.9rem; }
.nav__links a { position: relative; font-family: var(--font-display); font-size: .95rem; color: var(--azul); font-weight: 600; padding: .2rem 0; transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0; background: var(--verde); transition: width .3s var(--ease); }
.nav__links a:hover { color: var(--verde); }
.nav__links a:hover::after { width: 100%; }

.nav__toggle { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--azul); border-radius: 2px; transition: .3s; }

/* ============================================================
   HERO (claro)
   ============================================================ */
.hero { max-width: var(--maxw); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.4rem) 0; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero__loc { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-weight: 600; font-size: .82rem; color: var(--verde); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.2rem; }
.hero__loc svg { width: 18px; height: 18px; fill: none; stroke: var(--verde); stroke-width: 1.8; }
.hero__title { font-size: clamp(2.6rem, 6.4vw, 4.7rem); font-weight: 800; margin-bottom: 1.3rem; letter-spacing: -.03em; }
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.16rem); max-width: 42ch; margin-bottom: 1.9rem; }
.hero__lead b { color: var(--azul); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.8rem; }
.hero__chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.hero__chips li { position: relative; font-size: .9rem; color: var(--gris-texto); padding-left: 1.1rem; font-weight: 500; }
.hero__chips li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; background: var(--verde-claro); border-radius: 50%; }
.hero__chips li b { color: var(--verde); font-family: var(--font-display); font-weight: 800; }

/* Panel del logo oficial sobre base clara (halo) con haz de luz */
.hero__panel { align-self: center; }
.hero__logo {
  position: relative; overflow: hidden;
  border-radius: 26px; padding: clamp(1.5rem, 4vw, 2.8rem);
  display: grid; place-items: center;
  background: #ffffff;
  border: 1px solid var(--gris-borde);
  box-shadow: var(--shadow), 0 0 0 8px rgba(243,246,244,.7);
}
.hero__logo::before {
  content: ""; position: absolute; inset: -20% 10% auto 10%; height: 60%;
  background: radial-gradient(closest-side, rgba(154,222,56,.22), transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.hero__logo img { position: relative; width: 100%; max-width: 380px; height: auto; animation: logoFloat 6s ease-in-out infinite; }
@keyframes logoFloat { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-8px); } }
/* Haz de luz que barre el logo */
.beam {
  position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(154,222,56,.5), rgba(255,255,255,.65), transparent);
  transform: skewX(-16deg); filter: blur(3px); mix-blend-mode: screen;
  animation: beam 4.8s var(--ease) infinite;
}
@keyframes beam { 0%{ left: -60%; opacity: 0; } 12%{ opacity: 1; } 55%{ left: 120%; opacity: 1; } 70%,100%{ left: 120%; opacity: 0; } }

/* Marquee */
.marquee { margin-top: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--gris-borde); border-bottom: 1px solid var(--gris-borde); padding: 1rem 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 1.4rem; white-space: nowrap; width: max-content; animation: marquee 36s linear infinite; font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--azul); }
.marquee__track .sep { color: var(--verde-claro); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECCIONES
   ============================================================ */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 4vw, 2.4rem); }
.section__head { max-width: 680px; margin-bottom: 3rem; }
.section__title { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1rem; }
.section__intro { color: var(--gris-texto); font-size: 1.08rem; }
.section__intro b { color: var(--azul); font-weight: 600; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   BANDA VISUAL (foto real, oscura)
   ============================================================ */
.showband { position: relative; width: 100%; min-height: clamp(360px, 46vw, 560px); display: grid; align-items: center; overflow: hidden; background: var(--azul-oscuro); }
.showband__media { position: absolute; inset: 0; }
.showband__media img { width: 100%; height: 100%; object-fit: cover; }
.showband::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,31,67,.96) 0%, rgba(2,31,67,.82) 38%, rgba(2,31,67,.35) 70%, rgba(6,42,89,.15) 100%); }
.showband__overlay { position: relative; z-index: 2; max-width: var(--maxw); width: 100%; margin: 0 auto; padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 2.4rem); }
.showband__kicker { font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--verde-lima); margin-bottom: .9rem; }
.showband__title { color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); max-width: 20ch; }
.showband__title .hl { color: var(--verde-lima); }
.showband__text { color: #cfe0f5; font-size: 1.05rem; max-width: 42ch; margin-top: 1.1rem; }

/* ============================================================
   LEDGER (Sí / No compramos)
   ============================================================ */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 1.6rem); }
.ledger__col { border-radius: 18px; padding: clamp(1.4rem, 2.5vw, 2rem); border: 1px solid var(--gris-borde); background: #fff; box-shadow: var(--shadow); }
.ledger__col--yes { border-color: rgba(42,134,26,.3); }
.ledger__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; flex-wrap: wrap; }
.ledger__label { display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; padding: .35rem 1rem; border-radius: 10px; }
.ledger__label--yes { background: linear-gradient(135deg, var(--verde) 0%, var(--verde-claro) 100%); color: #fff; }
.ledger__label--no { background: var(--gris-claro); color: var(--azul); border: 1px solid var(--gris-borde); }
.ledger__badge { display: flex; flex-direction: column; align-items: center; line-height: 1; padding: .35rem .7rem; border-radius: 10px; background: rgba(154,222,56,.14); border: 1px solid rgba(42,134,26,.3); }
.ledger__badge b { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--verde); }
.ledger__badge span { font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; color: var(--verde-oscuro); margin-top: 2px; }
.ledger__col ul { list-style: none; }
.ledger__col li { display: flex; align-items: center; gap: .8rem; padding: .68rem 0; font-size: .98rem; color: var(--azul); font-weight: 500; border-bottom: 1px solid var(--gris-claro); transition: padding-left .25s var(--ease); }
.ledger__col li:last-child { border-bottom: 0; }
.ledger__col li:hover { padding-left: .4rem; }
.ico-check, .ico-x { width: 22px; height: 22px; flex: none; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ico-check { stroke: var(--verde); }
.ico-x { stroke: #E5484D; }

/* ============================================================
   PROCESO
   ============================================================ */
.steps { list-style: none; display: grid; gap: 1.2rem; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding: 2rem 1.6rem; border-radius: 18px; background: #fff; border: 1px solid var(--gris-borde); box-shadow: var(--shadow); transition: transform .3s var(--ease), border-color .3s; }
.step:hover { transform: translateY(-6px); border-color: rgba(42,134,26,.4); }
.step__num { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--verde-claro); }
.step__ico { display: block; width: 52px; height: 52px; margin: 1rem 0 1.1rem; }
.step__ico svg { width: 100%; height: 100%; fill: none; stroke: var(--verde); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.step p { font-size: .95rem; color: var(--gris-texto); }
.step p b { color: var(--azul); font-weight: 600; }

/* ============================================================
   NOSOTROS
   ============================================================ */
.nosotros__grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.nosotros__media { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; background: var(--gris-claro); }
.nosotros__media img { width: 100%; height: 100%; object-fit: cover; }
.nosotros__lead > p { margin: 1.1rem 0 1.8rem; font-size: 1.05rem; }
.nosotros__lead > p b { color: var(--azul); font-weight: 600; }
.values { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.value { padding: 1.3rem; border-radius: 14px; border: 1px solid var(--gris-borde); background: var(--gris-claro); transition: transform .3s var(--ease), border-color .3s; }
.value:hover { transform: translateY(-4px); border-color: rgba(42,134,26,.4); }
.value__ico { display: block; width: 40px; height: 40px; margin-bottom: .8rem; }
.value__ico svg { width: 100%; height: 100%; fill: none; stroke: var(--verde); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.value h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.value p { font-size: .88rem; color: var(--gris-texto); }

/* ============================================================
   GALERÍA
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 1rem; }
.gallery figure { overflow: hidden; border-radius: 16px; border: 1px solid var(--gris-borde); background: var(--gris-claro); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery .g-1 { grid-column: span 2; grid-row: span 2; }
.gallery .g-2 { grid-column: span 2; }
.gallery .g-3 { grid-column: span 1; grid-row: span 1; }
.gallery .g-4 { grid-column: span 1; }
.gallery .g-5 { grid-column: span 2; }

/* ============================================================
   B2B (oscura premium)
   ============================================================ */
.b2b__card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding: clamp(2rem, 5vw, 3.4rem); border-radius: 24px; background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul) 100%); box-shadow: var(--shadow); }
.b2b__card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(154,222,56,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(154,222,56,.1) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: radial-gradient(400px 300px at 90% 10%, #000, transparent 70%); mask-image: radial-gradient(400px 300px at 90% 10%, #000, transparent 70%); }
.b2b__text { position: relative; }
.b2b__kicker { font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--verde-lima); margin-bottom: .8rem; }
.b2b__text h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
.b2b__text h2 .hl { color: var(--verde-lima); }
.b2b__text p { color: #cfe0f5; margin-bottom: 1.8rem; max-width: 46ch; }
.b2b__list { position: relative; list-style: none; display: grid; gap: .8rem; }
.b2b__list li { display: flex; align-items: flex-start; gap: .7rem; font-size: .95rem; color: #eaf2ff; padding-left: 1.8rem; position: relative; }
.b2b__list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 5px; background: rgba(154,222,56,.18); border: 1px solid var(--verde-lima); }
.b2b__list li::after { content: ""; position: absolute; left: 6px; top: .5em; width: 5px; height: 9px; border: solid var(--verde-lima); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contacto__lead p { margin: 1rem 0 1.8rem; font-size: 1.05rem; }
.contacto__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.contacto__cards { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ccard { display: flex; flex-direction: column; gap: .35rem; padding: 1.3rem; border-radius: 14px; border: 1px solid var(--gris-borde); background: #fff; box-shadow: var(--shadow); transition: transform .3s var(--ease), border-color .3s; }
.ccard:hover { transform: translateY(-4px); border-color: rgba(42,134,26,.4); }
.ccard--wide { grid-column: 1 / -1; }
.ccard__k { font-family: var(--font-display); font-weight: 600; font-size: .72rem; color: var(--gris-texto); text-transform: uppercase; letter-spacing: .1em; }
.ccard__v { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--azul); transition: color .2s; }
.ccard--wide .ccard__v { font-size: .98rem; font-weight: 500; line-height: 1.5; color: var(--gris-texto); font-family: var(--font-body); }
.ccard:hover .ccard__v { color: var(--verde); }

/* ============================================================
   FOOTER (oscura premium)
   ============================================================ */
.footer {
  background: var(--azul-oscuro); margin-top: 2rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem;
  padding: 2.8rem clamp(1rem, 4vw, 2.4rem);
}
.footer__brand { display: flex; flex-direction: column; gap: .9rem; }
.footer__logo { display: flex; align-items: center; gap: .5rem; }
.footer__brand .brand__mark { width: 42px; height: 42px; }
.brand__name--dark b { color: var(--verde-claro); }
.brand__name--dark i { color: #fff; }
.footer .brand__sub { color: #9fb3c8; }
.footer__brand p { color: #9fb3c8; font-size: .9rem; max-width: 34ch; }
.footer__meta { text-align: right; color: #7e93ad; font-size: .85rem; display: grid; gap: .3rem; align-content: start; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: clamp(1rem, 3vw, 1.8rem); bottom: clamp(1rem, 3vw, 1.8rem); z-index: 60; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #06210f; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.08) translateY(-2px); }
.wa-float .ico-wa { width: 30px; height: 30px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0%{transform: scale(1); opacity:.7;} 100%{transform: scale(1.7); opacity:0;} }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__panel { order: -1; }
  .hero__circuit { min-height: 260px; }
  .nosotros__grid, .contacto__grid, .b2b__card { grid-template-columns: 1fr; }
  .steps--3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery .g-1 { grid-column: span 2; }
  .footer__meta { text-align: left; }
}
@media (max-width: 680px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__links { display: flex; flex-direction: column; gap: 1.2rem; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 1.5rem clamp(1rem,4vw,2.4rem); border-bottom: 1px solid var(--gris-borde); box-shadow: var(--shadow); }
  .ledger, .values, .contacto__cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure { grid-column: span 1 !important; }
  .hero__title { font-size: clamp(2.3rem, 11vw, 3.2rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .trace { stroke-dashoffset: 0; }
  .node, .node-c, .leaf { opacity: 1; }
}
