/* ========================================
   EDUCATION - SISTEMA DE DISEÑO PROFESIONAL
   ======================================== */

:root {
  /* Paleta de colores principal */
  --bg: #fefefe;
  --text: #1a1a1a;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --primary: #d85d3a;
  --secondary: #ffcc00;
  --navy: #2c4b64;
  --rose: #d85d3a;
  --sun: #ffcc00;
  --orange: #d85d3a;

  /* Degradados optimizados */
  --gradient-primary: linear-gradient(135deg, #d85d3a 0%, #ff8566 100%);
  --gradient-secondary: linear-gradient(135deg, #ffcc00 0%, #ffe066 100%);
  --gradient-navy: linear-gradient(135deg, #2c4b64 0%, #3d5f7d 100%);
  --gradient-card: linear-gradient(135deg, rgba(216, 93, 58, 0.02) 0%, rgba(255, 204, 0, 0.02) 100%);
  --gradient-hero: linear-gradient(135deg, rgba(216, 93, 58, 0.08) 0%, rgba(255, 204, 0, 0.05) 100%);

  /* Sistema de espaciado consistente */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 1rem;      /* 16px */
  --space-md: 1.5rem;    /* 24px */
  --space-lg: 2rem;      /* 32px */
  --space-xl: 3rem;      /* 48px */
  --space-2xl: 4rem;     /* 64px */
  --space-3xl: 4rem;     /* 64px - reducido de 96px */

  /* Bordes y radios */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Sombras sutiles y profesionales */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 4px 20px rgba(216, 93, 58, 0.08);
  --shadow-card-hover: 0 12px 32px rgba(216, 93, 58, 0.12);

  /* Transiciones suaves */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Tipografía */
  --font-sans: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;

  /* Otros */
  --muted: #2c4b6410;
  --ring-w: 6px;
  --angle: 0deg;
}

/* registra la propiedad para animación del ángulo */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* ==== Reset base ==== */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  scroll-behavior: smooth;
  font-weight: 300;
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

/* Justificar todos los párrafos y textos */
p {
  text-align: justify;
  font-weight: 300;
  text-justify: inter-word;
}

/* Títulos con Montserrat Bold */
h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(44, 75, 100, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(216, 93, 58, 0.04) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 204, 0, 0.02) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--rose);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  line-height: 1.2;
}

p {
  line-height: 1.7;
}

/* ==== HERO - MEJORADO ==== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 2rem 3rem;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.6;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: floatGlow 20s ease-in-out infinite;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #f42959 0%, transparent 70%);
  top: -200px;
  left: -100px;
  animation-delay: 0s;
}

.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #d85d3a 0%, transparent 70%);
  bottom: -150px;
  right: -100px;
  animation-delay: 5s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.4;
}

@keyframes floatGlow {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-logo {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-logo img {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 8px 24px rgba(244, 41, 89, 0.25));
}

.logo-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, #f42959 0%, transparent 70%);
  filter: blur(30px);
  opacity: 0.3;
  z-index: -1;
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, rgba(244, 41, 89, 0.15), rgba(245, 229, 96, 0.18));
  border: 2px solid rgba(244, 41, 89, 0.3);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f42959, #d85d3a);
  animation: pulseGlow 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #2c4b64 0%, #365a7a 30%, #3d5f7d 60%, #d85d3a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

.title-highlight {
  background: linear-gradient(135deg, #f42959, #d85d3a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.08rem;
  line-height: 1.75;
  color: #365665;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.2rem 2.5rem;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 900;
  background: linear-gradient(135deg, #f42959, #ff1744);
  color: white;
  box-shadow: 0 12px 32px rgba(244, 41, 89, 0.35);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-hero-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ff1744, #d85d3a);
  opacity: 0;
  transition: opacity 0.4s;
}

.btn-hero-primary:hover::before {
  opacity: 1;
}

.btn-hero-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 48px rgba(244, 41, 89, 0.45);
}

.btn-hero-primary span {
  position: relative;
  z-index: 1;
}

.btn-hero-primary svg {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
}

.hero-media {
  position: relative;
}

.video-container {
  position: relative;
  width: 100%;
}

.video-frame {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: 24px;
  overflow: hidden;
  border: 4px solid transparent;
  background: linear-gradient(#0000, #0000) padding-box,
    linear-gradient(135deg, #f42959, #d85d3a, #f5e560) border-box;
  box-shadow: 0 32px 80px rgba(244, 41, 89, 0.25);
  max-height: 70vh;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.audio-toggle {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(244, 41, 89, 0.3) 0%, rgba(244, 41, 89, 0.15) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(244, 41, 89, 0.35);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(244, 41, 89, 0.1) inset;
  overflow: hidden;
}

.audio-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f42959 0%, #ff6b8a 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.audio-toggle:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: rgba(244, 41, 89, 0.5);
  box-shadow:
    0 8px 24px rgba(244, 41, 89, 0.3),
    0 0 0 1px rgba(244, 41, 89, 0.15) inset,
    0 0 20px rgba(244, 41, 89, 0.2);
}

.audio-toggle:hover::before {
  opacity: 0.2;
}

.audio-toggle:active {
  transform: translateY(0) scale(0.98);
}

.audio-toggle svg,
.audio-toggle .ico {
  position: relative;
  z-index: 1;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.audio-toggle .ico-off {
  display: block;
}

.audio-toggle .ico-on {
  display: none;
}

.audio-toggle[data-state="unmuted"],
.audio-toggle[data-state="playing"] {
  background: linear-gradient(135deg, rgba(244, 41, 89, 0.45) 0%, rgba(255, 107, 138, 0.3) 100%);
  border-color: rgba(244, 41, 89, 0.55);
  box-shadow:
    0 4px 16px rgba(244, 41, 89, 0.35),
    0 0 0 1px rgba(244, 41, 89, 0.15) inset;
  animation: audio-pulse-edu 2s ease-in-out infinite;
}

.audio-toggle[data-state="unmuted"] .ico-off,
.audio-toggle[data-state="playing"] .ico-off {
  display: none;
}

.audio-toggle[data-state="unmuted"] .ico-on,
.audio-toggle[data-state="playing"] .ico-on {
  display: block;
  animation: sound-wave-edu 1s ease-in-out infinite;
}

@keyframes audio-pulse-edu {
  0%, 100% {
    box-shadow:
      0 4px 16px rgba(244, 41, 89, 0.35),
      0 0 0 1px rgba(244, 41, 89, 0.15) inset;
  }
  50% {
    box-shadow:
      0 4px 24px rgba(244, 41, 89, 0.5),
      0 0 0 1px rgba(244, 41, 89, 0.2) inset,
      0 0 30px rgba(244, 41, 89, 0.25);
  }
}

@keyframes sound-wave-edu {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.video-decoration {
  position: absolute;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(244, 41, 89, 0.3), rgba(216, 93, 58, 0.3));
  filter: blur(40px);
  z-index: -1;
}

.video-decoration-1 {
  width: 80%;
  height: 80%;
  top: -10%;
  left: -10%;
}

.video-decoration-2 {
  width: 60%;
  height: 60%;
  bottom: -15%;
  right: -15%;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.6;
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid currentColor;
  border-radius: 12px;
  position: relative;
}

.scroll-indicator span {
  width: 4px;
  height: 8px;
  background: currentColor;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0%, 100% {
    transform: translate(-50%, 0);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, 12px);
    opacity: 1;
  }
}

/* Estilos legacy para compatibilidad */
@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-content {
    text-align: center;
  }

  /* Grid de programas 2 columnas en tablets */
  .programs-modern {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Código legacy eliminado - ahora se usan las clases modernas del hero */

.audio-hint {
  position: absolute;
  bottom: 76px;
  right: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 2px solid rgba(244, 41, 89, 0.3);
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--navy);
  z-index: 4;
  box-shadow: 0 8px 24px rgba(244, 41, 89, 0.2);
  animation: hintBounce 2s ease-in-out infinite;
}

@keyframes hintBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ==== Secciones - MEJORADAS ==== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem var(--space-md);
  position: relative;
}

.section-alt {
  background: linear-gradient(
      rgba(244, 41, 89, 0.92),
      rgba(244, 41, 89, 0.85)
    ),
    url('../media/img/education/1671505485297.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(44, 75, 100, 0.2) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

.section-alt * {
  color: white;
}

/* Sección Chimborazo - Ancho completo */
.section-chimborazo {
  padding: 3rem 0;
  max-width: 100%;
  width: 100%;
  margin: 0;
  background: url('../media/img/education/galeria/1710106854736.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.chimborazo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 74, 101, 0.85);
  z-index: 0;
}

.section-chimborazo .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Sección Involúcrate - Ancho completo */
.section-involucrate {
  padding: 3rem 0;
  max-width: 100%;
  width: 100%;
  margin: 0;
  background: url('../media/img/education/galeria/1710106854709.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.involucrate-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(244, 41, 89, 0.65), rgba(227, 24, 55, 0.60));
  z-index: 0;
}

.section-involucrate .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-alt h2,
.section-alt h3,
.section-alt h4 {
  color: white;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.section-alt p {
  color: rgba(255, 255, 255, 0.95);
}

.section-alt .title-with-bg {
  background: linear-gradient(135deg, white, rgba(255, 255, 255, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-alt .title-with-bg::after {
  background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.8));
}

.section-alt .circle-number {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.section-alt .circle-label {
  color: white;
}

.section-alt .why-content {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-alt .why-highlight {
  color: white;
}

.section-alt .involvement-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-alt .involvement-card:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.section-alt .involvement-card.main {
  background: rgba(255, 255, 255, 0.95);
  color: var(--rose);
  backdrop-filter: blur(20px);
}

.section-alt .involvement-card.main * {
  color: var(--rose);
}

.section-alt .involvement-card.main p {
  color: var(--text-secondary);
}

.section-alt .involvement-card.main .involvement-icon {
  background: rgba(244, 41, 89, 0.15);
}

.section-alt .involvement-card.main .involvement-icon svg {
  stroke: var(--rose);
}

.section-alt .involvement-options h4 {
  color: white;
}

.section-alt .involvement-options p {
  color: rgba(255, 255, 255, 0.9);
}

.section-alt .contact-cta {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-alt .contact-cta p {
  color: white;
}

.section-alt .contact-cta a {
  color: white;
  border-bottom-color: white;
}

.section-alt .inner {
  position: relative;
  z-index: 1;
}

.section.colored {
  background: radial-gradient(
      1400px 700px at 75% -15%,
      rgba(44, 75, 100, 0.06),
      transparent 60%
    ),
    radial-gradient(
      1000px 800px at 25% 100%,
      rgba(216, 93, 58, 0.05),
      transparent 60%
    );
  position: relative;
}

.section.colored::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 50px,
    rgba(244, 41, 89, 0.02) 50px,
    rgba(244, 41, 89, 0.02) 51px
  );
  pointer-events: none;
}

.inner {
  position: relative;
  z-index: 1;
}

.title-with-bg {
  font-size: clamp(2rem, 4vw, 3rem) !important;
  font-weight: 900;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--rose) 0%, var(--orange) 50%, var(--sun) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  animation: gradientShift 8s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.title-with-bg::before {
  content: attr(data-text);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(216, 93, 58, 0.03);
  z-index: -1;
  white-space: nowrap;
  opacity: 0.4;
}

/* Alternancia de títulos: izquierda y derecha */
.section-header-left {
  text-align: left;
}

.section-header-left .title-with-bg {
  text-align: left;
  display: inline-block;
  position: relative;
}

.section-header-left .title-with-bg::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  border-radius: 2px;
}

.section-header-left .title-with-bg::before {
  left: 0;
  transform: translate(0, -50%);
}

.section-header-left .involvement-subtitle {
  text-align: left;
  margin-left: 0;
}

.involvement-header.section-header-left {
  text-align: left;
}

.section-header-right {
  text-align: right;
}

.section-header-right .title-with-bg {
  text-align: right;
  display: inline-block;
  position: relative;
}

.section-header-right .title-with-bg::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--rose));
  border-radius: 2px;
}

.section-header-right .title-with-bg::before {
  right: 0;
  left: auto;
  transform: translate(0, -50%);
}

/* Grid 2 - MEJORADO */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-2xl);
  align-items: start;
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Cards - MEJORADAS */
.card {
  background: white;
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card),
    inset 0 0 0 1px rgba(244, 41, 89, 0.08);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rose), var(--orange), var(--sun));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-smooth);
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover),
    inset 0 0 0 1px rgba(244, 41, 89, 0.12);
}

.card h3 {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
  color: var(--rose);
}

.card p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin: var(--space-xs) 0;
}

.card strong {
  color: var(--text);
  font-weight: var(--font-weight-bold);
}

/* Imagen apilada - MEJORADA */
.img-stack {
  position: relative;
  height: 400px;
  perspective: 1000px;
}

.img-stack img {
  position: absolute;
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 4px solid white;
}

.img-stack .one {
  top: 0;
  left: 0;
  z-index: 3;
  transform: rotate(-5deg);
  animation: stackFloat1 6s ease-in-out infinite;
}

.img-stack .two {
  top: 40px;
  right: 0;
  z-index: 2;
  transform: rotate(5deg);
  animation: stackFloat2 7s ease-in-out infinite;
}

.img-stack .three {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  z-index: 1;
  animation: stackFloat3 8s ease-in-out infinite;
}

.img-stack img:hover {
  transform: scale(1.05) rotate(0deg) !important;
  z-index: 10;
  box-shadow: 0 24px 64px rgba(244, 41, 89, 0.3);
}

@keyframes stackFloat1 {
  0%,
  100% {
    transform: rotate(-5deg) translateY(0);
  }
  50% {
    transform: rotate(-5deg) translateY(-15px);
  }
}

@keyframes stackFloat2 {
  0%,
  100% {
    transform: rotate(5deg) translateY(0);
  }
  50% {
    transform: rotate(5deg) translateY(-12px);
  }
}

@keyframes stackFloat3 {
  0%,
  100% {
    transform: translateX(-50%) rotate(-3deg) translateY(0);
  }
  50% {
    transform: translateX(-50%) rotate(-3deg) translateY(-10px);
  }
}

/* ==== STATS (estadísticas) - NUEVO ==== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.stat {
  text-align: center;
  padding: var(--space-lg);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-smooth);
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.stat-number {
  font-size: 3rem;
  font-weight: var(--font-weight-black);
  background: linear-gradient(135deg, var(--rose), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==== PILARES - MEJORADOS ==== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.pillar-card {
  background: white;
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.pillar-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--rose), var(--orange), var(--sun));
  border-radius: var(--radius-xl);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  z-index: -1;
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-2xl);
  border-color: transparent;
}

.pillar-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-smooth);
}

.pillar-card:hover .pillar-icon {
  transform: rotate(10deg) scale(1.1);
}

.pillar-card h3 {
  font-size: 1.4rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.pillar-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ==== PROYECTOS - MEJORADOS ==== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-2xl);
  margin: var(--space-xl) 0;
}

.project-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-smooth);
  cursor: pointer;
  position: relative;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-2xl);
}

.project-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-image {
  transform: scale(1.1);
}

.project-content {
  padding: var(--space-lg);
  position: relative;
}

.project-content h3 {
  font-size: 1.4rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-xs);
  color: var(--rose);
}

.project-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.project-content .btn {
  margin-top: var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-bold);
  font-size: 0.9rem;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.project-content .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ==== TESTIMONIOS - MEJORADOS ==== */
.ts-wrap {
  max-width: 1200px;
  margin: var(--space-xl) auto;
  padding: 0 var(--space-sm);
  position: relative;
}

.ts-track {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: var(--space-sm) 0;
}

.ts-track::-webkit-scrollbar {
  display: none;
}

.ts-card {
  flex: 0 0 360px;
  background: white;
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  scroll-snap-align: start;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.ts-card::before {
  content: '"';
  position: absolute;
  top: var(--space-sm);
  right: var(--space-md);
  font-size: 6rem;
  font-weight: var(--font-weight-black);
  color: rgba(244, 41, 89, 0.08);
  line-height: 1;
  font-family: Georgia, serif;
}

.ts-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.ts-quote {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
  font-style: italic;
}

.ts-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  position: relative;
  z-index: 1;
}

.ts-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: grid;
  place-items: center;
  font-weight: var(--font-weight-black);
  font-size: 1.3rem;
  color: white;
  box-shadow: var(--shadow-md);
}

.ts-author strong {
  display: block;
  font-weight: var(--font-weight-bold);
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.ts-author small {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Flechas de navegación */
.ts-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: white;
  border: 2px solid rgba(244, 41, 89, 0.2);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--rose);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  z-index: 10;
}

.ts-arrow:hover {
  background: var(--rose);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.ts-arrow.left {
  left: -24px;
}

.ts-arrow.right {
  right: -24px;
}

@media (max-width: 768px) {
  .ts-arrow {
    display: none;
  }

  .ts-card {
    flex: 0 0 300px;
  }
}

/* ==== GALERÍA - MEJORADA ==== */
.gallery-section {
  padding: var(--space-2xl) 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(244, 41, 89, 0.05),
      transparent 60%
    ),
    radial-gradient(
      circle at 80% 50%,
      rgba(245, 229, 96, 0.05),
      transparent 60%
    );
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  padding: 0 var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-link {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
  cursor: pointer;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-smooth);
}

.gallery-link:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.gallery-image {
  margin: 0;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
  filter: brightness(0.9) saturate(1.1);
}

.gallery-link:hover .gallery-image img {
  transform: scale(1.15);
  filter: brightness(1) saturate(1.2);
}

.gallery-image figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  color: white;
  padding: var(--space-2xl) var(--space-md) var(--space-md);
  font-weight: var(--font-weight-bold);
  font-size: 1rem;
  transform: translateY(100%);
  transition: transform var(--transition-smooth);
}

.gallery-link:hover .gallery-image figcaption {
  transform: translateY(0);
}

/* Animación de entrada para galería */
.gallery-link {
  opacity: 0;
  transform: scale(0.9);
  animation: galleryFadeIn 0.6s ease forwards;
}

.gallery-link:nth-child(1) {
  animation-delay: 0.1s;
}
.gallery-link:nth-child(2) {
  animation-delay: 0.15s;
}
.gallery-link:nth-child(3) {
  animation-delay: 0.2s;
}
.gallery-link:nth-child(4) {
  animation-delay: 0.25s;
}
.gallery-link:nth-child(5) {
  animation-delay: 0.3s;
}
.gallery-link:nth-child(6) {
  animation-delay: 0.35s;
}
.gallery-link:nth-child(7) {
  animation-delay: 0.4s;
}
.gallery-link:nth-child(8) {
  animation-delay: 0.45s;
}
.gallery-link:nth-child(9) {
  animation-delay: 0.5s;
}

@keyframes galleryFadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* GALERÍA MODERNA - 6 IMÁGENES SIMÉTRICAS */
#galeria {
  padding: 4rem 0 !important;
  background: #f8f9fa;
}

.modern-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.modern-gallery .gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-gallery .gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(216, 93, 58, 0.7);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.modern-gallery .gallery-item::after {
  content: '+';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 4rem;
  font-weight: 300;
  color: white;
  z-index: 2;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-gallery .gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(216, 93, 58, 0.25);
}

.modern-gallery .gallery-item:hover::before {
  opacity: 1;
}

.modern-gallery .gallery-item:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.modern-gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-gallery .gallery-item:hover img {
  transform: scale(1.05);
}

/* Animación de entrada */
.modern-gallery .gallery-item {
  opacity: 0;
  transform: scale(0.9);
  animation: galleryZoomIn 0.6s ease-out forwards;
}

.modern-gallery .gallery-item:nth-child(1) { animation-delay: 0.1s; }
.modern-gallery .gallery-item:nth-child(2) { animation-delay: 0.15s; }
.modern-gallery .gallery-item:nth-child(3) { animation-delay: 0.2s; }
.modern-gallery .gallery-item:nth-child(4) { animation-delay: 0.25s; }
.modern-gallery .gallery-item:nth-child(5) { animation-delay: 0.3s; }
.modern-gallery .gallery-item:nth-child(6) { animation-delay: 0.35s; }

@keyframes galleryZoomIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 968px) {
  .modern-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 0 1.5rem;
  }
}

@media (max-width: 640px) {
  .modern-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }

  .modern-gallery .gallery-item::after {
    font-size: 2rem;
  }
}

/* MODAL LIGHTBOX - MEJORADO */
.lo-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(10px);
}

.lo-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}

.lo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  cursor: pointer;
}

.lo-modal__dialog {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lo-modal__img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.6);
}

.lo-modal__btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.98);
  border: 2px solid rgba(244, 41, 89, 0.3);
  color: var(--navy);
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  backdrop-filter: blur(10px);
}

.lo-modal__btn:hover {
  background: linear-gradient(135deg, var(--rose), var(--pink));
  color: white;
  border-color: transparent;
  transform: scale(1.15);
  box-shadow: 0 8px 24px rgba(244, 41, 89, 0.4);
}

.lo-modal__close {
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.lo-modal__arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  top: 50%;
  transform: translateY(-50%);
}

.lo-modal__arrow:hover {
  transform: translateY(-50%) scale(1.15);
}

.lo-modal__arrow--prev {
  left: 24px;
}

.lo-modal__arrow--next {
  right: 24px;
}

.lo-modal__caption {
  display: none;
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.98);
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  color: var(--navy);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .lo-modal__arrow {
    width: 44px;
    height: 44px;
  }

  .lo-modal__arrow--prev {
    left: 12px;
  }

  .lo-modal__arrow--next {
    right: 12px;
  }

  .lo-modal__caption {
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
  }
}

/* ==== FOOTER - MEJORADO ==== */
.footer {
  background: var(--gradient-navy);
  color: white;
  padding: var(--space-2xl) var(--space-md) var(--space-lg);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(255, 255, 255, 0.03) 20px,
    rgba(255, 255, 255, 0.03) 40px
  );
  pointer-events: none;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
}

.footer-brand img {
  height: 48px;
  margin-bottom: var(--space-sm);
  filter: brightness(0) invert(1);
}

.footer-brand p {
  opacity: 0.9;
  line-height: 1.6;
}

.footer h4 {
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: var(--space-xs);
}

.footer-links a,
.footer-contact a {
  color: white;
  opacity: 0.9;
  transition: all var(--transition-base);
  display: inline-block;
}

.footer-links a:hover,
.footer-contact a:hover {
  opacity: 1;
  transform: translateX(5px);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.social a {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-weight: var(--font-weight-bold);
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}

.social a:hover {
  background: white;
  color: var(--rose);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.footer-bottom {
  max-width: 1200px;
  margin: var(--space-xl) auto 0;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

/* ==== ANIMACIONES ON-SCROLL ==== */
[data-animate] {
  opacity: 0;
  transition: all var(--transition-slow);
}

[data-animate].in {
  opacity: 1;
}

[data-anim="fade-up"] {
  transform: translateY(40px);
}

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

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

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

[data-anim="slide-right"] {
  transform: translateX(60px);
}

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

/* Tilt en tarjetas */
[data-tilt] {
  transition: transform var(--transition-base) ease-out;
}

[data-tilt].tilting {
  transform: perspective(1000px) rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg));
}

/* ==== RESPONSIVE FINAL - MOBILE FIRST ==== */

/* Tablet breakpoint - ajusta tamaño del video */
@media (max-width: 1024px) {
  .hero-media {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: calc(80px + var(--space-2xl)) var(--space-md) var(--space-xl);
  }

  .hero-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
  }

  /* Logo arriba del todo sin interferir con navbar */
  .hero-logo {
    order: -2;
    margin-bottom: var(--space-sm);
  }

  .hero-logo img {
    height: 60px;
  }

  /* Video después del logo */
  .hero-media {
    order: -1;
    width: 100%;
    max-width: 360px;
    margin: 0 auto var(--space-md);
  }

  .video-container {
    width: 100%;
  }

  .video-frame {
    width: 100%;
    aspect-ratio: 9/16;
    max-height: 640px;
  }

  .video-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Contenido después del video */
  .hero-content {
    order: 1;
    text-align: center;
  }

  .hero-badge {
    justify-content: center;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-hero-primary {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: var(--space-xl) var(--space-sm);
  }

  .title-with-bg {
    font-size: 2rem;
    margin-bottom: var(--space-lg);
  }

  .pillars-grid,
  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .img-stack {
    height: 300px;
  }

  .img-stack img {
    width: 200px;
    height: 200px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: calc(80px + var(--space-xl)) var(--space-sm) var(--space-lg);
  }

  .hero-logo img {
    height: 50px;
  }

  .hero-media {
    max-width: 360px;
  }

  .btn-hero {
    width: 100%;
    justify-content: center;
  }

  .card {
    padding: var(--space-md);
  }

  .stats {
    grid-template-columns: 1fr;
  }
}
/* ========================================
   EDUCATION - MENÚ (basado en index.html)
   Color: #f42959 (Rosa Education)
   ======================================== */

:root {
  --education-primary: #f42959;
  --education-secondary: #ff1744;
  --education-dark: #c41c47;
}

/* ========================================
   HEADER / NAVBAR - Education Colors
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: linear-gradient(
    90deg,
    rgba(44, 75, 100, 0.92) 0%,
    rgba(54, 90, 122, 0.90) 40%,
    rgba(61, 95, 125, 0.88) 70%,
    rgba(216, 93, 58, 0.85) 100%
  );
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(44, 75, 100, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.scrolled {
  padding: 1rem 2rem;
  background: linear-gradient(
    90deg,
    rgba(44, 75, 100, 0.97) 0%,
    rgba(54, 90, 122, 0.95) 40%,
    rgba(61, 95, 125, 0.93) 70%,
    rgba(216, 93, 58, 0.90) 100%
  );
  box-shadow: 0 6px 28px rgba(44, 75, 100, 0.2);
}

.brand img {
  height: 42px;
  width: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand:hover img {
  transform: scale(1.05);
}

.desktop-nav {
  display: none;
  gap: 2.5rem;
  align-items: center;
}

.desktop-nav button {
  margin-left: 0.5rem;
}

.desktop-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  color: rgba(249, 250, 251, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #f9fafb;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: #f9fafb;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 100%;
}

/* Menu toggle styles moved to base.css for consistency */
/* Styles are now controlled globally from base.css */

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(196, 28, 71, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.menu-overlay__list {
  list-style: none;
  text-align: center;
}

.menu-overlay__list li {
  margin: 2rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-overlay[aria-hidden="false"] .menu-overlay__list li {
  opacity: 1;
  transform: translateY(0);
}

.menu-overlay__list li:nth-child(1) {
  transition-delay: 0.1s;
}
.menu-overlay__list li:nth-child(2) {
  transition-delay: 0.2s;
}
.menu-overlay__list li:nth-child(3) {
  transition-delay: 0.3s;
}
.menu-overlay__list li:nth-child(4) {
  transition-delay: 0.4s;
}

.menu-overlay__list a {
  font-size: 2rem;
  font-weight: 700;
  color: rgba(249, 250, 251, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-overlay__list a:hover,
.menu-overlay__list a.active {
  color: #f9fafb;
}

/* Responsive */
@media (max-width: 767px) {
  .nav {
    padding: 1rem 1.5rem;
    max-width: 100vw;
    box-sizing: border-box;
  }
}

@media (min-width: 768px) {
  .nav {
    padding: 1.25rem 3rem;
  }

  .brand img {
    height: 48px;
  }
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .menu-overlay {
    display: none;
  }
}

/* Education menu - Updated 2025-01-12 14:35 - Menu working */

/* ========================================
   NUEVOS DISEÑOS SIMPLIFICADOS
   ======================================== */

/* IMPACTO HERO - Imagen con stats overlay */
.impact-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.impact-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.impact-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.impact-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(244, 41, 89, 0.95), rgba(244, 41, 89, 0.7));
  padding: var(--space-xl);
  display: flex;
  justify-content: space-around;
  backdrop-filter: blur(10px);
}

.impact-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
}

.impact-number {
  font-size: 2.5rem;
  font-weight: var(--font-weight-black);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.impact-label {
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.95;
}

.impact-content h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: var(--font-weight-black);
  color: var(--navy);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.impact-content p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.impact-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-md);
}

/* NUEVA SECCIÓN MISIÓN MODERNA - Indicadores con imágenes de fondo */
.section-white {
  position: relative;
  overflow: visible;
}

.mission-modern {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 500px;
  position: relative;
  z-index: 2;
}

/* Images Stack (estilo revolution) - posicionadas en el section */
.images-stack {
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
}

.image-wrapper {
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--rose);
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-wrapper:hover::after {
  opacity: 1;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-wrapper:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(216, 93, 58, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-wrapper:hover .image-overlay {
  opacity: 1;
}

.img-1 {
  width: 280px;
  height: 350px;
  top: 0;
  left: 0;
  z-index: 3;
  animation: float1 6s ease-in-out infinite;
}

.img-2 {
  width: 300px;
  height: 380px;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 2;
  animation: float2 7s ease-in-out infinite;
}

.img-3 {
  width: 250px;
  height: 300px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: float3 8s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 15px)); }
}

@keyframes float3 {
  0%, 100% { transform: translateX(-50%) translateY(0px); }
  50% { transform: translateX(-50%) translateY(-25px); }
}

.images-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(216, 93, 58, 0.2), transparent);
  border-radius: 50%;
  filter: blur(60px);
  animation: pulseGlow 4s ease-in-out infinite;
  z-index: 0;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* Indicadores en forma de triángulo */
.mission-indicators {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 0.5rem 0;
  width: 45%;
  margin-left: auto;
}

.indicators-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.indicators-row-single {
  justify-content: center;
}

.mission-indicator {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: none;
  position: relative;
}

.mission-indicator:hover {
  transform: translateX(12px);
}

.mission-indicator:hover .indicator-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 32px rgba(216, 93, 58, 0.25);
}

.mission-indicator:hover .indicator-number {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.indicator-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(216, 93, 58, 0.08) 0%, rgba(255, 204, 0, 0.08) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(216, 93, 58, 0.15);
}

.indicator-icon svg {
  width: 36px;
  height: 36px;
}

.indicator-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.indicator-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 0.9;
  margin-bottom: 0;
  transition: all 0.3s ease;
  letter-spacing: -0.02em;
}

.indicator-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* FRASE MOTTO DE PROGRAMAS - Estilo de card complementario */
.programs-motto {
  margin-top: var(--space-xl);
  padding: var(--space-xl) var(--space-2xl);
  background: linear-gradient(135deg, #084a65 0%, #0a5a7a 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(8, 74, 101, 0.25);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: visible;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.programs-motto::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 60%);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.programs-motto:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(8, 74, 101, 0.35);
}

.motto-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.programs-motto:hover .motto-icon {
  color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.motto-icon svg {
  width: 100%;
  height: 100%;
}

.programs-motto p {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: white;
  margin: 0;
  line-height: 1.7;
  text-align: center;
  position: relative;
  padding: 0 var(--space-xl);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.programs-motto p .cross-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  stroke-width: 2.5;
  stroke: currentColor;
  fill: none;
}

.programs-motto p::before {
  content: '"';
  position: absolute;
  top: -15px;
  left: 10px;
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.25);
  opacity: 1;
  font-family: Georgia, serif;
  line-height: 1;
}

.programs-motto p::after {
  content: '"';
  position: absolute;
  bottom: -25px;
  right: 10px;
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.25);
  opacity: 1;
  font-family: Georgia, serif;
  line-height: 1;
}

/* POR QUÉ CHIMBORAZO - Stats circulares */
.why-chimborazo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.why-stat-large {
  display: flex;
  justify-content: space-around;
  gap: var(--space-lg);
}

.stat-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.circle-number {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: var(--font-weight-black);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-md);
  transition: transform var(--transition-smooth);
}

.stat-circle:hover .circle-number {
  transform: scale(1.1);
}

.circle-label {
  font-size: 0.9rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text);
  max-width: 120px;
}

.why-content {
  background: white;
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.why-highlight {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--rose);
  margin-bottom: var(--space-md);
}

/* PROGRAMAS MODERNOS - Grid 3x3 */
.programs-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.program-card {
  background: linear-gradient(135deg, #ffffff 0%, #fffbf7 100%);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(216, 93, 58, 0.08);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.program-card:hover::before {
  transform: scaleX(1);
}

.program-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 40px rgba(216, 93, 58, 0.15);
  border-color: var(--rose);
  background: linear-gradient(135deg, #ffffff 0%, #fff5f0 100%);
}

.program-icon {
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #2c4b64 0%, #3d5f7d 100%);
  border-radius: 16px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(44, 75, 100, 0.2);
  flex-shrink: 0;
}

.program-card:hover .program-icon {
  background: linear-gradient(135deg, #ffcc00 0%, #ffe066 100%);
  transform: rotate(-10deg) scale(1.15);
  box-shadow: 0 8px 30px rgba(255, 204, 0, 0.4);
}

.program-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.program-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
  flex-grow: 1;
}

.program-students {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, var(--rose) 0%, #ff6b4a 100%);
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 15px rgba(216, 93, 58, 0.2);
  transition: all 0.3s ease;
}

.program-card:hover .program-students {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(216, 93, 58, 0.35);
}

/* PROGRAMAS COMUNIDAD - Destacados grandes */
.programs-community {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.community-item {
  background: var(--gradient-primary);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  color: white;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-smooth);
}

.community-item:hover {
  transform: scale(1.02);
}

.community-number {
  font-size: 4rem;
  font-weight: var(--font-weight-black);
  line-height: 1;
  opacity: 0.9;
}

.community-text {
  font-size: 1.1rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.4;
}

/* RESPONSIVE - Nuevos diseños */
@media (max-width: 768px) {
  .section-alt {
    background-attachment: scroll;
  }

  .impact-hero {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .mission-modern {
    flex-direction: column;
    min-height: auto;
    padding-top: 420px;
  }

  .images-stack {
    width: 100%;
    height: 400px;
    top: 0;
    left: 0;
  }

  .img-1 {
    width: 200px;
    height: 250px;
    left: 10px;
  }

  .img-2 {
    width: 220px;
    height: 280px;
    right: 10px;
  }

  .img-3 {
    width: 180px;
    height: 220px;
    left: 50%;
    bottom: 10px;
  }

  .images-glow {
    width: 280px;
    height: 280px;
  }

  .mission-indicators {
    width: 100%;
    margin-left: 0;
  }

  .indicators-row {
    flex-direction: column;
    gap: 2rem;
  }

  .mission-indicator {
    padding: 0;
    gap: 1rem;
  }

  .indicator-icon {
    width: 60px;
    height: 60px;
  }

  .indicator-icon svg {
    width: 30px;
    height: 30px;
  }

  .indicator-number {
    font-size: 2.5rem;
  }

  .indicator-label {
    font-size: 0.85rem;
  }

  .programs-motto {
    padding: var(--space-lg);
  }

  .programs-motto p {
    font-size: 1rem;
    padding: 0 var(--space-sm);
  }

  .programs-motto p::before,
  .programs-motto p::after {
    font-size: 2rem;
  }

  .impact-image img {
    height: 350px;
  }

  .impact-overlay {
    padding: var(--space-md);
  }

  .impact-number {
    font-size: 2rem;
  }

  .why-chimborazo {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .why-stat-large {
    flex-direction: column;
    align-items: center;
  }

  .circle-number {
    width: 120px;
    height: 120px;
    font-size: 2rem;
  }

  .programs-modern {
    grid-template-columns: 1fr;
  }

  .programs-community {
    grid-template-columns: 1fr;
  }

  .community-number {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .impact-overlay {
    flex-direction: column;
    gap: var(--space-md);
  }

  .circle-number {
    width: 100px;
    height: 100px;
    font-size: 1.8rem;
  }

  .community-item {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }
}

/* ============================================
   INVOLÚCRATE - Hero card con opciones
   ============================================ */

.involvement-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.involvement-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 251, 247, 0.95) 100%);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(244, 41, 89, 0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.involvement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.involvement-card:hover::before {
  opacity: 1;
}

.involvement-card.main {
  background: linear-gradient(135deg, #2c4b64 0%, #1a2f42 100%);
  color: white;
  text-align: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 3rem;
  box-shadow: 0 15px 50px rgba(44, 75, 100, 0.3);
  border: 3px solid rgba(255, 204, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.involvement-card.main::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 204, 0, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.involvement-card.main::before {
  display: none;
}

.involvement-icon {
  width: 120px;
  height: 120px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ffcc00 0%, #ffe066 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(255, 204, 0, 0.4);
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.involvement-card.main:hover .involvement-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 15px 50px rgba(255, 204, 0, 0.5);
}

.involvement-icon svg {
  width: 60px;
  height: 60px;
  stroke: #2c4b64;
  stroke-width: 2.5;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.involvement-card.main h3 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: #ffcc00;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

.price-tag {
  display: inline-block;
  background: linear-gradient(135deg, #ffcc00 0%, #ffe066 100%);
  color: #2c4b64;
  font-size: 2rem;
  font-weight: 900;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  box-shadow: 0 6px 25px rgba(255, 204, 0, 0.4);
  position: relative;
  z-index: 2;
}

.involvement-card.main p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.8;
  position: relative;
  z-index: 2;
}

.btn-involvement {
  background: linear-gradient(135deg, #ffcc00 0%, #ffe066 100%);
  color: #2c4b64;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 1.25rem 3rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(255, 204, 0, 0.3);
  position: relative;
  z-index: 2;
}

.btn-involvement:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 40px rgba(255, 204, 0, 0.5);
  gap: 1rem;
  background: linear-gradient(135deg, #ffe066 0%, #ffcc00 100%);
}

.btn-involvement svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.5;
}

.involvement-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.involvement-options .involvement-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  cursor: pointer;
  border: 2px solid rgba(44, 75, 100, 0.15);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.98) 100%);
}

.involvement-options .involvement-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 35px rgba(44, 75, 100, 0.2);
  border-color: #ffcc00;
}

.involvement-icon-sm {
  width: 70px;
  height: 70px;
  min-width: 70px;
  border-radius: 20px;
  background: linear-gradient(135deg, #2c4b64 0%, #3d5f7d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(44, 75, 100, 0.25);
  transition: all 0.3s ease;
}

.involvement-options .involvement-card:hover .involvement-icon-sm {
  transform: scale(1.1);
  background: linear-gradient(135deg, #ffcc00 0%, #ffe066 100%);
  box-shadow: 0 8px 30px rgba(255, 204, 0, 0.4);
}

.involvement-icon-sm svg {
  width: 32px;
  height: 32px;
  stroke: white;
  stroke-width: 2.5;
  transition: all 0.3s ease;
}

.involvement-options .involvement-card:hover .involvement-icon-sm svg {
  stroke: #2c4b64;
}

.involvement-options h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.involvement-options p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.contact-cta {
  text-align: center;
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: rgba(244, 41, 89, 0.05);
  border-radius: var(--radius-lg);
}

.contact-cta p {
  font-size: 1.1rem;
  color: var(--navy);
  margin: 0;
}

.contact-cta a {
  color: var(--rose);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  transition: all var(--transition-base);
  border-bottom: 2px solid transparent;
}

.contact-cta a:hover {
  border-bottom-color: var(--rose);
}

/* Actualizar estilos de íconos SVG en programas */
.program-icon svg {
  width: 48px;
  height: 48px;
  stroke: white;
  stroke-width: 2.5;
  transition: all 0.4s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.program-card:hover .program-icon svg {
  stroke: #2c4b64;
  stroke-width: 2.5;
  filter: drop-shadow(0 2px 6px rgba(44, 75, 100, 0.3));
}

/* ============================================
   RESPONSIVE - Involvement section
   ============================================ */

@media (max-width: 768px) {
  .involvement-hero {
    grid-template-columns: 1fr;
  }

  .involvement-card.main {
    padding: var(--space-2xl);
  }

  .involvement-icon {
    width: 60px;
    height: 60px;
  }

  .involvement-icon svg {
    width: 30px;
    height: 30px;
  }

  .involvement-card.main h3 {
    font-size: 1.75rem;
  }

  .price-tag {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .involvement-options .involvement-card {
    flex-direction: column;
    text-align: center;
  }

  .involvement-icon-sm {
    margin: 0 auto;
  }

  .btn-involvement {
    padding: var(--space-sm) var(--space-xl);
    font-size: 1rem;
  }
}

/* === SLIDER STYLES === */
.slider-container {
  overflow: hidden;
  position: relative;
}

.slider-track {
  display: flex !important;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 1.5rem;
}

.slider-track .compact-card {
  flex: 0 0 calc(50% - 0.75rem);
  min-width: calc(50% - 0.75rem);
}

.slider-btn {
  background: var(--gradient-primary);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(216, 93, 58, 0.3);
}

.slider-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(216, 93, 58, 0.4);
}

.slider-btn:active {
  transform: scale(0.95);
}

.slider-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .slider-track .compact-card {
    flex: 0 0 100%;
    min-width: 100%;
  }
}

/* ========================================
   INVOLÚCRATE - NUEVO DISEÑO MODERNO
   ======================================== */

.involvement-modern {
  max-width: 1200px;
  margin: 0 auto;
}

.involvement-header {
  text-align: center;
  margin-bottom: 4rem;
}

.involvement-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, rgba(216, 93, 58, 0.1) 0%, rgba(255, 204, 0, 0.1) 100%);
  border: 2px solid rgba(216, 93, 58, 0.2);
  border-radius: 50px;
  color: var(--rose);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.involvement-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 1rem auto 0;
  line-height: 1.7;
}

.involvement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.involvement-card-modern {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.involvement-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.involvement-card-modern:hover::before {
  transform: scaleX(1);
}

.involvement-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: rgba(216, 93, 58, 0.1);
}

.involvement-card-modern.featured {
  grid-column: 1 / 3;
  grid-row: 1;
  background: linear-gradient(135deg, #d85d3a 0%, #e67456 100%);
  color: white;
  border: none;
  box-shadow: 0 20px 40px rgba(216, 93, 58, 0.3);
}

/* Layout optimizado en 2 filas - sin fila 3 */
/* Donación Única - columna derecha, fila 1 */
.involvement-card-modern:nth-child(2) {
  grid-column: 3;
  grid-row: 1;
}

/* Donación Recurrente - columna derecha, fila 2 */
.involvement-card-modern:nth-child(3) {
  grid-column: 3;
  grid-row: 2;
}

/* Voluntariado - izquierda, fila 2 */
.involvement-card-modern:nth-child(4) {
  grid-column: 1;
  grid-row: 2;
}

/* Viajes Misioneros - centro, fila 2 */
.involvement-card-modern:nth-child(5) {
  grid-column: 2;
  grid-row: 2;
}

.involvement-card-modern.featured::before {
  display: none;
}

.involvement-card-modern.featured:hover {
  box-shadow: 0 25px 50px rgba(216, 93, 58, 0.4);
}

.involvement-card-modern.featured h3,
.involvement-card-modern.featured p {
  color: white;
}

.card-modern-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.icon-modern {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(216, 93, 58, 0.1) 0%, rgba(255, 204, 0, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.icon-modern svg {
  width: 32px;
  height: 32px;
  stroke: var(--rose);
  transition: all 0.3s ease;
}

.icon-modern.featured {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.icon-modern.featured svg {
  stroke: white;
}

.involvement-card-modern:hover .icon-modern {
  transform: scale(1.1) rotate(-5deg);
}

.featured-badge {
  background: rgba(255, 204, 0, 0.9);
  color: #1a1a1a;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
}

.involvement-card-modern h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.involvement-card-modern p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.price-modern {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.price-modern .amount {
  font-size: 3rem;
  font-weight: 900;
  color: white;
  line-height: 1;
}

.price-modern .period {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  font-weight: 500;
}

.benefits-list svg {
  width: 20px;
  height: 20px;
  fill: var(--sun);
  flex-shrink: 0;
}

/* Lista horizontal para featured card */
.benefits-list-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.benefits-list-horizontal li {
  padding: 0.5rem 0;
  flex: 0 1 auto;
}

/* Animación loop para botón */
@keyframes pulse-loop {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(255, 204, 0, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 204, 0, 0.6);
  }
}

.btn-pulse-loop {
  animation: pulse-loop 2s ease-in-out infinite;
}

.btn-pulse-loop:hover {
  animation: none;
}

.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  justify-content: center;
  text-align: center;
}

.btn-modern svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.btn-modern:hover svg {
  transform: translateX(4px);
}

.btn-modern.primary {
  background: linear-gradient(135deg, #ffcc00 0%, #ffe066 100%);
  color: #1a1a1a;
  box-shadow: 0 4px 16px rgba(255, 204, 0, 0.4);
}

.btn-modern.primary:hover {
  box-shadow: 0 6px 24px rgba(255, 204, 0, 0.6);
  transform: translateY(-2px);
}

.btn-modern.secondary {
  background: white;
  color: var(--rose);
  border: 2px solid var(--rose);
  box-shadow: 0 4px 12px rgba(216, 93, 58, 0.1);
}

.btn-modern.secondary:hover {
  background: var(--rose);
  color: white;
  box-shadow: 0 6px 20px rgba(216, 93, 58, 0.3);
  transform: translateY(-2px);
}

.involvement-footer {
  background: linear-gradient(135deg, rgba(216, 93, 58, 0.05) 0%, rgba(255, 204, 0, 0.05) 100%);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin-top: 2rem;
  border: 2px solid rgba(216, 93, 58, 0.1);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  max-width: 450px;
  margin: 0 auto;
}

.footer-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-icon svg {
  width: 20px;
  height: 20px;
  stroke: white;
}

.footer-text h4 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.footer-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  text-align: center;
}

.footer-text a {
  color: var(--rose);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-text a:hover {
  color: var(--orange);
  text-decoration: underline;
}

/* NUEVO LAYOUT: 2 COLUMNAS CON SLIDER */
.involvement-grid-two-col {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
  align-items: start;
}

/* Reset grid properties para el nuevo layout */
.involvement-grid-two-col .involvement-card-modern.featured {
  grid-column: auto;
  grid-row: auto;
}

.involvement-grid-two-col .donations-stack {
  grid-column: auto;
  grid-row: auto;
}

/* Stack de 3 cards verticalmente - misma altura que card featured */
.donations-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  height: 100%;
}

.donations-stack .involvement-card-modern {
  width: 100%;
  padding: 1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.donations-stack .involvement-card-modern h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.donations-stack .involvement-card-modern p {
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 0;
  color: var(--text-secondary);
}

.donations-stack .card-modern-header {
  margin-bottom: 0.6rem;
}

.donations-stack .icon-modern {
  width: 42px;
  height: 42px;
}

/* Botón único para las 3 cards */
.btn-donations-contact {
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(216, 93, 58, 0.2);
  margin-top: 0.85rem;
}

.btn-donations-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(216, 93, 58, 0.3);
}

.btn-donations-contact svg {
  width: 20px;
  height: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .involvement-grid-two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .involvement-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .involvement-card-modern.featured {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .involvement-card-modern:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .involvement-card-modern:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .involvement-card-modern:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
  }

  .involvement-card-modern:nth-child(5) {
    grid-column: 2;
    grid-row: 3;
  }

  .involvement-card-modern:nth-child(6) {
    grid-column: 1;
    grid-row: 4;
  }
}

@media (max-width: 768px) {
  .involvement-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .involvement-card-modern {
    padding: 2rem;
  }

  .involvement-card-modern.featured,
  .involvement-card-modern:nth-child(2),
  .involvement-card-modern:nth-child(3),
  .involvement-card-modern:nth-child(4),
  .involvement-card-modern:nth-child(5),
  .involvement-card-modern:nth-child(6) {
    grid-column: 1;
    grid-row: auto;
  }

  .price-modern .amount {
    font-size: 2.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .involvement-header {
    margin-bottom: 3rem;
  }

  .involvement-subtitle {
    font-size: 1.1rem;
  }
}

/* ==========================================
   BOT�N FLOTANTE DE DONACIONES
   ========================================== */

.floating-form-trigger {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, #d85d3a 0%, #ff8566 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  font-weight: 600;
  font-size: 1rem;
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulse 2s infinite;
}

.floating-form-trigger:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.floating-form-trigger svg {
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(216, 93, 58, 0.2), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  }
}

/* Overlay para modales flotantes */
.floating-form-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.floating-form-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal flotante de donaciones */
.floating-donation-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 90vw;
  width: 600px;
  max-height: 85vh;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  display: flex;
  flex-direction: column;
}

.floating-donation-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.floating-form-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.floating-form-close:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: rotate(90deg);
}

.floating-donation-header {
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.floating-donation-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.floating-donation-content iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: none;
}

@media (max-width: 768px) {
  .floating-form-trigger {
    bottom: 1rem;
    right: 1rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .floating-form-trigger span {
    display: none;
  }
  
  .floating-donation-modal {
    width: 95vw;
    max-height: 90vh;
  }
  
  .floating-donation-header {
    padding: 1.5rem 1rem;
  }
  
  .floating-donation-header h3 {
    font-size: 1.5rem \!important;
  }
}

/* ==========================================
   SECCI�N ALIANZAS
   ========================================== */

.section-divider {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2rem 0 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.logo-carousel {
  overflow: hidden;
  padding: 2rem 0;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-carousel-track {
  display: flex;
  gap: 3rem;
  animation: scroll 30s linear infinite;
  width: max-content;
}

.logo-carousel-track[style*="reverse"] {
  animation-direction: reverse;
}

.logo-item {
  flex-shrink: 0;
  width: 180px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.logo-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: filter var(--transition-base);
}

.logo-item:hover img {
  filter: grayscale(0%) opacity(1);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50%));
  }
}

@media (max-width: 768px) {
  .logo-item {
    width: 140px;
    height: 80px;
  }

  .logo-carousel-track {
    gap: 2rem;
  }
}
