:root {
  --bg: #0b0b0c;
  --ink: #ffffff;
  --muted: #cbd5e1;
  --primary: #e11d48;
  --accent: #111827;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--ink);
}
a {
  color: #fff;
  text-decoration: none;
}

/* Botón hamburguesa: oculto por defecto en desktop */
.menu-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
}

/* ===== Base existente (sin cambios importantes) ===== */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  backdrop-filter: saturate(160%) blur(8px);
  background: var(--lo-framer-grad) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
header.nav img {
  height: 28px;
}

/* ===== Botón hamburguesa animado ===== */
.menu-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0.25rem;
  width: 40px;
  height: 40px;
  position: relative;
  cursor: pointer;
}
.menu-toggle .bar {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease,
    top 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.menu-toggle .bar:nth-child(1) {
  top: 12px;
}
.menu-toggle .bar:nth-child(2) {
  top: 19px;
}
.menu-toggle .bar:nth-child(3) {
  top: 26px;
}
.menu-toggle.is-open .bar:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.menu-toggle.is-open .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open .bar:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    z-index: 1100;
  } /* botón visible y arriba */
  header.nav {
    z-index: 1200;
  }

  /* Overlay full-screen del menú */
  header.nav nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1150;
    padding: 88px 24px 24px;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35),
        rgba(0, 0, 0, 0.65)
      ),
      var(--lo-framer-grad);
    backdrop-filter: saturate(160%) blur(10px);
    flex-direction: column;
    gap: 0.5rem;
  }
  header.nav nav.open {
    display: flex;
    animation: revealPanel 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-origin: top;
  }

  /* Enlaces grandes + stagger */
  header.nav nav a {
    color: #fff;
    font-size: 1.125rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(6px) scale(0.98);
    opacity: 0;
    animation: itemIn 600ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  }
  header.nav nav a:nth-child(1) {
    animation-delay: 0.08s;
  }
  header.nav nav a:nth-child(2) {
    animation-delay: 0.16s;
  }
  header.nav nav a:nth-child(3) {
    animation-delay: 0.24s;
  }
  header.nav nav a:hover {
    background: rgba(255, 255, 255, 0.16);
  }

  @keyframes revealPanel {
    0% {
      opacity: 0;
      transform: scaleY(0.86);
    }
    60% {
      opacity: 1;
      transform: scaleY(1.03);
    }
    100% {
      opacity: 1;
      transform: scaleY(1);
    }
  }
  @keyframes itemIn {
    0% {
      opacity: 0;
      transform: translateY(10px) scale(0.96);
    }
    60% {
      opacity: 1;
      transform: translateY(-2px) scale(1.01);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

/* Accesible: respeta usuarios sin animaciones */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 6rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  margin: 0.5rem 0;
  background: linear-gradient(90deg, #fff, var(--primary));
  -webkit-background-clip: text;
  color: transparent;
}
.hero p {
  color: var(--muted);
}
.hero .video-wrap {
  aspect-ratio: 16/9;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.card h3 {
  margin: 0.25rem 0 0;
}
.kpi {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}
.strip .ph {
  aspect-ratio: 3/4;
  background: linear-gradient(180deg, #27272a, #0b0b0c);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
.strip .ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(225, 29, 72, 0.08));
}

.footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #94a3b8;
}
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s, transform 0.8s;
}
[data-animate].in {
  opacity: 1;
  transform: none;
}

/* ====== Paleta y gradiente como Anchor pero en rojo ====== */
:root {
  --bg: #0b0b0c;
  --ink: #ffffff;
  --muted: #cbd5e1;
  --primary: #e11d48; /* rojo principal */
  --accent: #111827; /* gris carbón para fondos oscuros */
  --lo-framer-grad: linear-gradient(135deg, #e11d48 0%, #7f1d1d 100%);
}

/* ====== Igualamos elementos del HERO de Anchor ====== */
.logo-revolution {
  display: block;
  height: 70px;
  margin: 1rem 0 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(
    90deg,
    rgba(225, 29, 72, 0.22),
    rgba(255, 255, 255, 0.04)
  );
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
  color: #fff;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.75rem;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--lo-framer-grad);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

/* Igual que Anchor: video vertical disponible */
.video-wrap.vertical {
  aspect-ratio: 9/16;
  max-height: 90vh;
}
.video-wrap.vertical video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}

/* ====== Animaciones como Anchor (data-anim) ====== */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-animate].in {
  opacity: 1;
  transform: none;
}

[data-anim="fade-up"] {
  transform: translateY(28px);
}
[data-anim="fade-up"].in {
  transform: none;
}

[data-anim="zoom-in"] {
  transform: scale(0.96);
}
[data-anim="zoom-in"].in {
  transform: scale(1);
}

[data-anim="slide-right"] {
  transform: translateX(-24px);
}
[data-anim="slide-right"].in {
  transform: none;
}

/* === Layout genérico igual a Anchor === */
.section {
  width: min(1100px, 92%);
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 4rem) 0;
}
.section.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr; /* texto + imagen */
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
}
@media (max-width: 960px) {
  .section.grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Tarjeta igualita al estilo Anchor pero con paleta rojo/negro/blanco */
.card {
  background: #0b0b0c;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem 1.25rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

/* === Collage tipo "stack" (idéntico a Anchor) === */
.img-stack {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
}
.img-stack .stack {
  position: absolute;
  width: clamp(220px, 32vw, 360px);
  height: auto;
  border-radius: 16px;
  border: 2px solid rgba(225, 29, 72, 0.65); /* rojo */
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  will-change: transform, opacity;
}
.img-stack .stack.one {
  transform: rotate(-6deg) translate(-6%, -6%);
  z-index: 3;
}
.img-stack .stack.two {
  transform: rotate(3deg) translate(6%, 2%);
  z-index: 2;
}
.img-stack .stack.three {
  transform: rotate(-2deg) translate(4%, 10%);
  z-index: 1;
}
@media (max-width: 900px) {
  .img-stack .stack {
    width: clamp(200px, 44vw, 320px);
  }
}

/* === Animaciones (mismo sistema data-animate/data-anim que Anchor) === */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-animate].in {
  opacity: 1;
  transform: none;
}

/* variantes */
[data-anim="fade-up"] {
  transform: translateY(28px);
}
[data-anim="fade-up"].in {
  transform: none;
}

[data-anim="zoom-in"] {
  transform: scale(0.96);
}
[data-anim="zoom-in"].in {
  transform: scale(1);
}

[data-anim="slide-right"] {
  transform: translateX(-24px);
}
[data-anim="slide-right"].in {
  transform: none;
}

/* --- Grid "reverse" idéntico a Anchor --- */
.section {
  width: min(1100px, 92%);
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 4rem) 0;
}
.section.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
}
.section.grid-2.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}
.section.grid-2.reverse > :first-child {
  order: 2;
} /* imagen a la derecha en desktop */
.section.grid-2.reverse > :last-child {
  order: 1;
}
@media (max-width: 960px) {
  .section.grid-2,
  .section.grid-2.reverse {
    grid-template-columns: 1fr;
  }
  .section.grid-2.reverse > * {
    order: initial;
  }
}

/* --- Tarjeta (paleta negro/blanco/rojo) --- */
.card {
  background: #0b0b0c;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

/* --- Collage "stack" con proximidad/hover (se separan al acercar el mouse) --- */
.img-col {
  display: grid;
  place-items: center;
}
.img-stack {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
}
.img-stack .stack {
  position: absolute;
  width: clamp(220px, 32vw, 360px);
  height: auto;
  border-radius: 16px;
  border: 2px solid rgba(225, 29, 72, 0.65); /* rojo */
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  will-change: transform, opacity;
  /* Estado INICIAL (juntas) */
  opacity: 0.65;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Stagger */
.img-stack .one {
  transition-delay: 40ms;
}
.img-stack .two {
  transition-delay: 120ms;
}
.img-stack .three {
  transition-delay: 200ms;
}

/* Estado ACTIVO: hover/focus/proximidad */
.img-stack.near .stack,
.img-stack:hover .stack,
.img-stack:focus-within .stack {
  opacity: 1;
}

.img-stack.near .one,
.img-stack:hover .one,
.img-stack:focus-within .one {
  transform: rotate(-6deg) translate(-8%, -10%);
  z-index: 3;
}
.img-stack.near .two,
.img-stack:hover .two,
.img-stack:focus-within .two {
  transform: rotate(3deg) translate(8%, 4%);
  z-index: 2;
}
.img-stack.near .three,
.img-stack:hover .three,
.img-stack:focus-within .three {
  transform: rotate(-2deg) translate(6%, 12%);
  z-index: 1;
}

@media (max-width: 900px) {
  .img-stack .stack {
    width: clamp(200px, 44vw, 320px);
  }
}

/* --- Sistema de animaciones Anchor-like para las cards --- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-animate].in {
  opacity: 1;
  transform: none;
}
[data-anim="fade-up"] {
  transform: translateY(28px);
}
[data-anim="fade-up"].in {
  transform: none;
}

/* Paleta general */
:root {
  --primary: #e11d48; /* rojo */
  --ink: #ffffff; /* texto claro */
  --bg-dark: #0b0b0c; /* fondo oscuro */
  --muted: #cbd5e1; /* subtítulos */
}

/* Sección estilo Anchor pero en rojo/oscuro */
.section-blue {
  background: radial-gradient(
      1200px 600px at 80% -20%,
      rgba(225, 29, 72, 0.25),
      transparent 60%
    ),
    linear-gradient(180deg, #0b0b0c 0%, #111827 100%);
  color: var(--ink);
  padding: clamp(2rem, 4vw, 4rem) 0;
}
.section-blue .inner {
  width: min(1100px, 92%);
  margin-inline: auto;
}

.title-with-bg {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.title-logo {
  height: 38px;
  width: auto;
}

.subtitle {
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Grid de pilares igual al de principios */
.principios-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2.2vw, 18px);
  margin-top: clamp(1rem, 2.5vw, 2rem);
}
@media (max-width: 960px) {
  .principios-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .principios-grid {
    grid-template-columns: 1fr;
  }
}

/* Tarjetas (idéntico estilo, nueva paleta) */
.valor-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.valor-card:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 29, 72, 0.55);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

/* Iconos */
.valor-card .icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.3);
}
.valor-card .icon svg {
  width: 20px;
  height: 20px;
  fill: var(--primary);
}

/* Animaciones (igual que Anchor) */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-animate].in {
  opacity: 1;
  transform: none;
}
[data-anim="fade-up"] {
  transform: translateY(28px);
}
[data-anim="fade-up"].in {
  transform: none;
}

/* Grid moderno (cuadrado, responsivo) */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 18px);
  margin-top: clamp(1rem, 2.5vw, 2rem);
}
@media (max-width: 1100px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 820px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

/* Tarjetas cuadradas, estilo framer, sin listas */
.pillar-card {
  position: relative;
  aspect-ratio: 1 / 1; /* cuadradas */
  background: #0b0b0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  /* esquinas: si las quieres 100% rectas, pon 0 */
  border-radius: 8px;
  overflow: hidden;
  transform: translateY(18px) scale(0.96);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease,
    box-shadow 0.3s ease, filter 0.3s ease;
}
.pillar-card .pc-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(16px, 2.5vw, 22px);
  gap: 0.55rem;
  z-index: 2;
}
.pillar-card h4 {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #fff;
}
.pillar-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.45;
}

/* Icono en píldora */
.pc-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.35);
}
.pc-icon svg {
  width: 20px;
  height: 20px;
  fill: #e11d48;
}

/* Highlight dinámico tipo framer (radial siguiendo el mouse) */
.pillar-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(
    350px 200px at var(--mx, 50%) var(--my, 50%),
    rgba(225, 29, 72, 0.18),
    transparent 60%
  );
  filter: blur(18px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pillar-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04),
      transparent 40%
    ),
    linear-gradient(0deg, rgba(255, 255, 255, 0.02), transparent 30%);
  pointer-events: none;
}

/* Estado visible al entrar (scroll) */
.pillars-grid.in .pillar-card {
  opacity: 1;
  transform: none;
}

/* Hover / tilt 3D suave */
.pillar-card:hover {
  border-color: rgba(225, 29, 72, 0.55);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}
.pillar-card:hover::before {
  opacity: 0.8;
}

/* Transform controlado por JS (—rx / —ry) */
.pillar-card[data-tilt] {
  transform-style: preserve-3d;
}
.pillar-card[data-tilt].tilting {
  transform: perspective(900px) rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg)) translateZ(0) scale(1.02);
}

/* Animaciones de entrada (si no las tienes globales) */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-animate].in {
  opacity: 1;
  transform: none;
}

/* Accesibilidad: reducir movimiento */
@media (prefers-reduced-motion: reduce) {
  .pillar-card,
  [data-animate] {
    transition: none !important;
    transform: none !important;
  }
}

/* Grid contenedor (idéntico patrón) */
.enc-face-grid {
  width: min(1100px, 92%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 2vw, 18px);
}

/* Tarjeta flip moderna en negro/blanco/rojo */
.enc-face-card {
  position: relative;
  min-height: 340px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(
      900px 420px at 85% -20%,
      rgba(225, 29, 72, 0.18),
      transparent 60%
    ),
    linear-gradient(180deg, #0b0b0c 0%, #111827 100%);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.enc-face-card:hover {
  border-color: rgba(225, 29, 72, 0.55);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.5);
}

.enc-face-card .face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 2.5vw, 24px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s;
}

/* Cara frontal (estado inicial visible) */
.enc-face-card .face2 {
  opacity: 1;
  transform: none;
  text-align: center;
}
.enc-title {
  color: #fff;
  margin: 0;
  font-weight: 900;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  line-height: 1.2;
}
.enc-title .thin {
  font-weight: 700;
  opacity: 0.9;
}
.enc-title .muted {
  font-weight: 700;
  color: #e11d48;
}

/* Cara con contenido (oculta al inicio) */
.enc-face-card .face1 {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
}
.enc-face-card .content {
  max-width: 62ch;
  text-align: left;
}
.enc-face-card .content p {
  margin: 0 0 1rem 0;
  color: #cbd5e1;
  line-height: 1.5;
}
.btn-enc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #e11d48 0%, #7f1d1d 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.btn-enc:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

/* Flip suave (hover/foco): intercambia caras */
.enc-face-card:hover .face2,
.enc-face-card:focus-within .face2 {
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  filter: blur(0.5px);
}
.enc-face-card:hover .face1,
.enc-face-card:focus-within .face1 {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Entrada “fade-up” si usas el sistema data-animate */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-animate].in {
  opacity: 1;
  transform: none;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .enc-face-card,
  .enc-face-card .face,
  [data-animate] {
    transition: none !important;
    transform: none !important;
  }
}

/* Grid centrada y columnas fluidas */
.projects-grid.center {
  width: min(1100px, 92%);
  margin: clamp(1rem, 2.5vw, 2rem) auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
  place-content: center; /* centra el conjunto */
  justify-items: center; /* centra cada card en su celda */
  gap: clamp(12px, 2vw, 18px);
}

/* Card centrada con animación tipo Framer (pop-in + glow + tilt) */
.project-card {
  position: relative;
  width: 100%;
  text-align: center;
  background: #0b0b0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: clamp(18px, 2.4vw, 24px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  cursor: pointer;

  /* estado inicial para pop-in */
  opacity: 0;
  transform: translateY(22px) scale(0.94);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.projects-grid.in .project-card {
  animation: card-pop 0.85s cubic-bezier(0.2, 0.8, 0.16, 1) forwards;
}
.projects-grid.in .project-card:nth-child(1) {
  animation-delay: 0s;
}
.projects-grid.in .project-card:nth-child(2) {
  animation-delay: 0.06s;
}
.projects-grid.in .project-card:nth-child(3) {
  animation-delay: 0.12s;
}
.projects-grid.in .project-card:nth-child(4) {
  animation-delay: 0.18s;
}
.projects-grid.in .project-card:nth-child(5) {
  animation-delay: 0.24s;
}

@keyframes card-pop {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.94);
  }
  60% {
    opacity: 1;
    transform: translateY(0) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Glow dinámico que sigue el mouse */
.project-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(
    340px 180px at var(--mx, 50%) var(--my, 50%),
    rgba(225, 29, 72, 0.16),
    transparent 60%
  );
  filter: blur(18px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.project-card:hover::before {
  opacity: 0.85;
}

/* Tilt suave al hover (controlado por variables CSS) */
.project-card {
  transform-style: preserve-3d;
}
.project-card.tilting {
  transform: perspective(900px) rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg)) translateZ(0);
}

/* Icono monocromo rojo */
.pc-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin: 0 auto 0.65rem;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.35);
}
.pc-icon svg {
  width: 24px;
  height: 24px;
  fill: #e11d48;
}

.project-card h4 {
  margin: 0.15rem 0 0.35rem;
  color: #fff;
  font-weight: 900;
}
.project-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.45;
}

/* Hover depth */
.project-card:hover {
  border-color: rgba(225, 29, 72, 0.55);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}

/* Modal (si ya lo tienes, mantén tus estilos) */
.modal[aria-hidden="true"] {
  display: none;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 92%);
  background: #0b0b0c;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: clamp(18px, 2.2vw, 28px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  animation: modal-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes modal-in {
  to {
    opacity: 1;
    transform: none;
  }
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Quitar viñetas/puntos en nuestras grids/listas */
.projects-grid,
.pillars-grid,
.principios-grid,
.enc-face-grid,
.section-blue ul,
.section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Por si algún <li> hereda marcador */
.project-card,
.pillar-card,
.valor-card {
  list-style: none;
}

/* (Si aún usas una lista interna .items y no quieres viñetas) */
.valor-card .items {
  list-style: none;
  margin: 0.15rem 0 0;
  padding-left: 0;
}

/* ===== Carrusel: contenedor y pista ===== */
.ts-wrap {
  position: relative;
  width: min(1100px, 92%);
  margin: clamp(1rem, 2.5vw, 2rem) auto 0;
}

.ts-track {
  list-style: none;
  margin: 0;
  padding: clamp(10px, 1.5vw, 14px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(
    280px,
    90vw,
    520px
  ); /* responsive: móvil → desktop */
  gap: clamp(12px, 2vw, 18px);
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ts-track::-webkit-scrollbar {
  display: none;
}

/* ===== Cards con efecto Framer (scale/blur/mask + glow) ===== */
.ts-card {
  scroll-snap-align: center;
  position: relative;
  background: #0b0b0c; /* negro */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  padding: clamp(18px, 2.2vw, 26px);
  color: #e5e7eb;
  outline: none;

  /* variables controladas por JS según distancia al centro */
  --d: 1;
  --scale: calc(1 - min(var(--d), 1) * 0.08);
  --blur: calc(min(var(--d), 1) * 2px);
  --mask: calc(min(var(--d), 1) * 18%);

  transform: scale(var(--scale));
  filter: blur(var(--blur));
  clip-path: inset(var(--mask) 0 var(--mask) 0 round 14px);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.ts-card:focus-visible {
  border-color: rgba(225, 29, 72, 0.8);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.35), 0 16px 42px rgba(0, 0, 0, 0.45);
}

/* Glow siguiendo el mouse (rojo) */
.ts-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(
    360px 180px at var(--mx, 50%) var(--my, 50%),
    rgba(225, 29, 72, 0.16),
    transparent 60%
  ); /* rojo */
  filter: blur(18px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.ts-card:hover::before {
  opacity: 0.9;
}

/* Texto dentro de la card */
.ts-quote {
  margin: 0 0 0.8rem 0;
  line-height: 1.55;
  position: relative;
  padding-left: 1.25rem;
  color: #f3f4f6;
}
.ts-quote::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -0.2rem;
  color: #e11d48;
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1; /* rojo */
}
.ts-author {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.ts-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.35);
  color: #fff;
  font-weight: 900;
}

/* ===== Flechas ===== */
.ts-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(225, 29, 72, 0.12);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
    background 0.2s ease;
}
.ts-arrow.left {
  left: -4px;
}
.ts-arrow.right {
  right: -4px;
}
.ts-arrow:hover {
  border-color: rgba(225, 29, 72, 0.55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  background: rgba(225, 29, 72, 0.18);
  transform: translateY(-50%) scale(1.04);
}
@media (max-width: 520px) {
  .ts-arrow {
    display: none;
  } /* opcional: en móvil solo swipe */
}

/* ===== Entrada general de secciones (si no la tienes) ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-animate].in {
  opacity: 1;
  transform: none;
}

/* ===== Reduce motion ===== */
@media (prefers-reduced-motion: reduce) {
  .ts-card {
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }
  [data-animate] {
    transition: none !important;
    transform: none !important;
  }
}

/* ====== Layout general de la línea de tiempo ====== */
.vtl {
  width: min(1100px, 92%);
  margin-inline: auto;
}
/* Asegura el grid (ajusta tus columnas reales si difieren) */
.vtl-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 24px minmax(0, 720px);
  grid-auto-rows: auto;
  align-items: start;
  /* opcional: separar del H2 */
  row-gap: 24px;
}

/* Columna izquierda: que abarque todas las filas y se estire en alto */
.vtl-left {
  grid-column: 1;
  grid-row: 1 / -1; /* <-- ocupa toda la altura del grid */
  align-self: stretch;
  display: flex; /* <-- clave para centrar verticalmente */
  align-items: center; /* <-- centra verticalmente el contenido */
}

/* El bloque con los títulos: sin sticky para centrar respecto al grid, no al viewport */
.vtl-sticky {
  position: static; /* quita sticky */
  transform: none; /* limpia traslados previos */
  top: auto; /* limpia top previo */
  margin-block: auto; /* garantiza centrado si cambia el alto interno */
}

/* Rail central: que también abarque todas las filas */
.vtl-rail {
  grid-column: 2;
  grid-row: 1 / -1;
}

/* Puntos (columna central) y paneles (columna derecha) */
.vtl-center {
  grid-column: 2;
}
.vtl-panel {
  grid-column: 3;
}

/* Un poco de espacio bajo el H2 para evitar traslapes visuales iniciales */
#linea-tiempo-revolution .inner {
  margin-bottom: 16px;
}

.vtl-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cbd5e1;
}
#vtl-current {
  margin: 0;
  color: #fff;
  font-weight: 900;
  line-height: 1.12;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.2px;
}
#vtl-step {
  color: #9ca3af;
}

/* Centro: rail + progreso continuo */
.vtl-rail {
  grid-column: 2;
  grid-row: 1 / -1;
  position: relative;
}
.vtl-rail::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.08)
  );
}
.vtl-progress {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 4px;
  height: 0%;
  background: linear-gradient(180deg, #e11d48, #7f1d1d);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(225, 29, 72, 0.5);
  transition: height 0.2s ease;
}

/* Punto por fila */
.vtl-center {
  grid-column: 2;
  position: relative;
  display: grid;
  place-items: center;
}
.vtl-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #0b0b0c;
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 1;
  transition: transform 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease, background 0.25s ease;
}
.vtl-dot.active {
  background: #e11d48;
  border-color: #e11d48;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.25), 0 12px 28px rgba(0, 0, 0, 0.5);
  transform: scale(1.15);
}

/* Derecha: tarjetas (enfoque/desenfoque tipo Framer) */
.vtl-panel {
  grid-column: 3;
  background: #0b0b0c;
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: clamp(16px, 2.2vw, 22px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  will-change: filter, transform, opacity, border-color;

  /* factor de enfoque (0..1) — lo setea el JS */
  --focus: 0;

  /* ESTADO: por defecto desenfocado (otros pasos) */
  transform: scale(calc(0.96 + var(--focus) * 0.06));
  filter: blur(calc((1 - var(--focus)) * 3px))
    saturate(calc(0.75 + var(--focus) * 0.25))
    brightness(calc(0.85 + var(--focus) * 0.15));
  opacity: calc(0.55 + var(--focus) * 0.45);

  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Panel activo: borde y sombra más fuertes */
.vtl-panel.active {
  border-color: rgba(225, 29, 72, 0.6);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}

/* Glow/tilt suave */
.vtl-panel {
  transform-style: preserve-3d;
}
.vtl-panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    380px 220px at var(--mx, 50%) var(--my, 50%),
    rgba(225, 29, 72, 0.16),
    transparent 60%
  );
  filter: blur(18px);
  transition: opacity 0.25s ease;
}
.vtl-panel:hover::before {
  opacity: 0.9;
}
.vtl-panel h4 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-weight: 900;
}
.vtl-panel p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.5;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .vtl-grid {
    grid-template-columns: 1fr 28px 1fr; /* título arriba, rail, tarjetas */
  }
  .vtl-left {
    grid-column: 1 / -1;
    margin-bottom: 0.75rem;
  }
  .vtl-sticky {
    position: relative;
    top: 0;
    transform: none;
  }
}
@media (max-width: 640px) {
  .vtl-grid {
    grid-template-columns: 22px 1fr; /* rail a la izquierda, tarjetas a la derecha */
  }
  .vtl-left {
    grid-column: 1 / -1;
  }
  .vtl-rail {
    grid-column: 1;
    grid-row: 2 / -1;
  }
  .vtl-center {
    grid-column: 1;
  }
  .vtl-panel {
    grid-column: 2;
  }
}

/* ===== Animación de entrada genérica (si no la tienes) ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-animate].in {
  opacity: 1;
  transform: none;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .vtl-panel,
  [data-animate] {
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}

/* ===== Contenedor ===== */
.vol-wrap {
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* ===== Meta bar ===== */
.vol-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(10px, 2vw, 16px);
  background: #0b0b0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: clamp(12px, 2vw, 16px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  margin-bottom: clamp(16px, 2.4vw, 22px);
}
.vm-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #e5e7eb;
}
.vm-item svg {
  width: 18px;
  height: 18px;
  fill: #e11d48;
  flex: 0 0 auto;
}

/* ===== Grid de equipos ===== */
.vol-grid.center {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  gap: clamp(12px, 2vw, 18px);
  justify-content: center;
  justify-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ===== Tarjeta equipo ===== */
.vol-card {
  position: relative;
  width: 100%;
  background: #0b0b0c;
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: clamp(16px, 2.2vw, 22px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  transform-style: preserve-3d;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.vol-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    360px 200px at var(--mx, 50%) var(--my, 50%),
    rgba(225, 29, 72, 0.16),
    transparent 60%
  );
  filter: blur(18px);
  transition: opacity 0.25s ease;
}
.vol-card:hover::before {
  opacity: 0.9;
}
.vol-card:hover {
  border-color: rgba(225, 29, 72, 0.55);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}

.vol-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}
.v-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.35);
  flex: 0 0 auto;
}
.v-icon svg {
  width: 22px;
  height: 22px;
  fill: #e11d48;
}
.vol-card h4 {
  margin: 0;
  color: #fff;
  font-weight: 900;
}
.v-desc {
  margin: 0.25rem 0 0.6rem;
  color: #cbd5e1;
  line-height: 1.45;
}

/* Toggle */
.vol-toggle {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 800;
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.vol-toggle:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* Roles (acordeón) */
.vol-roles {
  overflow: hidden;
  transition: grid-template-rows 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.35s ease;
}
.vol-roles[hidden] {
  display: block !important;
  grid-template-rows: 0fr;
  opacity: 0;
}
.vol-roles:not([hidden]) {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 0.6rem;
}
.vol-roles > * {
  overflow: hidden;
}

.roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chip {
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.35);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

/* CTA */
.vol-cta {
  margin-top: clamp(18px, 2.6vw, 26px);
  background: #0b0b0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: clamp(16px, 2.4vw, 24px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}
.vol-cta h3 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-weight: 900;
}
.vol-cta p {
  margin: 0.25rem 0;
  color: #e5e7eb;
}
.vol-cta .quote {
  color: #cbd5e1;
  font-style: italic;
}
.btn-vol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.6rem;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  background: linear-gradient(135deg, #e11d48 0%, #7f1d1d 100%);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-vol:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5);
}

/* Entrada genérica si no existiera */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-animate].in {
  opacity: 1;
  transform: none;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .vol-roles,
  .vol-card,
  [data-animate] {
    transition: none !important;
    transform: none !important;
  }
}

/* ===== Modal base ===== */
.modal[aria-hidden="true"] {
  display: none;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 92%);
  background: #0b0b0c;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  animation: modal-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes modal-in {
  to {
    opacity: 1;
    transform: none;
  }
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0.85;
}
.modal-close:hover {
  opacity: 1;
}
.modal-sub {
  color: #cbd5e1;
  margin: 0.2rem 0 1rem;
}

/* ===== Form ===== */
.form-grid {
  display: grid;
  gap: clamp(12px, 2vw, 16px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.field-full {
  grid-column: 1 / -1;
}

.field label,
.field .label {
  display: block;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}
.field input[type="text"],
.field input[type="number"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  outline: none;
  background: #0f1115;
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(225, 29, 72, 0.65);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.25);
}
.field-error {
  display: block;
  min-height: 1.1em;
  color: #fda4af;
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.35);
  color: #fff;
  font-weight: 700;
}
.check input {
  accent-color: #e11d48;
  inline-size: 1rem;
  block-size: 1rem;
}

.form-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 0.6rem;
}
.btn-primary,
.btn-secondary {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  font-weight: 900;
  padding: 0.9rem 1.2rem;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #e11d48 0%, #7f1d1d 100%);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
}
.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5);
}

/* ===== Éxito ===== */
.success-state {
  text-align: center;
}
.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.35);
  color: #e11d48;
  font-size: 1.6rem;
  font-weight: 900;
}

/* Responsive */
@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

:root {
  --rev-red: #e11d48;
}

/* ==== FULL-BLEED: ocupa todo el ancho de pantalla ==== */
.gallery--full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ==== Masonry sin espacios, igual a Anchor pero sin gutters ==== */
.rev-gallery {
  columns: 1;
  column-gap: 0;
  line-height: 0; /* evita “grietas” entre imgs inline */
}
@media (min-width: 700px) {
  .rev-gallery {
    columns: 2;
  }
}
@media (min-width: 1024px) {
  .rev-gallery {
    columns: 3;
  }
}
@media (min-width: 1440px) {
  .rev-gallery {
    columns: 4;
  }
}

.rev-gallery .gallery-link {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin: 0; /* sin separaciones */
  border: 0;
}
.rev-gallery .gallery-image {
  position: relative;
  border: 0; /* sin bordes */
  border-radius: 0; /* sin esquinas */
  box-shadow: none; /* sin sombras entre piezas */
  overflow: hidden;
}
.rev-gallery img {
  display: block;
  width: 100%;
  height: auto;
  transform: none; /* sin escalado por defecto */
}

/* Caption como overlay (no añade espacio) */
.rev-gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.6rem 0.75rem;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
  font-size: 0.95rem;
  line-height: 1.1rem;
}

/* Hover sutil (sin alterar layout) */
.rev-gallery .gallery-image:hover img {
  filter: brightness(1.06);
}

/* ==== Lightbox FULLSCREEN ==== */
.rev-modal[aria-hidden="true"] {
  display: none;
}
.rev-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
}
.rev-modal .lo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}
.rev-modal .lo-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.lo-modal__img {
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
}
.lo-modal__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75));
}

/* Botones */
.lo-modal__btn {
  position: absolute;
  display: grid;
  place-items: center;
  cursor: pointer;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(225, 29, 72, 0.12);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
    background 0.2s ease;
}
.lo-modal__btn:hover {
  border-color: rgba(225, 29, 72, 0.55);
  background: rgba(225, 29, 72, 0.18);
  transform: scale(1.05);
}
.lo-modal__close {
  top: 16px;
  right: 18px;
}
.lo-modal__arrow--prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.lo-modal__arrow--next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .rev-gallery img {
    transition: none !important;
  }
}

:root {
  --rev-red: #e11d48;
}

.site-footer {
  background: #0b0b0c;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  padding: clamp(22px, 3vw, 36px) 0 0;
}

.footer-inner {
  width: min(1100px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.6fr 0.8fr;
  gap: clamp(16px, 3vw, 32px);
  align-items: start;
}

.footer-brand img {
  width: 150px;
  height: auto;
  display: block;
  margin-bottom: 0.6rem;
}
.footer-brand p {
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
}

.footer-links h4,
.footer-contact h4 {
  margin: 0.2rem 0 0.6rem;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-links a,
.footer-contact a {
  color: #e5e7eb;
  text-decoration: none;
  position: relative;
  outline: 0;
}
.footer-links a:hover,
.footer-contact a:hover {
  color: #fff;
}
.footer-links a:focus-visible,
.footer-contact a:focus-visible {
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.28);
  border-radius: 6px;
}

.footer-links a[aria-current="page"] {
  color: #fff;
  font-weight: 800;
}
.footer-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--rev-red);
  border-radius: 999px;
}

.footer-contact ul li {
  color: #cbd5e1;
}

.social {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.social a {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.35);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
    background 0.2s ease;
}
.social a:hover {
  background: rgba(225, 29, 72, 0.18);
  border-color: rgba(225, 29, 72, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.footer-bottom {
  margin-top: clamp(18px, 3vw, 28px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.8rem 0;
}
.footer-bottom p {
  width: min(1100px, 92%);
  margin: 0.2rem auto 0;
  color: #9ca3af;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 860px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-links,
  .footer-contact {
    padding-top: 0.4rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
  }
}

/* Animación de entrada (si usas data-animate global) */
.site-footer[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.site-footer[data-animate].in {
  opacity: 1;
  transform: none;
}

/* === ARO LED ALREDEDOR DEL VIDEO (rojo/negro, responsive) === */
.video-led-ring {
  /* Ajustes rápidos */
  --ring: 5px; /* grosor visible del aro */
  --radius: 22px; /* mismo radio visual del video */
  --speed: 5s; /* velocidad de giro */
  --bias: 12%; /* CUÁNTO engrosa abajo (sube/baja este %) */

  position: relative;
  border-radius: var(--radius);
  isolation: isolate; /* aísla el glow del resto */
}

/* ARO giratorio: vive detrás del contenido */
.video-led-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  /* “haz” rojo recorriendo el aro + leve rojizo en el resto */
  background: conic-gradient(
    from 0deg,
    #e11d48 0 60deg,
    /* tramo rojo vistoso */ rgba(225, 29, 72, 0.08) 60deg 360deg
      /* resto tenue, para que se note */
  );

  animation: ring-spin var(--speed) linear infinite;
  filter: blur(8px) saturate(1.2) brightness(1.1);
  z-index: 0;
}

/* Contenedor INTERNO: abre espacio al aro y recorta el video */
.video-led-ring .video-inner {
  position: relative;
  margin: var(--ring); /* <- igual en los 4 lados */
  border-radius: calc(var(--radius) - var(--ring));
  overflow: hidden;
  background: #101010;
  box-shadow: inset 16px 14px 20px #0000008c;
  z-index: 1;
}
/* El video ocupa el área recortada */
.video-led-ring video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Giro del aro */
@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Si tu wrapper es vertical, sigue respetándolo */
.video-wrap.vertical {
  aspect-ratio: 9/16;
  max-height: 90vh;
}

/* Opcional: más punch al pasar el mouse */
.video-led-ring:hover::before {
  animation-duration: calc(var(--speed) * 0.65);
  filter: blur(7px) saturate(1.3) brightness(1.15);
}

/* ====== HAMBURGUESA → X ====== */
.menu-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 1201; /* por encima del overlay */
  display: inline-block;
  padding: 0;
}
.menu-toggle .bar {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease,
    top 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.menu-toggle .bar:nth-child(1) {
  top: 14px;
}
.menu-toggle .bar:nth-child(2) {
  top: 21px;
}
.menu-toggle .bar:nth-child(3) {
  top: 28px;
}
.menu-toggle.is-open .bar:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
.menu-toggle.is-open .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open .bar:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* ====== OVERLAY FULL-SCREEN ====== */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(
    --lo-framer-grad,
    linear-gradient(135deg, #e11d48 0%, #7f1d1d 100%)
  );
  /* velo y blur para “Framer vibe” */
  background-blend-mode: overlay;
  backdrop-filter: saturate(160%) blur(10px);

  /* hidden por defecto */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.menu-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Lista centrada con animación “spring-like” */
.menu-overlay__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: translateY(8px) scale(0.98);
  animation: mo-reveal 0.52s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.menu-overlay.open .menu-overlay__list {
  animation-play-state: running;
}

.menu-overlay__list a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: clamp(1.35rem, 3.5vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0.2px;
  padding: 0.6rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  transform: translateY(10px) scale(0.96);
  opacity: 0;
  animation: item-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.menu-overlay__list li:nth-child(1) a {
  animation-delay: 0.08s;
}
.menu-overlay__list li:nth-child(2) a {
  animation-delay: 0.16s;
}
.menu-overlay__list li:nth-child(3) a {
  animation-delay: 0.24s;
}

.menu-overlay__list a:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Activo */
.menu-overlay__list a.active {
  background: rgba(255, 255, 255, 0.22);
}

/* Keyframes */
@keyframes mo-reveal {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  60% {
    opacity: 1;
    transform: translateY(-2px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes item-in {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  60% {
    opacity: 1;
    transform: translateY(-2px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* ====== Desktop: si quieres ocultar la hamburguesa y usar menú normal, cambia el display aquí ====== */
@media (min-width: 769px) {
  /* Por defecto mantengo la hamburguesa visible para usar overlay también en desktop.
     Si prefieres esconderla: descomenta la siguiente línea y renderiza un nav inline aparte. */
  /* .menu-toggle{ display:none; } */
}

/* Accesibilidad: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .menu-overlay,
  .menu-overlay__list,
  .menu-overlay__list a,
  .menu-toggle .bar {
    animation: none !important;
    transition: none !important;
  }
}

/* Oculta la hamburguesa en pantallas anchas */
.menu-toggle {
  display: none;
}

/* Muestra la hamburguesa SOLO en tamaño teléfono */
@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex; /* o block si prefieres */
    align-items: center;
    justify-content: center;
    z-index: 1201; /* sobre el overlay */
  }
}

/* (Opcional) Asegura que el overlay no se muestre en desktop aunque quede abierto */
@media (min-width: 769px) {
  #menu-overlay {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Por defecto: ocultamos menú escritorio y botón; luego controlamos por breakpoints */
.desktop-nav {
  display: none;
}
.menu-toggle {
  display: none;
}

/* Desktop (≥769px): mostrar links del header y ocultar hamburguesa/overlay */
@media (min-width: 769px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  .desktop-nav a {
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition: background 0.24s ease, transform 0.24s ease;
  }
  .desktop-nav a:hover,
  .desktop-nav a.active {
    background: rgba(225, 29, 72, 0.18); /* rojo-negro vibe */
  }

  .menu-toggle {
    display: none !important;
  }
  #menu-overlay {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Móvil (≤768px): ocultar menú escritorio y mostrar hamburguesa + overlay */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1201;
  }
}

/* Botón de audio (solo icono) */
.audio-toggle {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  z-index: 6;
  background: linear-gradient(135deg, #e11d48 0%, #7f1d1d 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.audio-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55);
}
.audio-toggle .ico {
  display: none;
}
.audio-toggle[data-state="muted"] .ico-off {
  display: block;
}
.audio-toggle[data-state="unmuted"] .ico-on {
  display: block;
}

/* Estado con audio ON: cambia a verde */
.audio-toggle.is-on {
  background: linear-gradient(135deg, #16a34a 0%, #065f46 100%);
}

/* Llamar atención hasta el primer click */
.audio-toggle.attention::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 14px;
  background: radial-gradient(
    120px 60px at 50% 50%,
    rgba(225, 29, 72, 0.22),
    transparent 60%
  );
  filter: blur(10px);
  animation: pulseRing 1.6s ease-out infinite;
  z-index: -1;
}
.audio-toggle.attention {
  animation: bob 2.2s ease-in-out infinite;
}

/* Animación sutil al presionar (bump) */
.audio-toggle.bump {
  animation: bump 180ms ease;
}
@keyframes bump {
  0% {
    transform: scale(0.96);
  }
  60% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

/* Ripple corto al click */
.audio-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: currentColor;
  opacity: 0;
  transform: scale(0.6);
}
.audio-toggle.ripple::before {
  animation: ripple 0.35s ease-out;
}
@keyframes ripple {
  0% {
    opacity: 0.25;
    transform: scale(0.6);
  }
  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}

/* Accesibilidad: reducir movimiento */
@media (prefers-reduced-motion: reduce) {
  .audio-toggle,
  .audio-toggle::after,
  .audio-toggle::before {
    animation: none !important;
    transition: none !important;
  }
}

/* (Opcional) ocultar el botón en desktop al pasar 5s con audio activo
.audio-toggle.hide { opacity:0; pointer-events:none; transition:opacity .25s ease; } */
