/* =========================================================================
   IGUALO · Compromiso sostenible — figuras animadas (sin gráficos de barras)
   ========================================================================= */
.page-eco { background: #06110b; }
.eco { padding-bottom: 80px; --eco: #4ade80; --lime: #a3e635; --card: #0b1a12; --line: rgba(74, 222, 128, .16); }
.eco-kicker { margin: 0 0 10px; color: #86efac; font-weight: 800; font-size: .9rem; }

/* ---------- Hero ---------- */
.eco-hero { padding: 34px 0 30px; border-bottom: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(60% 140% at 0% 0%, rgba(34, 197, 94, .28), transparent 60%),
              radial-gradient(50% 120% at 100% 100%, rgba(132, 204, 22, .16), transparent 60%), linear-gradient(180deg, #0b1a12, #06110b); }
@media (min-width: 900px) { .eco-hero { padding: 64px 0 56px; } }
.eco-hero-grid { display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) { .eco-hero-grid { grid-template-columns: 1.15fr 1fr; } }
.eco-hero h1 { margin: 0 0 16px; font-family: var(--hx-display); font-size: clamp(1.9rem, 1.2rem + 3vw, 3.3rem); line-height: 1.07; letter-spacing: -.035em; color: #fff; }
.eco-hero h1 span { background: linear-gradient(90deg, var(--eco), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eco-lead { max-width: 56ch; margin: 0 0 22px; color: #c7d8cc; font-size: 1.05rem; line-height: 1.65; }
.eco-lead b { color: #bbf7d0; }

/* Ciclo animado */
.eco-loop { position: relative; width: min(100%, 380px); aspect-ratio: 1; margin: 0 auto; container-type: inline-size; }
.eco-loop-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: eco-spin 24s linear infinite; filter: drop-shadow(0 0 24px rgba(74, 222, 128, .35)); }
@keyframes eco-spin { to { transform: rotate(360deg); } }
.eco-loop-center { position: absolute; inset: 31%; display: grid; place-content: center; justify-items: center; border-radius: 50%; text-align: center;
  background: radial-gradient(circle at 35% 30%, #1d3a28, #0b1a12); box-shadow: inset 0 0 0 2px rgba(74, 222, 128, .3), 0 20px 50px -20px rgba(74, 222, 128, .6); }
.eco-loop-center b { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1; animation: eco-pulse 3s ease-in-out infinite; }
.eco-loop-center span { margin-top: 4px; color: #bbf7d0; font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; line-height: 1.2; }
@keyframes eco-pulse { 50% { transform: scale(1.12); } }
.eco-orbit { position: absolute; inset: 0; animation: eco-spin 30s linear infinite reverse; }
.eco-orbit span { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px; display: grid; place-items: center; border-radius: 16px;
  font-size: 1.6rem; background: #0f2418; border: 1px solid rgba(163, 230, 53, .35); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .8);
  transform: rotate(calc(var(--i) * 60deg)) translate(39cqw) rotate(calc(var(--i) * -60deg)); }
@media (max-width: 899px) { .eco-loop { width: min(78vw, 320px); } .eco-orbit span { width: 44px; height: 44px; margin: -22px; font-size: 1.3rem; } }

.eco-body { padding-top: 34px; }
.eco-sec { margin-top: 54px; }
.eco-sec h2, .eco-cta h2, .eco-big h2 { margin: 0 0 6px; font-family: var(--hx-display); font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2.1rem); color: #fff; letter-spacing: -.02em; line-height: 1.15; }
.eco-sub { margin: 0 0 20px; color: #a7c4b0; }
.eco-fine { margin: 10px 0 0; color: #6b8f78; font-size: .78rem; }

/* Aparición suave */
[data-eco-in] { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
[data-eco-in].is-in { opacity: 1; transform: none; }

/* ---------- Gran anillo ---------- */
.eco-big { display: grid; gap: 26px; align-items: center; padding: 26px; border-radius: 30px; background: var(--card); border: 1px solid var(--line); }
@media (min-width: 800px) { .eco-big { grid-template-columns: 280px 1fr; padding: 38px; gap: 40px; } }
.eco-donut { position: relative; width: min(100%, 260px); aspect-ratio: 1; margin: 0 auto; }
.eco-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.eco-donut::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; box-shadow: 0 0 60px -10px rgba(74, 222, 128, .45); }
.eco-donut circle { fill: none; stroke-width: 12; stroke-linecap: round; }
.eco-donut-bg { stroke: rgba(74, 222, 128, .12); }
.eco-donut-fg { stroke: url(#ecoG); stroke: var(--eco); stroke-dasharray: 0 100; transition: stroke-dasharray 1.6s cubic-bezier(.2, .8, .2, 1); }
.is-in .eco-donut-fg { stroke-dasharray: var(--p) 100; }
.eco-donut-txt { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; grid-auto-flow: column; align-items: baseline; }
.eco-donut-txt b { font-family: var(--hx-display); font-size: clamp(3rem, 2.2rem + 3vw, 4.4rem); color: #fff; line-height: 1; }
.eco-donut-txt small { color: var(--eco); font-family: var(--hx-display); font-size: 1.6rem; font-weight: 800; }
.eco-big-txt > p { color: #c7d8cc; line-height: 1.6; margin: 10px 0 0; }
.eco-big-txt b { color: #fff; }
.eco-chips { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.eco-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(74, 222, 128, .1); border: 1px solid var(--line); color: #c7d8cc; font-size: .9rem; }
.eco-chips b { color: var(--eco); font-family: var(--hx-display); font-size: 1.1rem; }

/* ---------- Figuras por categoría ---------- */
.eco-gauges { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .eco-gauges { grid-template-columns: repeat(4, 1fr); } }
.eco-gauge { display: grid; justify-items: center; gap: 4px; padding: 18px 10px 16px; border-radius: 24px; background: var(--card); border: 1px solid var(--line);
  color: inherit; text-decoration: none; text-align: center; transition: transform .25s, border-color .25s; }
.eco-gauge:hover { transform: translateY(-4px); border-color: rgba(163, 230, 53, .5); }
.eco-gauge-ring { position: relative; width: 112px; height: 112px; }
.eco-gauge-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.eco-gauge-ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.eco-g-bg { stroke: rgba(74, 222, 128, .12); }
.eco-g-fg { stroke: var(--lime); stroke-dasharray: 0 100; transition: stroke-dasharray 1.4s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d) * 120ms); }
.is-in .eco-g-fg { stroke-dasharray: var(--p) 100; }
.eco-gauge-ic { position: absolute; inset: 18px; display: grid; place-items: center; border-radius: 50%; font-size: 2.1rem; background: radial-gradient(circle at 35% 30%, #1d3a28, #0f2418); }
.eco-gauge:hover .eco-gauge-ic { animation: eco-bob .6s ease; }
@keyframes eco-bob { 50% { transform: translateY(-4px) scale(1.08); } }
.eco-gauge b { font-family: var(--hx-display); font-size: 1.6rem; color: #fff; }
.eco-gauge small { color: #a7c4b0; font-weight: 600; }

/* ---------- Vida de un objeto ---------- */
.eco-journey { position: relative; padding: 10px 0; }
.eco-path { position: absolute; left: 0; right: 0; top: 18px; width: 100%; height: 120px; }
.eco-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.eco-steps li { display: grid; justify-items: center; text-align: center; gap: 6px; }
.eco-steps li > span { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; font-size: 2.2rem;
  background: radial-gradient(circle at 35% 30%, #1d3a28, #0b1a12); border: 2px solid rgba(74, 222, 128, .35); box-shadow: 0 14px 30px -16px rgba(74, 222, 128, .7); }
.eco-steps li.is-final > span { border-color: var(--lime); box-shadow: 0 0 0 6px rgba(163, 230, 53, .15), 0 14px 30px -12px rgba(163, 230, 53, .9); }
.eco-steps b { color: #fff; }
.eco-steps small { color: #a7c4b0; font-size: .84rem; line-height: 1.4; max-width: 18ch; }
.is-in .eco-steps li { animation: eco-pop .6s both; }
.is-in .eco-steps li:nth-child(2) { animation-delay: .12s; } .is-in .eco-steps li:nth-child(3) { animation-delay: .24s; }
.is-in .eco-steps li:nth-child(4) { animation-delay: .36s; } .is-in .eco-steps li:nth-child(5) { animation-delay: .48s; }
@keyframes eco-pop { from { opacity: 0; transform: scale(.7); } }
@media (max-width: 760px) {
  .eco-path { display: none; }
  .eco-steps { grid-template-columns: 1fr; gap: 0; }
  .eco-steps li { grid-template-columns: 64px 1fr; justify-items: start; text-align: left; column-gap: 14px; row-gap: 0; padding-bottom: 22px; position: relative; }
  .eco-steps li::before { content: ""; position: absolute; left: 31px; top: 64px; bottom: 0; border-left: 3px dashed rgba(74, 222, 128, .3); }
  .eco-steps li:last-child::before { display: none; }
  .eco-steps li > span { width: 64px; height: 64px; font-size: 1.7rem; grid-row: span 2; }
  .eco-steps b { align-self: end; } .eco-steps small { max-width: none; }
}

/* ---------- Compromisos ---------- */
.eco-promises { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.eco-promises > div { position: relative; padding: 20px 18px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.eco-promises > div::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(163, 230, 53, .16), transparent 70%); }
.eco-badge { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; font-size: 1.6rem; background: linear-gradient(135deg, rgba(74, 222, 128, .2), rgba(163, 230, 53, .1)); border: 1px solid rgba(163, 230, 53, .3); }
.eco-promises b { display: block; margin: 12px 0 4px; color: #fff; }
.eco-promises p { margin: 0; color: #a7c4b0; font-size: .9rem; line-height: 1.5; }

/* ---------- Consejos ---------- */
.eco-tips { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.eco-tips > * { display: grid; grid-template-columns: 48px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color .2s; }
a.eco-tips > *:hover, .eco-tips a:hover { border-color: rgba(163, 230, 53, .5); }
.eco-tips span { grid-row: span 2; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(74, 222, 128, .1); font-size: 1.4rem; }
.eco-tips b { color: #fff; align-self: end; }
.eco-tips small { color: #a7c4b0; font-size: .84rem; line-height: 1.4; align-self: start; }
.eco-tips svg { grid-row: span 2; grid-column: 3; width: 18px; height: 18px; color: var(--eco); }

/* ---------- CTA ---------- */
.eco-cta { position: relative; overflow: hidden; margin-top: 60px; padding: 40px 24px; border-radius: 30px; text-align: center;
  background: radial-gradient(70% 140% at 50% 0%, rgba(34, 197, 94, .32), transparent 70%), var(--card); border: 1px solid rgba(74, 222, 128, .3); }
.eco-cta p { margin: 6px 0 20px; color: #c7d8cc; }
.eco-cta-globe { width: 86px; height: 86px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; font-size: 3rem;
  background: radial-gradient(circle at 35% 30%, #1d3a28, #0b1a12); box-shadow: 0 0 0 8px rgba(74, 222, 128, .08), 0 0 0 16px rgba(74, 222, 128, .04); }
.eco-cta-globe span { animation: eco-spin 18s linear infinite; display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .eco-loop-ring, .eco-orbit, .eco-cta-globe span, .eco-loop-center b { animation: none; }
  [data-eco-in] { opacity: 1; transform: none; }
}
