/* ============================================================
   Ingecodex.com — Re-design anti-IA
   Overlay CSS que sobreescribe el bundle de React original.
   ============================================================ */

:root,
[data-theme="dark"] {
  --blue: #0e7a0d;          /* accent: verde profundo */
  --cyan: #2f9630;
  --teal: #0e7a0d;
  --bg: #0b0d09;
  --bg-2: #101208;
  --panel: rgba(255, 255, 255, .02);
  --border: rgba(232, 240, 210, .10);
  --text: #dfe3d6;
  --muted: #8b927c;
  --heading: #f4f6ec;
  --card-text: #eef0e6;
}

[data-theme="light"] {
  --blue: #0f7b0c;
  --cyan: #1d8f1a;
  --teal: #0f7b0c;
  --bg: #fbfaf6;            /* blanco cálido, no puro */
  --bg-2: #f2f0e7;
  --panel: #ffffff;
  --border: rgba(24, 32, 20, .10);
  --text: #1d231b;
  --muted: #636c5c;
  --heading: #11160e;
  --card-text: #1d231b;
  --shadow: rgba(24, 32, 20, .08);
}

/* ---------- Grain / noise overlay ---------- */
.grain::before {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.05;
  animation: grainShift 0.6s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* Profundidad: sombras tintadas suaves en claro */
[data-theme="light"] .card,
[data-theme="light"] .step,
[data-theme="light"] .codebox,
[data-theme="light"] .donate-card {
  box-shadow: 0 1px 2px rgba(24, 32, 20, .04),
              0 12px 32px -18px rgba(24, 32, 20, .18);
  background: #fff;
}
[data-theme="light"] .card:hover,
[data-theme="light"] .step:hover {
  box-shadow: 0 2px 4px rgba(24, 32, 20, .05),
              0 24px 56px -24px rgba(16, 30, 8, .28);
  transform: translateY(-3px);
}

/* ============================================================
   TIPOGRAFÍA — Monumental
   ============================================================ */
body {
  font-family: "Inter var", Inter, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: -0.015em;
  background: var(--bg);
  color: var(--text);
  font-feature-settings: "ss01", "cv03", "cv11";
  -webkit-font-smoothing: antialiased;
}

/* Labels superiores — pequeño, semibold, espaciado, uppercase */
.badge,
.lang-toggle {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
}

/* ---------- HERO: titulo monumental ---------- */
.hero { padding: 130px 0 110px; }
[data-theme="light"] .hero {
  background:
    radial-gradient(90% 70% at 15% -10%, rgba(15, 123, 12, .12), transparent 60%),
    radial-gradient(70% 55% at 90% 15%, rgba(29, 143, 26, .08), transparent 55%),
    radial-gradient(60% 50% at 50% 100%, rgba(15, 123, 12, .06), transparent 60%),
    linear-gradient(180deg, #fbfaf6, #fbfaf6);
}
/* logo con halo de profundidad */
[data-theme="light"] .hero__logo {
  filter: drop-shadow(0 14px 30px rgba(15, 123, 12, .22));
  width: 170px;
}
/* Tarjetas de hero-description y botones en capas */
.hero h1 {
  font-size: clamp(3rem, 9.5vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 800;
  max-width: 15ch;
  margin-inline: auto;
  text-wrap: balance;
  color: var(--heading);
}
/* Do relleno el primer tramo con gradiente animado */
.hero h1 {
  background: linear-gradient(100deg, #0f7b0c 0%, #3aa13a 30%, #0f7b0c 60%, #6a8f3a 82%, #0f7b0c 100%);
  background-size: 260% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleColorFlow 7s linear infinite;
}
.hero h1 .gradient-text,
.hero h1 br + * {
  background: none;
  background-image: none;
  color: var(--muted);
  font-weight: 520;
  -webkit-text-fill-color: currentColor;
  animation: none;
}
.hero__lead {
  max-width: 44ch;
  font-size: 1.28rem;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 440;
  letter-spacing: -0.01em;
}
/* hero meta como pills flotantes */
.hero__meta li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .5rem 1.1rem;
  font-size: .82rem;
  font-weight: 560;
  letter-spacing: .01em;
  color: var(--muted);
  box-shadow: 0 8px 24px -16px rgba(16, 30, 8, .25);
}

/* ---------- Badge "Se instala en WordPress" ---------- */
.hero__wp {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.6rem;
  padding: .5rem 1.1rem .5rem .6rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 12px 32px -20px rgba(16, 30, 8, .35), 0 0 0 1px rgba(15,123,12,.06) inset;
  color: var(--muted);
  font-size: .9rem;
  letter-spacing: .01em;
}
.hero__wp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #21759b, #1d8fb0);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(33, 117, 155, .6);
}
.hero__wp-txt strong {
  color: var(--heading);
  font-weight: 700;
}

/* ---------- Buttons: romper el pill generico ---------- */
.btn {
  border-radius: 3px;
  font-weight: 560;
  letter-spacing: -0.01em;
}
.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 30px rgba(15, 123, 12, 0.2);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(15, 123, 12, 0.3);
}
.btn--ghost {
  color: var(--heading);
  border: 1px solid var(--border);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--blue);
  box-shadow: none;
}
.btn--donate {
  background: var(--blue);
  color: #fff;
  border-radius: 3px;
  box-shadow: 0 10px 30px rgba(15, 123, 12, 0.2);
}

/* ============================================================
   SECCIONES — cabeceras enormes, orilla izquierda
   ============================================================ */
.section { padding: 110px 0; }
.section__head {
  text-align: left;
  max-width: 880px;
  margin: 0 0 3.6rem;
}
.section__head h2 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 780;
  color: var(--heading);
  text-wrap: balance;
  background: linear-gradient(100deg, var(--blue) 0%, var(--cyan) 30%, var(--teal) 50%, var(--muted) 72%, var(--blue) 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleColorFlow 8s linear infinite;
}
.section__head p {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 40ch;
  line-height: 1.5;
}
@keyframes titleColorFlow {
  to { background-position: -250% center; }
}

/* ============================================================
   CARDS — romper la card generica (borde+shadow)
   Solo color de fondo, separados por lineas
   ============================================================ */
.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-block: 1px solid var(--border);
}
.card {
  background: none;
  border: none;
  border-radius: 0;
  padding: 2.2rem 2.2rem 2.6rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.card:before { display: none; }
/* spotlight que sigue al raton */
.card .card-spot {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 14px;
  background: radial-gradient(
    220px circle at var(--mx, 50%) var(--my, 50%),
    rgba(15, 123, 12, .12),
    transparent 65%
  );
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.card:hover .card-spot { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card:hover {
  transform: translateY(-3px);
  box-shadow: none;
  background: var(--panel);
}
.card__icon {
  font-size: 1.4rem;
  margin-bottom: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--blue);
}

/* ---------- Iconos animados (iconify) ---------- */
.anim-icon {
  width: 24px;
  height: 24px;
  color: var(--blue);
  will-change: transform;
}
.card__icon .iconify,
.card__icon svg.iconify,
.card__icon svg[data-icon] {
  width: 24px !important;
  height: 24px !important;
  color: var(--blue);
}
[data-theme="light"] .card__icon .iconify,
[data-theme="light"] .card__icon svg.iconify {
  color: #0f7b0c;
}
.anim-floatIcon { animation: animFloat 3s ease-in-out infinite; }
.anim-spinIcon { animation: animSpin 6s linear infinite; }
.anim-pulseIcon { animation: animPulse 2.2s ease-in-out infinite; }
.anim-swapIcon { animation: animSwap 2.8s ease-in-out infinite; }
.anim-ringIcon { animation: animRing 2.4s ease-in-out infinite; transform-origin: top center; }
.anim-wiggleIcon { animation: animWiggle 2.6s ease-in-out infinite; }
.anim-bobIcon { animation: animBob 3.2s ease-in-out infinite; }
.anim-tiltIcon { animation: animTilt 4s ease-in-out infinite; }

@keyframes animFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes animSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes animPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
@keyframes animSwap {
  0%, 100% { transform: translateX(0) rotateY(0); }
  50% { transform: translateX(4px) rotateY(180deg); }
}
@keyframes animRing {
  0%, 60%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(14deg); }
  20%, 40% { transform: rotate(-12deg); }
}
@keyframes animWiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}
@keyframes animBob {
  0%, 100% { transform: translateY(0) rotate(0); }
  30% { transform: translateY(-4px) rotate(-4deg); }
  70% { transform: translateY(2px) rotate(4deg); }
}
@keyframes animTilt {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}
.card__icon:nth-child(odd) svg.anim-icon { animation: animFloat 3s ease-in-out infinite; }
.card__icon:nth-child(even) svg.anim-icon { animation: animBob 3.4s ease-in-out infinite; }
.step .anim-icon { width: 20px; height: 20px; }
.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
  font-weight: 640;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, var(--blue), var(--cyan), var(--teal), var(--blue));
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleColorFlow 7s linear infinite;
  display: inline-block;
}
.card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 30ch;
}

/* ============================================================
   STEPS — REALIDAD AUMENTADA (escena 3D con parallax)
   Cada paso flota en el espacio como objeto AR y responde
   con profundidad al movimiento del cursor.
   ============================================================ */
.section--alt {
  perspective: 1200px;
  perspective-origin: 50% 50%;
}
/* la escena AR mantiene la grilla pero con profundidad 3D */
.grid-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  background: transparent;
  border: none;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
/* Cada paso es un "objeto AR" flotando a su propia profundidad */
.step {
  background: transparent;
  background-image: radial-gradient(160% 120% at 50% 0%, rgba(15,123,12,.05), transparent 60%), #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 3rem 2.2rem;
  position: relative;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
  transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow .4s ease;
  box-shadow: 0 1px 2px rgba(16,30,8,.05),
              0 22px 50px -24px rgba(16,30,8,.28);
}
/* Elevacion en el eje Z y paralaje al cursor (controlado por JS con --rx/--ry/--rz) */
.step {
  transform:
    perspective(900px)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    translateZ(var(--rz, 0px));
}
.step:nth-child(1) { --rz: 0px; }
.step:nth-child(2) { --rz: 28px; }
.step:nth-child(3) { --rz: 56px; }
.step:hover {
  z-index: 5;
  box-shadow: 0 1px 2px rgba(16,30,8,.04),
              0 18px 40px -18px rgba(16,30,8,.22),
              0 40px 90px -30px rgba(15,123,12,.35);
}
/* numero como etiqueta AR flotante */
.step__num {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-bottom: 2rem;
  font-size: clamp(4rem, 7vw, 5.5rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.05em;
  background: linear-gradient(120deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 8px 18px rgba(15,123,12,.35));
}
/* contenido interno con su propia capa 3D para mas profundidad */
.step h3 {
  position: relative;
  z-index: 2;
  transform: translateZ(20px);
  font-size: 1.35rem;
  font-weight: 680;
  letter-spacing: -0.02em;
}
.step p {
  position: relative;
  z-index: 2;
  transform: translateZ(34px);
  color: var(--muted);
  line-height: 1.6;
  font-size: .98rem;
}
.step:after { display: none; }
.step:after { display: none; }
.step:hover { transform: none; border-color: transparent; }
.step__num {
  font-size: 5rem;
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.05em;
  background: none;
  -webkit-text-fill-color: var(--border);
  color: var(--border);
  display: block;
  margin-bottom: 1.6rem;
}
.step h3 {
  font-size: 1.2rem;
  font-weight: 620;
  letter-spacing: -0.01em;
}
.step p { color: var(--muted); line-height: 1.55; font-size: 0.98rem; }

/* ============================================================
   CODEBOX
   ============================================================ */
.codebox { border-radius: 3px; border: 1px solid var(--border); }
.codebox code { color: var(--blue); }

/* ============================================================
   CTA + DONATE — tubo de color
   ============================================================ */
[data-theme="light"] .section--cta,
.section--cta {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  margin-inline: min(5vw, 48px);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(24, 32, 20, .04),
              0 30px 60px -30px rgba(16, 30, 8, .25);
}
.section--cta .cta h2,
.section--cta .cta p { color: var(--heading); }
.section--cta .cta p { color: var(--muted); }
.section--cta .cta__buttons .btn--primary {
  background: var(--blue);
  color: #fff;
}
.section--cta .cta__buttons .btn--ghost {
  color: var(--heading);
  border-color: var(--border);
}
.donate-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 3px;
}
.donate-card h2 {
  background: none;
  -webkit-text-fill-color: var(--heading);
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
}

/* ============================================================
   MARQUESINAS LATERALES CRUZADAS (tecnologias)
   ============================================================ */
.tech-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 96px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  background: #ffffff;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
  display: none;
}
.tech-rail--left {
  left: 0;
  border-left: none;
  box-shadow: 8px 0 30px -20px rgba(16, 30, 8, .28);
}
.tech-rail--right {
  right: 0;
  border-right: none;
  box-shadow: -8px 0 30px -20px rgba(16, 30, 8, .28);
}
.tech-rail--left:after,
.tech-rail--right:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background:
    repeating-linear-gradient(0deg, rgba(15,123,12,.06) 0 1px, transparent 1px 28px);
  pointer-events: none;
}

.tech-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  will-change: transform;
}
.tech-rail--left .tech-strip { animation: railDown 26s linear infinite; }
.tech-rail--right .tech-strip { animation: railUp 26s linear infinite; }

@keyframes railDown {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}
@keyframes railUp {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.tech-word {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a5a3e;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  opacity: 0.92;
  transition: opacity .3s;
  -webkit-text-stroke: 0.6px rgba(15, 123, 12, .28);
  text-shadow: 0 1px 0 #fff, 0 -1px 0 rgba(15,123,12,.06);
}
.tech-dot {
  color: #0f7b0c;
  font-size: 1.6rem;
  font-weight: 800;
  opacity: 0.95;
  line-height: 0.4;
}

/* en claro: text blancuzco para contraste sobre fondo claro sutil */
[data-theme="light"] .tech-word {
  color: #8f9b84;
  -webkit-text-stroke: 0.5px rgba(15, 123, 12, .18);
}
[data-theme="light"] .tech-dot { color: #4a7a00; }

/* ocultar en pantallas pequenas para no colisionar */
@media (max-width: 980px) {
  .tech-rail { display: none; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav { backdrop-filter: blur(20px); }
.nav__brand { font-weight: 600; }

/* ============================================================
   MARQUEE GIGANTE (inyectado por redesign.js)
   ============================================================ */
.marquee-band {
  position: relative;
  z-index: 2;
  border-block: 1px solid var(--border);
  overflow: hidden;
  padding: 3.2rem 0;
  margin-block: -1px;
  background: var(--bg);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
[data-theme="light"] .marquee-band {
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(15, 123, 12, .05), transparent 60%),
    var(--bg);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 180s linear infinite;
  will-change: transform;
}
.marquee-item {
  display: inline-flex;
  align-items: baseline;
  gap: 3rem;
  padding-right: 3rem;
  white-space: nowrap;
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--heading);
}
.marquee-item .mk {
  color: transparent;
  -webkit-text-stroke: 1px var(--muted);
  font-weight: 700;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   SCROLL DISSOLVE — blur cuando aparece/sale
   ============================================================ */
.dissolve {
  filter: blur(18px);
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, filter, transform;
}
.dissolve.is-in {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
}
.dissolve.is-out {
  filter: blur(22px);
  opacity: 0;
  transform: translateY(28px);
}

/* reemplazar el reveal generico */
.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ---------- Hero: segunda linea del titulo en italic editorial ---------- */
.hero h1 .gradient-text,
.hero h1 em {
  font-style: italic;
}

/* ---------- Banda inferior marquee ---------- */
.marquee-band--bottom {
  margin-top: 0;
}

/* ============================================================
   MAQUETADORES COMPATIBLES (page builders)
   ============================================================ */
.pb-list {
  margin: 2.2rem 0 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}
.pb-label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.pb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
}
.pb-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .95rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--heading);
  box-shadow: 0 8px 20px -14px rgba(16, 30, 8, .4);
  opacity: 0;
  animation: chipIn .5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.pb-chip:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(15, 123, 12, .4);
  animation: chipPulse 2s ease-in-out infinite;
}
@keyframes chipIn {
  to { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(10px); }
}
@keyframes chipPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(15,123,12,.4); }
  50% { box-shadow: 0 0 0 5px rgba(15,123,12,0); }
}
.pb-chip:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .pb-chip { animation: none; opacity: 1; }
  .pb-chip:before { animation: none; }
}

/* Variante "arriba": lista integrada con la zona alta de la marquesina */
.pb-list--top {
  margin: 0;
  padding: 1.4rem 0 1.6rem;
  border-top: none;
  text-align: center;
  background: transparent;
  background-image: radial-gradient(120% 130% at 50% 0%, rgba(15,123,12,.06), transparent 60%);
}
.pb-list--top .pb-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  margin-bottom: 1.1rem;
}
.pb-list--top .pb-label:before,
.pb-list--top .pb-label:after {
  content: "";
  height: 1px;
  width: clamp(28px, 6vw, 90px);
  background: linear-gradient(90deg, transparent, var(--border));
}
.pb-list--top .pb-label:after {
  background: linear-gradient(90deg, var(--border), transparent);
}
.pb-list--top .pb-chips {
  justify-content: center;
  gap: .65rem;
}
.pb-list--top .pb-chip {
  font-size: .95rem;
  padding: .6rem 1.1rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .hero { padding: 84px 0 64px; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 4rem); }
  .section { padding: 70px 0; }
  .grid-features .card:nth-child(even) { border-right: none; }
  .marquee-band { padding: 1.8rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .dissolve { filter: none; opacity: 1; transform: none; transition: none; }
  .grain::before { animation: none; }
}

/* ============================================================
   CARDS ESTILO JUGADOR DE FÚTBOL (player pick / FUT)
   La cuadricula de caracteristicas ahora se ve como tarjetas
   de jugador: panel "foto" diagonal con los colores del club,
   escudo, estrella rareza y brillo al seleccionar.
   ============================================================ */
.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.15rem;
  border: none;
}
/* corner del logo de la marca para separarlo de la retícula */
.section__head + .grid-features { margin-top: .2rem; }

.grid-features .card {
  display: grid;
  grid-template-columns: 128px 1fr;
  grid-template-rows: auto 1fr;
  align-items: stretch;
  margin: 0;
  padding: 0;
  background:
    linear-gradient(180deg, #ffffff 0%, #f4faf2 100%);
  border: 1px solid rgba(15, 123, 12, .22);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px -18px rgba(15, 80, 10, .45);
  transition: transform .35s cubic-bezier(0.2, 0.9, 0.3, 1.2),
              box-shadow .35s ease, opacity .35s ease;
}
.grid-features .card:nth-child(even) { border-right: 1px solid rgba(15, 123, 12, .22); }

/* panel "foto" del jugador: verde club con corte diagonal */
.grid-features .card__icon {
  grid-area: 1 / 1 / 3 / 2;
  position: relative;
  width: auto;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  border: none;
  border-radius: 0;
  color: #fff;
  background:
    repeating-linear-gradient(-20deg, rgba(255, 255, 255, .06) 0 9px, transparent 9px 20px),
    radial-gradient(120% 90% at 30% 0%, rgba(255, 255, 255, .16), transparent 55%),
    linear-gradient(165deg, #1d8a13 0%, #0f6210 55%, #052c03 100%);
  clip-path: polygon(0 0, 76% 0, 100% 100%, 0 100%);
}
.grid-features .card__icon svg.iconify {
  width: 56px !important;
  height: 56px !important;
  color: #fff !important;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35));
}
/* escudo del club */
.grid-features .card__icon::before {
  content: "I";
  position: absolute;
  top: 10px;
  left: 14px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #d0a71e 55%, #7c5d00);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4), inset 0 0 0 2px rgba(255, 255, 255, .55);
}
/* estrella rareza */
.grid-features .card__icon::after {
  content: "★";
  position: absolute;
  top: 8px;
  right: 14px;
  color: #ffd95e;
  font-size: 15px;
  line-height: 1;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .5);
}

/* franjas diagonales sutiles sobre el cuerpo de la tarjeta */
.grid-features .card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(-32deg, transparent 0 16px, rgba(15, 123, 12, .045) 16px 32px);
  border-radius: inherit;
}

/* texto: nombre (h3) y descripcion (p) a la derecha */
.grid-features .card h3 {
  grid-area: 1 / 2 / 2 / 3;
  align-self: end;
  margin: 0 0 .35rem;
  padding: 0 1.3rem;
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -.01em;
  line-height: 1.15;
  color: #0c3f08;
  background: none;
  -webkit-text-fill-color: #0c3f08;
  -webkit-background-clip: initial;
  background-clip: initial;
  animation: none;
}
.grid-features .card p {
  grid-area: 2 / 2 / 3 / 3;
  align-self: start;
  margin: 0;
  padding: 0 1.3rem 1.4rem;
  max-width: none;
  color: #4b5563;
  font-size: .92rem;
  line-height: 1.5;
}
.grid-features .card p::after {
  content: "";
  display: block;
  height: 3px;
  width: 38px;
  margin-top: .9rem;
  border-radius: 3px;
  background: linear-gradient(90deg, #12a512, rgba(18, 165, 18, .15));
}

/* brillo diagonal al pasar / al seleccionar */
.grid-features .card::before {
  content: "";
  display: block;
  position: absolute;
  top: -45%;
  left: -70%;
  width: 55%;
  height: 190%;
  z-index: 3;
  pointer-events: none;
  transform: skewX(-22deg) translateX(-160%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transition: transform .85s ease;
}
.grid-features .card:hover::before {
  transform: skewX(-22deg) translateX(360%);
}

/* hover = "levantas el jugador": movimiento sutil, sin seleccion */
.grid-features .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -22px rgba(15, 80, 10, .55);
  background: linear-gradient(180deg, #ffffff 0%, #eef8ea 100%);
}

/* fin: sin seleccion - solo movimiento sutil */

@media (prefers-reduced-motion: reduce) {
  .grid-features .card::before { transition: none; transform: none; }
  .grid-features .card { transition: none; }
}

/* pantallas angostas: panel mas angosto */
@media (max-width: 520px) {
  .grid-features { grid-template-columns: 1fr; }
  .grid-features .card { grid-template-columns: 96px 1fr; }
}

/* ============================================================
   GALERÍA "EN ACCIÓN" — capturas webp del plugin
   Marco tipo ventana (barra superior) + imagen contenida
   ============================================================ */
.shots-section { padding: 110px 0; }
.shots-tag {
  display: inline-flex;
  padding: .35rem .9rem;
  margin-bottom: 1.1rem;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #0c3f08;
  background: linear-gradient(135deg, #ffe98a, #d4af37);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 6px 18px -10px rgba(122, 94, 0, .5);
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  align-items: start;
}
.shot {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(15, 123, 12, .16);
  border-radius: 18px;
  padding: .8rem .8rem 1.1rem;
  box-shadow: 0 22px 50px -30px rgba(15, 80, 10, .55);
  cursor: pointer;
  transition: transform .4s cubic-bezier(0.2, 0.9, 0.3, 1.12),
              box-shadow .4s ease, border-color .3s ease;
}
.shot--wide { grid-column: 1 / -1; }
.shot__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background:
    repeating-linear-gradient(-20deg, rgba(15, 123, 12, .05) 0 9px, transparent 9px 20px),
    #eef6ea;
  border: 1px solid rgba(15, 123, 12, .14);
}
.shot--wide .shot__frame { aspect-ratio: 19 / 10; }
.shot__bar {
  display: flex;
  align-items: center;
  gap: .55rem;
  height: 30px;
  padding: 0 .7rem;
  background: linear-gradient(180deg, #fdfdfc, #eef1eb);
  border-bottom: 1px solid rgba(15, 123, 12, .12);
}
.shot__dots { display: inline-flex; gap: 5px; }
.shot__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5f57;
}
.shot__dots i:nth-child(2) { background: #febc2e; }
.shot__dots i:nth-child(3) { background: #28c840; }
.shot__bar-label {
  margin-left: .35rem;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #93a08e;
}
.shot__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .6s cubic-bezier(0.2, 0.9, 0.3, 1.05);
  will-change: transform;
}
.shot__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  background: rgba(5, 30, 3, .62);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transform: scale(.7) rotate(-10deg);
  transition: opacity .25s ease, transform .25s ease;
}
.shot:hover .shot__zoom {
  opacity: 1;
  transform: scale(1) rotate(0);
}
.shot figcaption {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  padding: .95rem .35rem 0;
}
.shot figcaption strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #0c3f08;
}
.shot figcaption span {
  font-size: .85rem;
  color: #7c8a77;
  line-height: 1.4;
}
.shot:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, .7);
  box-shadow: 0 34px 66px -30px rgba(15, 80, 10, .65),
              0 0 0 2px rgba(212, 175, 55, .5);
}
.shot:hover .shot__frame img {
  transform: scale(1.02);
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 12, 1, .82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: lbIn .28s ease;
}
@keyframes lbIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox__inner {
  position: relative;
  max-width: min(1180px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  animation: lbPop .38s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
@keyframes lbPop {
  from { transform: translateY(14px) scale(.96); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.lightbox__inner img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  border: 1px solid rgba(255, 255, 255, .2);
}
.lightbox__caption {
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  color: #0c3f08;
  background: linear-gradient(135deg, #ffe98a, #d4af37);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .4);
  transition: transform .2s ease;
}
.lightbox__close:hover { transform: scale(1.1); }

@media (prefers-reduced-motion: reduce) {
  .shot, .shot img, .lightbox, .lightbox__inner { transition: none; animation: none; transform: none; }
}

@media (max-width: 760px) {
  .shots { grid-template-columns: 1fr; gap: 1.2rem; }
  .shot--wide { grid-column: 1; }
  .shot--std { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {}
