/* =========================================================
   Asociación de Recicladores MC E.S.P. — hoja de estilos
   Mobile-first. Sin dependencias.
   ========================================================= */

:root {
  --navy: #14306e;
  --navy-700: #0f2454;
  --navy-100: #e6ebf5;
  --green: #2f7d32;
  --green-700: #256427;
  --green-100: #e6f2e6;
  --lime: #8bc34a;
  --ink: #1b2430;
  --ink-2: #4a5568;
  --ink-3: #5a6678;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow: 0 8px 24px rgba(20, 48, 110, .08);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); overflow-x: hidden; }
img, svg, iframe { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; color: var(--navy); }
h1 { font-size: clamp(1.85rem, 5.5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.container { width: min(1140px, 100% - var(--gutter) * 2); margin-inline: auto; }
.muted { color: var(--ink-3); font-weight: 500; }
.note { font-size: .875rem; color: var(--ink-3); margin: 1rem 0 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: .5rem 1rem; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ico--sm { width: 16px; height: 16px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.4rem; border-radius: 10px; font: inherit; font-weight: 700; font-size: .95rem; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-700); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--block { width: 100%; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy-700); color: #c9d4ea; font-size: .8125rem; }
.topbar__inner { display: flex; align-items: center; gap: 1.25rem; min-height: 36px; }
.topbar a, .topbar__addr { display: inline-flex; align-items: center; gap: .4rem; color: #fff; white-space: nowrap; }
.topbar .ico { width: 15px; height: 15px; }
.topbar__addr { margin-left: auto; color: #c9d4ea; display: none; }

/* ---------- Encabezado ---------- */
.header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--navy); min-width: 0; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 44px; height: 44px; flex-shrink: 0; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name { font-weight: 800; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__sub { white-space: nowrap; font-size: .72rem; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }

.nav__toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); cursor: pointer; position: relative; z-index: 80; }
.nav__toggle .ico { width: 22px; height: 22px; }
.nav__toggle .ico--close { display: none; }
.nav__toggle[aria-expanded="true"] .ico--open { display: none; }
.nav__toggle[aria-expanded="true"] .ico--close { display: block; }

/* Menú móvil: panel lateral */
.nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 88vw); background: #fff; z-index: 70; transform: translateX(105%); visibility: hidden; transition: transform .28s ease, visibility 0s linear .28s; overflow-y: auto; padding: calc(var(--header-h) + 8px) 0 2rem; box-shadow: -12px 0 32px rgba(16, 24, 40, .12); }
.nav.is-open { transform: none; visibility: visible; transition: transform .28s ease; }
.nav__backdrop { position: fixed; inset: 0; background: rgba(15, 36, 84, .45); z-index: 58; }
.nav__backdrop[hidden] { display: none; }
.nav__list { list-style: none; margin: 0; padding: 0 .75rem; }
.nav__list a, .nav__dd-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: .85rem .9rem; border-radius: 10px; color: var(--ink); font: inherit; font-weight: 600; font-size: 1rem; background: none; border: 0; cursor: pointer; text-align: left; }
.nav__list a:hover, .nav__dd-btn:hover { background: var(--bg-alt); text-decoration: none; }
.nav__list a.is-active { color: var(--green); }
.nav__list .nav__cta { background: var(--green); color: #fff !important; justify-content: center; margin-top: .5rem; }
.nav__list .nav__cta:hover { background: #256427 !important; }
.nav__dd { list-style: none; margin: 0; padding: 0 0 .25rem .75rem; display: none; }
.nav__item--dd.is-open .nav__dd { display: block; }
.nav__item--dd.is-open .nav__dd-btn .ico { transform: rotate(180deg); }
.nav__dd a { font-weight: 500; font-size: .95rem; color: var(--ink-2); }
body.nav-open { overflow: hidden; }

/* ---------- Secciones ---------- */
.section { padding: 3.5rem 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: radial-gradient(circle at 85% 15%, rgba(139,195,74,.22), transparent 40%), linear-gradient(160deg, var(--navy-700), var(--navy) 60%, #1d4aa8); color: #d9e1f2; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 720px; margin: 0 auto 2rem; text-align: center; }
.section__head--left { margin-inline: 0; text-align: left; }
.section__kicker { display: inline-block; margin: 0 0 .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.section--dark .section__kicker { color: var(--lime); }
.section__lead { color: var(--ink-2); margin: 0; }
.section--dark .section__lead { color: #c9d4ea; }

.grid { display: grid; gap: 1.25rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.card--soft { background: var(--navy-100); border-color: transparent; }
.card__title { font-size: 1.05rem; margin-bottom: 1rem; }
.prose p { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.list-num { padding-left: 1.2rem; color: var(--ink-2); }
.list-num li { margin-bottom: .5rem; }

/* ---------- Inicio ---------- */
.hero { position: relative; padding: 3.5rem 0 2.5rem; background: linear-gradient(180deg, #f6f8fb 0%, #fff 100%); overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -20vw; top: -30vw; width: 70vw; height: 70vw; border-radius: 50%; background: radial-gradient(circle at center, rgba(139, 195, 74, .18), transparent 62%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(20, 48, 110, .07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 85%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 85%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero__inner { position: relative; max-width: 780px; }
.hero__eyebrow { margin: 0 0 1rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.hero__lead { font-size: 1.05rem; color: var(--ink-2); max-width: 640px; }
.hero__actions { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.75rem; }
.trust { list-style: none; margin: 2.5rem 0 0; padding: 1.1rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); display: grid; gap: .8rem; }
.trust li { display: flex; align-items: center; gap: .65rem; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.trust .ico { color: var(--green); }

/* ---------- Fondos fotográficos ---------- */
.bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.bg img { width: 100%; height: 120%; object-fit: cover; object-position: center; will-change: transform; transform: translateY(-8%); }
.hero--photo { background: var(--navy-700); color: #fff; padding-top: 4.5rem; }
.hero--photo::before { display: none; }
.hero--photo .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,24,58,.94) 0%, rgba(14,36,90,.86) 45%, rgba(14,36,90,.55) 100%), linear-gradient(180deg, rgba(10,24,58,.2), rgba(10,24,58,.75)); }
.hero--photo h1 { color: #fff; }
.hero--photo .hero__eyebrow { color: var(--lime); }
.hero--photo .hero__lead { color: rgba(255,255,255,.82); }
.hero--photo .btn--outline { color: #fff; border-color: rgba(255,255,255,.7); }
.hero--photo .btn--outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.hero--photo .hero__logo img { filter: drop-shadow(0 20px 40px rgba(0,0,0,.45)); }
.hero--photo .hero__ring { border-color: rgba(139,195,74,.7); }
.hero--photo .hero__ring::after { border-color: rgba(255,255,255,.25); }
.hero--photo .trust { background: rgba(255,255,255,.96); }
.section--photo { position: relative; }
.section--photo .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,36,84,.9), rgba(20,48,110,.88)); }
.section--photo .container { position: relative; z-index: 1; }
.band { position: relative; padding: 4.5rem 0; color: #fff; background: var(--green-700); overflow: hidden; }
.band .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(37,100,39,.95), rgba(20,48,110,.82)); }
.band__inner { position: relative; z-index: 1; display: grid; gap: 1.75rem; align-items: center; }
.band h2 { color: #fff; font-size: clamp(1.4rem, 3.2vw, 2rem); }
.band p:last-child { margin: 0; color: rgba(255,255,255,.85); max-width: 600px; }
.band .section__kicker { color: var(--lime); }
.band__actions { display: flex; flex-direction: column; gap: .75rem; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--navy-100); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.header.is-scrolled { box-shadow: 0 6px 24px rgba(16,24,40,.08); }

/* ---------- Movimiento ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90; background: transparent; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--lime)); box-shadow: 0 0 12px rgba(139,195,74,.6); }
.hero--photo .bg img { transform: translateY(-4%); }
.hero--photo::after { display: block; content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(600px 400px at 85% 20%, rgba(139,195,74,.22), transparent 70%), radial-gradient(500px 500px at 10% 90%, rgba(47,125,50,.25), transparent 70%); }
.hero h1 .w { display: inline-block; will-change: transform, opacity; }
.marquee { overflow: hidden; background: var(--navy-700); color: #fff; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.marquee__track { display: flex; align-items: center; gap: 1.5rem; width: max-content; padding: .8rem 0; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
.btn--shine { position: relative; overflow: hidden; }
.btn--shine::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: shine 3.5s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -120%; } 100% { left: 160%; } }
.tilt { transform-style: preserve-3d; transition: transform .25s ease, box-shadow .25s ease; will-change: transform; }
.tilt > * { transform: translateZ(0); }
.feature__icon, .service__icon, .mv__icon { transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .25s, color .25s; }
.feature:hover .feature__icon, .service:hover .service__icon { transform: translateY(-4px) rotate(-6deg) scale(1.08); background: var(--navy); color: #fff; }
.section__kicker { position: relative; padding-left: 0; }
.section__kicker::before { content: ""; display: inline-block; width: 0; height: 2px; background: var(--lime); vertical-align: middle; margin-right: 0; transition: width .6s cubic-bezier(.2,.7,.2,1), margin .6s; }
.section__head.is-visible .section__kicker::before, .section__head--left.is-visible .section__kicker::before { width: 28px; margin-right: .6rem; }
.steps { position: relative; }
.steps__line { display: none; }
.steps__n { transition: transform .3s; }
.steps li:hover .steps__n { transform: scale(1.15) rotate(8deg); }
.timeline { --draw: 1; }
.timeline::before { transform-origin: top; transform: scaleY(var(--draw)); }
.nav__list a:not(.nav__cta) { position: relative; }
.nav__list a:not(.nav__cta)::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .3rem; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.nav__list a:not(.nav__cta):hover::after, .nav__list a.is-active:not(.nav__cta)::after { transform: scaleX(1); }
.wa { animation: wa-pulse 2.6s ease-out infinite; }
@keyframes wa-pulse { 0% { box-shadow: 0 8px 20px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.55); } 70% { box-shadow: 0 8px 20px rgba(37,211,102,.4), 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 8px 20px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,0); } }
.datacard__head img { animation: logo-spin-in 1.2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes logo-spin-in { from { transform: rotate(-20deg) scale(.6); opacity: 0; } }
@media (min-width: 1024px) {
  .steps__line { display: block; position: absolute; left: 12%; right: 12%; top: calc(1.5rem + 18px); height: 2px; background: rgba(255,255,255,.18); z-index: 0; overflow: hidden; }
  .steps__line::after { content: ""; display: block; height: 100%; width: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(.2,.7,.2,1) .3s; }
  .steps.is-visible .steps__line::after { transform: scaleX(1); }
  .steps li { z-index: 1; }
}

/* ---------- Escena que se arma al hacer scroll (Cómo funciona) ---------- */
.process__grid { display: grid; gap: 2rem; align-items: center; }
.assemble { display: grid; justify-items: center; gap: .75rem; }
.recycle-draw { width: min(260px, 70vw); height: auto; overflow: visible; }
.recycle-draw .arc { fill: none; stroke: var(--lime); stroke-width: 11; stroke-linecap: round; filter: drop-shadow(0 0 10px rgba(139,195,74,.45)); }
.recycle-draw .head { fill: var(--lime); opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.4); }
.recycle-draw .core { fill: rgba(255,255,255,.06); stroke: rgba(255,255,255,.25); stroke-width: 1.5; }
.recycle-draw .core-text { fill: #fff; font-family: var(--font); font-weight: 800; font-size: 22px; letter-spacing: -.5px; opacity: 0; }
.assemble__caption { margin: 0; font-size: .8rem; color: rgba(255,255,255,.6); text-align: center; }
.process__grid .steps { grid-template-columns: 1fr; gap: .9rem; }
.process__grid .steps li { padding: 1.25rem 1.25rem 1.25rem 4.25rem; opacity: .4; transform: translateX(16px); transition: opacity .5s, transform .5s, background .5s, border-color .5s; }
.process__grid .steps li .steps__n { left: 1.1rem; top: 1.2rem; }
.process__grid .steps li.is-on { opacity: 1; transform: none; background: rgba(255,255,255,.1); border-color: rgba(139,195,74,.6); }
.process__grid .steps li.is-on .steps__n { box-shadow: 0 0 0 6px rgba(139,195,74,.25); }
.process__grid .steps__line { display: none !important; }
.sw { display: inline-block; }
@media (min-width: 1024px) {
  .process__grid { grid-template-columns: 1fr 1.3fr; gap: 3.5rem; }
  .recycle-draw { width: 320px; }
}

/* ---------- Compromisos ---------- */
.feature { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.feature__icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--green-100); color: var(--green); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.feature p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- Nosotros ---------- */
/* Fondo propio (degradado, trama de puntos y halo) para distinguir la sección */
.about { position: relative; overflow: hidden; overflow: clip; isolation: isolate; background: linear-gradient(160deg, #e9f5df 0%, #f3f8f1 38%, #eef3fa 72%, #e3ebf7 100%); }
.about::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(20,48,110,.10) 1.2px, transparent 1.3px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); mask-image: linear-gradient(180deg, #000, transparent 75%); pointer-events: none; }
.about::after { content: ""; position: absolute; z-index: -1; right: 0; top: -18%; width: 40%; transform: translateX(25%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(139,195,74,.28), transparent 62%); pointer-events: none; }
.about .container { position: relative; }
.tabbar { position: relative; display: flex; gap: .25rem; overflow-x: auto; margin: 0 auto 2rem; padding: .3rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; width: max-content; max-width: 100%; scrollbar-width: none; }
.tabbar::-webkit-scrollbar { display: none; }
.tabbar__indicator { position: absolute; top: .3rem; bottom: .3rem; left: 0; width: 0; border-radius: 999px; background: var(--navy); transition: left .35s cubic-bezier(.4,0,.2,1), width .35s cubic-bezier(.4,0,.2,1); }
.tab { position: relative; z-index: 1; flex-shrink: 0; padding: .6rem 1.15rem; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; transition: color .25s; }
.tab.is-active { color: #fff; }
@media (max-width: 639px) {
  .tabbar { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 18px; gap: .3rem; }
  .tabbar__indicator { display: none; }
  .tab { border-radius: 12px; text-align: center; padding: .6rem .5rem; }
  .tab.is-active { background: var(--navy); }
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: panel .45s cubic-bezier(.2,.7,.2,1); }
@keyframes panel { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.about__grid { display: grid; gap: 1.5rem; align-items: start; }
.about__lead { font-size: 1.08rem; color: var(--ink); line-height: 1.6; }
.highlights { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .75rem; }
.highlights li { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius); transition: transform .2s, box-shadow .2s; }
.highlights li:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.highlights .ico { color: var(--green); margin-top: 2px; }
.highlights strong { display: block; color: var(--navy); }
.highlights span { color: var(--ink-2); font-size: .92rem; }
.datacard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.datacard__head { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.25rem; background: linear-gradient(135deg, var(--navy), #1d4aa8); color: #fff; }
.datacard__head img { width: 52px; height: 52px; object-fit: contain; }
.datacard__head strong { display: block; }
.datacard__head span { font-size: .8rem; opacity: .8; }
.datacard__list { margin: 0; padding: .4rem 1.25rem; }
.datacard__list div { display: grid; gap: .1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.datacard__list div:last-child { border: 0; }
.datacard__list dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; }
.datacard__list dd { margin: 0; font-weight: 600; font-size: .95rem; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.6rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--green), var(--lime)); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 1.75rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -1.6rem; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--green); box-shadow: 0 0 0 4px var(--bg-alt); }
.timeline__year { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: .3rem; }
.timeline h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.timeline p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.quote { position: relative; background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 2.2rem 1.75rem 1.75rem; overflow: hidden; }
.quote::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; border: 24px solid rgba(139,195,74,.18); }
.quote__mark { width: 36px; height: 36px; color: var(--lime); margin-bottom: .8rem; }
.quote p { font-size: 1.15rem; line-height: 1.5; font-weight: 600; margin-bottom: 1rem; }
.quote span { font-size: .85rem; opacity: .75; }
.mv { position: relative; padding: 2rem; border-radius: var(--radius-lg); color: #fff; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.mv:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(20,48,110,.18); }
.mv::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.07); }
.mv--navy { background: linear-gradient(140deg, var(--navy), #1d4aa8); }
.mv--green { background: linear-gradient(140deg, var(--green-700), var(--green)); }
.mv > * { position: relative; z-index: 1; }
.mv__bg { position: absolute !important; inset: 0; z-index: 0 !important; overflow: hidden; }
.mv__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.mv:hover .mv__bg img { transform: scale(1.1); }
.mv__bg::after { content: ""; position: absolute; inset: 0; }
.mv--navy .mv__bg::after { background: linear-gradient(140deg, rgba(15,36,84,.93) 0%, rgba(20,48,110,.86) 55%, rgba(29,74,168,.72) 100%); }
.mv--green .mv__bg::after { background: linear-gradient(140deg, rgba(30,82,32,.93) 0%, rgba(37,100,39,.86) 55%, rgba(47,125,50,.7) 100%); }
.mv::after { z-index: 0; }
.mv__icon { width: 52px; height: 52px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.14); fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.2rem; }
.mv__kicker { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: .5rem; }
.mv p:last-child { margin: 0; font-size: 1.02rem; line-height: 1.6; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.values li { display: flex; gap: .9rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; transition: transform .2s, box-shadow .2s, border-color .2s; }
.values li:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.values .ico { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--green-100); color: var(--green); flex-shrink: 0; }
.values strong { display: block; color: var(--navy); }
.values span { color: var(--ink-2); font-size: .93rem; }

/* ---------- Servicios ---------- */
.service { padding: 1.5rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: box-shadow .2s, transform .2s, border-color .2s; }
.service:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.service__icon { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--navy-100); color: var(--navy); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.service p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- Ruta Verde: fila de fotos en movimiento ---------- */
.photorow { overflow: hidden; margin: 0 0 3rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.photorow.is-drag { cursor: grabbing; }
.photorow__track { display: flex; gap: 1rem; width: max-content; will-change: transform; }
.photorow__item { flex: 0 0 auto; height: 260px; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--bg-alt); cursor: zoom-in; box-shadow: 0 14px 30px rgba(15,36,84,.16); }
.photorow__item img { height: 100%; width: auto; display: block; pointer-events: none; -webkit-user-drag: none; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.photorow__item:hover img { transform: scale(1.06); }

/* ---------- Materiales ---------- */
.mats { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; align-items: stretch; padding-top: .5rem; }
.mats::before { content: ""; position: absolute; inset: 10% 5% 0; z-index: 0; background: radial-gradient(closest-side, rgba(139,195,74,.22), transparent 70%), radial-gradient(closest-side at 80% 60%, rgba(20,48,110,.10), transparent 70%); filter: blur(30px); pointer-events: none; }
.mat { position: relative; z-index: 1; background: #fff; border-radius: 30px; padding: 12px 12px 0; box-shadow: 0 2px 6px rgba(15,36,84,.04), 0 24px 50px -28px rgba(15,36,84,.35); transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s; }
.mat:hover { transform: translateY(-8px); box-shadow: 0 2px 6px rgba(15,36,84,.04), 0 36px 70px -30px rgba(15,36,84,.45); }
.mat__photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 22px; background: #e9eef4; }
.mat__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.mat:hover .mat__photo img { transform: scale(1.05); }
.mat__body { padding: 1.3rem .9rem 1.6rem; }
.mat__n { display: inline-flex; align-items: center; gap: .55rem; font-size: .75rem; font-weight: 800; letter-spacing: .14em; color: var(--green); }
.mat__n::after { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--lime); }
.mat__body h3 { margin: .45rem 0 .2rem; font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -.01em; color: var(--navy); }
.mat__sub { margin: 0 0 .8rem; font-size: .9rem; font-weight: 600; color: var(--ink-3); }
.mat__tags { margin: 0; font-size: .9rem; line-height: 1.7; color: var(--ink-2); }
.mat__tags span { white-space: nowrap; }
.mat__tags i { font-style: normal; color: var(--lime); font-weight: 800; margin: 0 .2rem; }
@media (max-width: 899px) {
  .mats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(76vw, 300px); overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; margin: 0 -16px; padding: .5rem 16px 1.75rem; scrollbar-width: none; }
  .mats::-webkit-scrollbar { display: none; }
  .mats::before { display: none; }
  .mat { scroll-snap-align: center; border-radius: 26px; padding: 10px 10px 0; }
  .mat__photo { aspect-ratio: 1 / 1; border-radius: 18px; }
  .mat:hover { transform: none; }
}
.bags { margin-top: 2.5rem; }
.bags h3 { margin-bottom: 1rem; }
.bag { border-radius: var(--radius-lg); padding: 1.25rem; border: 1px solid var(--line); background: #fff; }
.bag__dot { display: block; width: 14px; height: 14px; border-radius: 50%; margin-bottom: .6rem; border: 1px solid rgba(0,0,0,.15); }
.bag strong { display: block; margin-bottom: .25rem; }
.bag p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.bag.has-photo { padding: 0 0 1.25rem; overflow: hidden; }
.bag.has-photo > :not(.bag__photo) { margin-left: 1.25rem; margin-right: 1.25rem; }
.bag__photo { aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 1rem; }
.bag__photo img { width: 100%; height: 100%; object-fit: cover; }
.bag--white .bag__dot { background: #fff; }
.bag--black .bag__dot { background: #1b2430; }
.bag--green .bag__dot { background: var(--green); }

/* ---------- Cómo funciona ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.steps li { position: relative; padding: 1.5rem 1.5rem 1.5rem 4.25rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); }
.steps__n { position: absolute; left: 1.25rem; top: 1.4rem; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--navy-700); font-weight: 800; }
.steps p { margin: 0; color: #c9d4ea; font-size: .95rem; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 1rem; }
.form__row { display: grid; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-size: .875rem; font-weight: 700; color: var(--ink); }
input, select, textarea { width: 100%; font: inherit; font-weight: 500; font-size: 1rem; color: var(--ink); padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; min-height: 48px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 125, 50, .15); }
input.invalid, select.invalid, textarea.invalid { border-color: #c53030; }
.checks { border: 1.5px solid var(--line); border-radius: 10px; padding: .75rem 1rem .9rem; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; }
.checks legend { font-size: .875rem; font-weight: 700; padding: 0 .3rem; }
.checks label, .consent { display: flex !important; flex-direction: row; align-items: center; gap: .5rem; font-weight: 500 !important; font-size: .95rem !important; }
.checks input, .consent input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--green); }
.consent { align-items: flex-start; }
.consent input { margin-top: 3px; }
.form__msg { margin: 0; font-size: .9rem; font-weight: 600; min-height: 1.2em; }
.form__msg.ok { color: var(--green); }
.form__msg.err { color: #c53030; }

/* ---------- Rutas ---------- */
.route-search { display: grid; gap: .75rem; margin-bottom: 1.25rem; }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.routes { width: 100%; border-collapse: collapse; font-size: .92rem; }
.routes thead { display: none; }
.routes tr { display: block; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); }
.routes tr:last-child { border-bottom: 0; }
.routes td { display: block; padding: .15rem 0; }
.routes td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-top: .5rem; }
.routes tfoot tr { background: var(--navy-100); font-weight: 700; color: var(--navy); }
.routes tbody tr, .routes tfoot tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }
.routes tr > td:first-child, .routes td[data-label="Vehículos"], .routes td[data-label="Días"], .routes td[data-label="Horario"] { grid-column: 1 / -1; }
.routes tfoot td:empty { display: none; }
.route-tag { display: inline-block; background: var(--navy); color: #fff; font-weight: 700; font-size: .78rem; padding: .2rem .55rem; border-radius: 6px; }
.empty { padding: 1.5rem; text-align: center; color: var(--ink-2); margin: 0; }

/* ---------- Sede ---------- */
.place { display: grid; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.place__info { padding: 1.5rem; }
.place__map iframe { width: 100%; height: 280px; border: 0; }
.info-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1rem; }
.info-list li { display: flex; gap: .85rem; align-items: flex-start; }
.info-list .ico { color: var(--green); margin-top: 3px; }
.info-list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: .1rem; }
.info-list span { color: var(--ink); }

.place__photo { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; grid-column: 1 / -1; }
.place__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Documentos ---------- */
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.docs li { display: flex; flex-direction: column; gap: .75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; }
.docs strong { display: block; font-size: .97rem; color: var(--navy); }
.docs span { font-size: .85rem; color: var(--ink-3); }
.docs a { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem 1rem; border: 1.5px solid var(--line); border-radius: 8px; font-weight: 700; font-size: .875rem; color: var(--navy); white-space: nowrap; }
.docs a:hover { background: var(--navy); color: #fff; border-color: var(--navy); text-decoration: none; }

/* ---------- Nuestra labor: carrusel de fotos ---------- */
.event__place { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); margin-bottom: .45rem; }
#eventos { overflow: hidden; }
#eventos .section__head { margin-bottom: 2rem; }
.ev-show { outline: none; }
.ev-show:focus-visible { box-shadow: 0 0 0 3px var(--lime); border-radius: 26px; }
.ev-stage { position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: radial-gradient(120% 90% at 20% 10%, #1d4aa8 0%, var(--navy) 45%, var(--navy-700) 100%); box-shadow: 0 24px 60px -24px rgba(15, 36, 84, .45); }
.ev-slide { position: absolute; inset: 0; isolation: isolate; color: #fff; opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 0s linear 1.1s; }
.ev-slide.is-current { opacity: 1; visibility: visible; transition: opacity 1.1s ease; z-index: 1; }
.ev-slide.has-photo { cursor: zoom-in; }
.ev-slide__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.ev-slide__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); }
.ev-slide.is-current .ev-slide__media img { animation: ev-zoom 7s ease-out forwards; }
@keyframes ev-zoom { from { transform: scale(1.03); } to { transform: scale(1.12); } }
.ev-slide__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,24,58,0) 35%, rgba(10,24,58,.55) 65%, rgba(10,24,58,.9) 100%); }
.ev-slide__mark { position: absolute; right: -12%; top: -6%; width: 78%; height: auto; color: var(--lime); opacity: .14; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.ev-slide.has-photo .ev-slide__mark { display: none; }
.ev-slide__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.4rem 1.6rem; }
.ev-slide__body > * { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.ev-slide.is-current .ev-slide__body > * { opacity: 1; transform: none; }
.ev-slide.is-current .ev-slide__body > :nth-child(2) { transition-delay: .25s; }
.ev-slide.is-current .ev-slide__body > :nth-child(3) { transition-delay: .35s; }
.ev-slide.is-current .ev-slide__body > :nth-child(4) { transition-delay: .45s; }
.ev-slide__n { display: block; font-size: clamp(2.6rem, 7vw, 4rem); font-weight: 800; line-height: .9; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--lime); margin-bottom: .5rem; }
.ev-slide h3 { color: #fff; font-size: clamp(1.15rem, 2.4vw, 1.6rem); margin-bottom: .4rem; max-width: 30ch; }
.ev-slide p { margin: 0; color: rgba(255,255,255,.85); font-size: .95rem; max-width: 52ch; }
.ev-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; margin-top: 1rem; }
.ev-thumb { padding: 0; border: 0; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--bg-alt); cursor: pointer; opacity: .5; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .3s, outline-color .3s, transform .3s; }
.ev-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-thumb:hover { opacity: .85; transform: translateY(-2px); }
.ev-thumb.is-current { opacity: 1; outline-color: var(--lime); }
.ev-thumb:focus-visible { opacity: 1; outline-color: var(--navy); }
.ev-ui { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.ev-count { font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 4.5rem; }
.ev-count b { color: var(--navy); font-size: 1.15rem; }
.ev-progress { position: relative; flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.ev-progress span { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--green), var(--lime)); border-radius: 3px; }
.ev-nav { display: flex; gap: .5rem; }
.ev-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.ev-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: scale(1.06); }
@media (min-width: 1024px) {
  .ev-slide__body { padding: 2.2rem 2.6rem 2.4rem; }
}

@media (min-width: 640px) { .ev-stage { aspect-ratio: 16 / 10; } }
@media (min-width: 1024px) { .ev-stage { aspect-ratio: 16 / 8; } }


/* ---------- Recicapi en la ruta verde ---------- */
.mascot-stage { position: relative; margin: 1.75rem 0 0; display: grid; justify-items: center; }
.mascot-stage__motion { display: none; }
.mascot-stage__img { width: min(260px, 64%); height: auto; filter: drop-shadow(0 16px 26px rgba(20,48,110,.22)); animation: masc-float 4.5s ease-in-out infinite; }
.mascot-stage.has-motion .mascot-stage__motion { display: block; width: min(420px, 100%); aspect-ratio: 1; }
.mascot-stage.has-motion .mascot-stage__img { display: none; }
@keyframes masc-float { 50% { transform: translateY(-10px) rotate(-2deg); } }

/* ---------- Recicapi, el guía ---------- */
.guide { position: fixed; left: 12px; bottom: 12px; z-index: 54; display: flex; align-items: flex-end; gap: .4rem; pointer-events: none; transition: opacity .35s, translate .35s; animation: guide-in .9s cubic-bezier(.34,1.56,.64,1) both; }
.guide[hidden] { display: none; }
.guide.is-away, .guide.is-yield { opacity: 0; translate: 0 30px; }
.guide.is-yield .guide__pet, .guide.is-yield .guide__close { pointer-events: none; }
@keyframes guide-in { from { transform: translateY(150px) rotate(-14deg); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
.guide__pet { pointer-events: auto; order: 1; width: 62px; height: 72px; padding: 0; border: 0; background: none; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.guide__pet img { -webkit-user-drag: none; pointer-events: none; }
.guide.is-dragging { transition: none; }
.guide.is-dragging .guide__pet { cursor: grabbing; }
.guide.is-dragging .guide__pet img { animation: none; transform: rotate(-8deg) scale(1.08); filter: drop-shadow(0 18px 22px rgba(15,36,84,.35)); }
.guide.is-placed { animation: none; }
.guide.is-right { flex-direction: row-reverse; }
.guide.is-right .guide__bubble { transform-origin: 100% 100%; }
.guide.is-right .guide__bubble::before { left: auto; right: -9px; transform: rotate(-135deg); }
.guide.is-right .guide__close { left: auto; right: 44px; }
.guide__pet img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(15,36,84,.3)); animation: guide-idle 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes guide-idle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-3px); } }
.guide__bubble { order: 2; position: relative; margin: 0 0 2.8rem; max-width: 180px; padding: .65rem .85rem; background: #fff; color: var(--navy); font-weight: 700; font-size: .85rem; line-height: 1.3; border-radius: 14px; border: 2px solid var(--lime); box-shadow: 0 10px 24px rgba(15,36,84,.18); opacity: 0; transform: scale(.6); transform-origin: 0 100%; transition: opacity .25s, transform .25s; }
.guide__bubble::before { content: ""; position: absolute; left: -9px; bottom: 12px; width: 14px; height: 14px; background: #fff; border-left: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: rotate(45deg); }
.guide.is-talking .guide__bubble { opacity: 1; transform: none; }
.guide__close { pointer-events: auto; order: 0; position: absolute; left: 44px; top: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .2s; }
.guide:hover .guide__close, .guide:focus-within .guide__close { opacity: 1; }
.guide__close .ico { width: 12px; height: 12px; }
@media (hover: none) { .guide__close { opacity: .85; } }
@media (min-width: 1024px) {
  .guide { left: 20px; bottom: 20px; }
  .guide__pet { width: 96px; height: 110px; }
  .guide__bubble { max-width: 230px; font-size: .9rem; margin-bottom: 4.4rem; }
  .guide__close { left: 70px; }
}

/* ---------- Aliados ---------- */
.partners { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.partner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; text-align: center; min-height: 120px; padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform .2s, box-shadow .2s; }
.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.partner__logo { display: grid; place-items: center; height: 84px; width: 100%; margin-bottom: .6rem; }
.partner__logo img { height: 72px; max-width: min(100%, 220px); width: auto; object-fit: contain; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.partner:hover .partner__logo img { transform: scale(1.05); }
.partner__name { font-weight: 800; color: var(--navy); line-height: 1.25; font-size: .95rem; }
.partner__sub { font-size: .8rem; color: var(--ink-3); }

/* ---------- Contador de visitas ---------- */
.footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; align-items: center; }
.visits { display: inline-flex; align-items: center; gap: .35rem; color: #c9d4ea; }
.visits[hidden] { display: none; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.gallery button { position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); cursor: zoom-in; aspect-ratio: 4 / 3; width: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery span { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem .75rem; font-size: .8rem; font-weight: 600; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(15, 36, 84, .75)); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 18, 40, .92); display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; }
.lightbox img { max-height: 78vh; border-radius: 10px; margin: auto; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: .75rem; font-size: .95rem; }
.lightbox__close, .lightbox__nav { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- PQRS ---------- */
.track { margin-top: 1rem; }
.track__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; font-size: .92rem; }
.track__status { display: inline-block; background: var(--green-100); color: var(--green-700); font-weight: 700; font-size: .78rem; padding: .15rem .6rem; border-radius: 999px; margin-left: .4rem; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 110; background: rgba(10, 18, 40, .6); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__box { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 2rem 1.5rem 1.5rem; width: min(440px, 100%); animation: fade .25s; }
.modal__close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg-alt); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.modal__box h3 { font-size: 1.2rem; }
.radicado { font-size: 1.5rem; font-weight: 800; color: var(--navy); background: var(--navy-100); border-radius: 10px; padding: .75rem; text-align: center; letter-spacing: .03em; margin: 1rem 0; }
.modal__actions { display: grid; gap: .6rem; margin-top: 1rem; }

/* ---------- Pie ---------- */
.footer { background: var(--navy-700); color: #c9d4ea; font-size: .9rem; }
.footer__main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 2.25rem 0 1.25rem; }
.footer__brand { display: flex; align-items: center; gap: .85rem; }
.footer__brand .brand__mark { width: 48px; height: 48px; }
.footer__brand p { margin: 0; line-height: 1.35; }
.footer__brand strong { display: block; color: #fff; font-size: .95rem; }
.footer__brand span { font-size: .8rem; }
.footer__social { display: flex; gap: .6rem; }
.footer__social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); color: #fff; transition: background .2s, border-color .2s, transform .2s; }
.footer__social a:hover { background: var(--lime); border-color: var(--lime); color: var(--navy-700); transform: translateY(-2px); }
.footer__social a[hidden] { display: none; }
.footer__social .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; padding-bottom: 1.5rem; font-size: .85rem; }
.footer__links nav { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.footer__control { margin: 0; color: #9fb0cf; }
.footer a { color: #e6ebf5; }
.footer a:hover { color: var(--lime); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1rem 0; font-size: .8rem; text-align: center; }

/* ---------- WhatsApp flotante ---------- */
.wa { position: fixed; right: 16px; bottom: 16px; z-index: 55; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(37, 211, 102, .4); }
.wa .ico { width: 28px; height: 28px; }
.wa:hover { text-decoration: none; transform: translateY(-2px); }

/* ---------- Logo en el inicio ---------- */
.hero__grid { display: grid; gap: 2rem; align-items: center; position: relative; }
.hero__logo { position: relative; display: grid; place-items: center; width: min(220px, 60vw); margin: 0 auto; aspect-ratio: 1; }
.hero__logo img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 28px rgba(20, 48, 110, .22)); }
.hero__ring { position: absolute; inset: 4%; border-radius: 50%; border: 1.5px solid rgba(139, 195, 74, .5); animation: ring 6s ease-in-out infinite; }
.hero__ring::after { content: ""; position: absolute; inset: -10%; border-radius: 50%; border: 1px dashed rgba(20, 48, 110, .16); animation: spin 60s linear infinite; }
@keyframes ring { 50% { transform: scale(1.04); opacity: .7; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes hero-in { from { opacity: 0; transform: translateY(18px) scale(.96); } }
.hero__inner > * { animation: hero-in .8s cubic-bezier(.2,.7,.2,1) both; }
.hero__inner > :nth-child(2) { animation-delay: .1s; }
.hero__inner > :nth-child(3) { animation-delay: .2s; }
.hero__inner > :nth-child(4) { animation-delay: .3s; }
.hero__logo { animation: hero-in 1s .25s cubic-bezier(.2,.7,.2,1) both; }
.trust li { animation: hero-in .7s cubic-bezier(.2,.7,.2,1) both; }
.trust li:nth-child(1) { animation-delay: .5s; } .trust li:nth-child(2) { animation-delay: .58s; } .trust li:nth-child(3) { animation-delay: .66s; } .trust li:nth-child(4) { animation-delay: .74s; }

/* ---------- Aparición al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Las animaciones permanecen activas aunque el sistema pida "reducir movimiento" (decisión de la clienta). */

/* =========================================================
   Celular (< 640px): versión más limpia y liviana
   ========================================================= */
@media (max-width: 639px) {
  .section { padding: 2.75rem 0; }
  .section__head { margin-bottom: 1.5rem; }
  .section__lead { font-size: .95rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero__lead { font-size: 1rem; }
  .hero .trust { display: none; }
  .hero__logo { width: min(200px, 52vw); }
  .hero__actions .btn { min-height: 46px; }
  .marquee__track { font-size: .75rem; padding: .6rem 0; animation-duration: 55s; }
  .guide { left: 8px; bottom: 8px; }
  .guide__pet { width: 50px; height: 58px; }
  .guide__bubble { max-width: 160px; font-size: .8rem; margin-bottom: 2.2rem; }
  .guide__close { left: 34px; width: 22px; height: 22px; }
  .mascot-stage.has-motion .mascot-stage__motion { width: min(300px, 80%); }
  .feature, .service { padding: 1.25rem; }
  .ev-thumbs { gap: .4rem; }
  .ev-thumb { border-radius: 9px; }
}

@media (min-width: 1024px) {
  .photorow__item { height: 360px; }
}

/* =========================================================
   Tablet  ≥ 640px
   ========================================================= */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .section { padding: 4.5rem 0; }
  .hero { padding: 4.5rem 0 3rem; }
  .hero__actions { flex-direction: row; }
  .trust { grid-template-columns: 1fr 1fr; }
  .grid--2, .grid--3, .grid--1-1, .grid--2-1 { grid-template-columns: 1fr 1fr; }
  .form__row { grid-template-columns: 1fr 1fr; }
  .route-search { grid-template-columns: 1fr 200px; }
  .docs li { flex-direction: row; align-items: center; justify-content: space-between; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: 1fr 1fr; }
  .about__grid { grid-template-columns: 1.4fr 1fr; gap: 2rem; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .about__grid--rev { grid-template-columns: 1.5fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 4rem 1.5rem 1.5rem; }
  .steps__n { left: 1.5rem; top: 1.5rem; }
  .topbar__addr { display: inline-flex; }
  .place__map iframe { height: 340px; }
}

/* =========================================================
   Escritorio  ≥ 1024px
   ========================================================= */
@media (min-width: 1024px) {
  :root { --gutter: 32px; --header-h: 76px; }
  .section { padding: 5.5rem 0; }
  .hero { padding: 6rem 0 3.5rem; }
  .hero__lead { font-size: 1.15rem; }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .hero__grid { grid-template-columns: 1.4fr 1fr; gap: 3rem; }
  .band__inner { grid-template-columns: 1.6fr auto; }
  .band__actions { flex-direction: row; }
  .hero__logo { width: min(340px, 100%); margin: 0 0 0 auto; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--2-1 { grid-template-columns: 1.6fr 1fr; }
  .values { grid-template-columns: repeat(3, 1fr); }
  .about__grid { gap: 3rem; }
  .grid--1-1 { gap: 3rem; align-items: start; }
  .brand__mark { width: 46px; height: 46px; }
  .brand__name { font-size: 1.02rem; }

  /* Menú de escritorio */
  .nav__toggle, .nav__backdrop { display: none !important; }
  .nav { position: static; width: auto; transform: none; padding: 0; box-shadow: none; overflow: visible; background: transparent; visibility: visible; }
  .nav__list { display: flex; align-items: center; gap: .2rem; padding: 0; }
  .nav__list > li { position: relative; }
  .nav__list a, .nav__dd-btn { width: auto; padding: .55rem .7rem; font-size: .9rem; white-space: nowrap; gap: .25rem; }
  .nav__list .nav__cta { margin: 0 0 0 .6rem; padding: .6rem 1.15rem !important; border-radius: 999px; background: var(--green); box-shadow: 0 6px 16px rgba(47,125,50,.28); }
  .nav__list .nav__cta:hover { background: #256427 !important; transform: translateY(-1px); }
  .nav__dd-btn .ico { transition: transform .25s; }
  .nav__item--dd:hover .nav__dd-btn .ico { transform: rotate(180deg); }
  .nav__item--dd.has-active > .nav__dd-btn { color: var(--green); }
  .nav__dd a::after { display: none; }
  .nav__dd a:hover { background: var(--bg-alt); color: var(--navy); }
  .nav__item--dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
  .nav__dd { position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px; padding: .4rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); display: none; }
  .nav__item--dd:hover .nav__dd, .nav__item--dd.is-open .nav__dd { display: block; }
  .nav__dd a { font-size: .9rem; padding: .6rem .8rem; }

  .place { grid-template-columns: 1fr 1.3fr; }
  .place__info { padding: 2rem; }
  .place__map iframe { height: 100%; min-height: 360px; }
  .routes thead { display: table-header-group; }
  .routes tr, .routes tbody tr, .routes tfoot tr { display: table-row; padding: 0; }
  .routes th { background: var(--navy-100); color: var(--navy); text-align: left; padding: .8rem 1rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
  .routes td { display: table-cell; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
  .routes tr:last-child td { border-bottom: 0; }
  .routes tfoot td { border-top: 2px solid var(--line); }
  .routes tfoot td:empty { display: table-cell; }
  .routes td[data-label]::before { display: none; }
  .routes tbody tr:hover td { background: #fafbfd; }
  .gallery { gap: 1rem; }
}

@media (min-width: 1200px) {
  .nav__list a, .nav__dd-btn { padding: .55rem .8rem; font-size: .93rem; }
}

/* ---------- Escenas Remotion (motion/ → assets/js/motion.js) ---------- */
.hero__motion { display: none; }
.hero__logo.has-motion .hero__motion { display: block; position: absolute; inset: -30%; pointer-events: none; }
.hero__logo.has-motion > img, .hero__logo.has-motion .hero__ring { visibility: hidden; }
.assemble__motion { display: none; }
.proc-now { width: min(480px, 100%); margin-top: .25rem; padding: 1rem 1.15rem; border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(139,195,74,.55); color: #fff; text-align: left; }
.proc-now.is-new { animation: proc-in .5s cubic-bezier(.2,.7,.2,1); }
@keyframes proc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.proc-now__dots { display: flex; gap: .35rem; margin-bottom: .55rem; }
.proc-now__dots i { width: 22px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.25); transition: background .3s; }
.proc-now__dots i.is-on { background: var(--lime); }
.proc-now strong { display: block; font-size: 1.05rem; margin-bottom: .25rem; }
.proc-now p { margin: 0; font-size: .92rem; color: rgba(255,255,255,.85); }
@media (max-width: 1023px) { .process__grid:has(.has-motion .proc-now:not([hidden])) .steps { display: none; } }
.assemble.has-motion .assemble__motion { display: block; width: min(480px, 100%); aspect-ratio: 1; filter: drop-shadow(0 24px 48px rgba(0,0,0,.35)); }
.assemble.has-motion .recycle-draw, .assemble.has-motion .assemble__caption { display: none; }
@media (min-width: 1024px) {
  .process__grid:has(.has-motion) { grid-template-columns: 1.1fr 1fr; }
}

/* Celular y tablet (una sola columna): la órbita del inicio va dentro de su caja; si sobresale tapa los botones y la cinta la corta */
@media (max-width: 1023px) {
  .hero__logo.has-motion { width: min(360px, 82vw); margin-top: .25rem; }
  .hero__logo.has-motion .hero__motion { inset: 0; }
}

/* Aliados: cuatro por fila en escritorio */
@media (min-width: 1024px) { .partners { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 639px) {
  .partners { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .partner { min-height: 0; padding: 1rem .7rem; }
  .partner__logo { height: 52px; margin-bottom: .4rem; }
  .partner__logo img { height: 48px; }
  .partner__name { font-size: .82rem; }
  .partner__sub { font-size: .72rem; }
}

/* Pie en celular: todo centrado y con espacio abajo para Recicapi y el botón de WhatsApp */
@media (max-width: 639px) {
  .footer__main { flex-direction: column; text-align: center; gap: 1rem; padding: 2rem 0 1rem; }
  .footer__brand { flex-direction: column; gap: .5rem; }
  .footer__links { flex-direction: column; align-items: center; text-align: center; gap: .9rem; }
  .footer__links nav { justify-content: center; gap: .5rem 1rem; }
  .footer__control { font-size: .8rem; }
  .footer__bottom { padding-bottom: 6.5rem; }
  .footer__bottom-inner { flex-direction: column; gap: .3rem; }
}
