/* Reset y configuración base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: #e4e4e7;
  background-color: #09090b;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  overflow-y: visible;
}

::selection {
  background-color: rgba(16, 185, 129, 0.2);
}

/* Estilos personalizados para la barra de scroll */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 50%, #34d399 100%);
  border-radius: 6px;
  border: 2px solid rgba(9, 9, 11, 0.1);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #34d399 0%, #1e40af 50%, #6ee7b7 100%);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(135deg, #059669 0%, #1d4ed8 50%, #047857 100%);
}

/* Para Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #10b981 #1f2937;
}

/* Background Accents */
.background-accents {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -10;
}

.background-gradient {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  filter: blur(3rem);
  background: radial-gradient(800px 400px at 20% 10%, rgba(16, 185, 129, 0.35), transparent 60%),
    radial-gradient(700px 350px at 85% 15%, rgba(59, 130, 246, 0.25), transparent 60%);
}

.top-border {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.75rem 1rem 0;
}

@media (min-width: 640px) {
  .header-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .header-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 1rem;
  border: 2px solid transparent;

  backdrop-filter: blur(24px);
  padding: 0.5rem 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(16, 185, 129, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  animation: navBarGlow 4s ease-in-out infinite alternate;
}

.nav-bar::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;

  border-radius: 1rem;
  z-index: -1;
  animation: navBarBorderRotate 8s linear infinite;
  opacity: 0.8;
  will-change: transform;
}

@keyframes navBarGlow {
  0% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35),
      0 0 0 1px rgba(16, 185, 129, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  100% {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(59, 130, 246, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
}

@keyframes navBarBorderRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@media (min-width: 640px) {
  .nav-bar {
    padding-left: 1rem;
    padding-right: 2rem;
    justify-content: space-between;
  }
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  display: inline-flex;
  height: 2.5rem;
  width: 8rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background-color: transparent;
  overflow: hidden;
}

@media (max-width: 768px) {
  .brand-logo {
    height: 1.25rem;
    width: 4rem;
  }
}

.brand-logo-link {
  display: inline-flex;
  text-decoration: none;
  transition: all 0.3s ease;
}

.brand-logo-link:hover {
  transform: scale(1.05);
}

.brand-logo-link:hover .brand-logo-img {
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}

/* Evitar scroll horizontal en toda la página */
html,
body {
  overflow-x: hidden;
}

/* Prevent long headings from causing horizontal overflow */
.title,
.subtitle {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  max-width: 100%;
}

/* Ajustes específicos para móvil en español para evitar desbordes en el hero */
@media (max-width: 640px) {
  html[lang="es"] .title {
    /* Forzar ~3 líneas: limitar ancho y balancear saltos */
    font-size: 2.4rem;
    line-height: 1.15;
    max-width: 22ch;
    text-wrap: balance;
    margin-left: auto;
    margin-right: auto;
  }

  html[lang="es"] .subtitle {
    font-size: 1rem;
  }

  .hero-container,
  .hero-grid,
  .hero-content {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Evitar cortes en badge/stats/CTAs en móvil */
  .badge .badge-text {
    white-space: normal;
    max-width: 28ch;
  }

  .hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .stat-item {
    min-width: calc(50% - 0.5rem);
  }

  .ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .cta-primary,
  .cta-secondary {
    white-space: normal;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  html[lang="es"] .title {
    /* Mantener 3 líneas aproximadas en pantallas más pequeñas */
    font-size: 2.2rem;
    max-width: 20ch;
  }
}

.brand-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* Navigation */
.nav-links {
  display: none;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
}

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

.nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  transition: all 0.2s;
  font-weight: 500;
  text-decoration: none;
  color: inherit;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
  font-weight: 600;
}

/* Menú móvil (panel desplegable) */
@media (max-width: 767px) {
  .nav-bar {
    overflow: visible;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(24, 24, 27, 0.95) 0%, rgba(39, 39, 42, 0.85) 100%);
    backdrop-filter: blur(16px);
    z-index: 50;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  }

  .nav-links.open .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background-color: rgba(24, 24, 27, 0.6);
  }

  .nav-links.open .nav-link.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
    font-weight: 600;
  }
}

/* Actions */
.actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Language Toggle Button */
.language-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 0.5rem;
  color: #e4e4e7;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 2.5rem;
  height: 2.5rem;
}

.language-toggle-btn:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
  border-color: rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.language-toggle-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

.search-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.75rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  transition: all 0.2s;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: inherit;
}

.search-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
  .search-btn {
    display: inline-flex;
  }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  width: 2rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  transition: all 0.2s;
  cursor: pointer;
}

.icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Botón Academy Platform - Muy Llamativo */
.academy-platform-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  padding: 0 1.5rem;
  border-radius: 0.75rem;
  border: none;
  background: #10b981;
  color: white;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;


  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.academy-platform-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), rgba(59, 130, 246, 0.2), transparent);
  transition: left 0.5s ease;
}

.academy-platform-btn:hover::before {
  left: 100%;
}

.academy-platform-btn:hover {
  background: #34d399;
  transform: translateY(-2px);
}

.academy-platform-btn:active {
  transform: translateY(0);
}

/* Reducir ancho del botón Academy Platform en móvil */
@media (max-width: 768px) {
  .academy-platform-btn {
    padding: 0 0.75rem;
    align-items: center;
    text-align: center;
    justify-content: center;
    width: 120px;
    margin: 10px
  }
}



.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  width: 2rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  transition: all 0.2s;
  cursor: pointer;
}

.mobile-menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn .icon {
  color: white;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Icons */
.icon {
  width: 1rem;
  height: 1rem;
  stroke-width: 1.5;
}

/* Main Content */
.main {
  position: relative;
  overflow: visible;
}

.hero-section {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  position: relative;
  overflow: visible;
  background:
    radial-gradient(ellipse 800px 400px at 20% 20%, rgba(16, 185, 129, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 600px 300px at 80% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 1000px 500px at center, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.08) 50%, transparent 70%);
  margin-top: -6rem;
  padding-top: 6rem;
}

.hero-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .hero-section {
    padding-top: 6rem;
  }

  .hero-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .hero-section {
    padding-top: 6rem;
  }
}

@media (min-width: 1024px) {
  .hero-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 3rem;
  }
}

.hero-content {
  grid-column: span 12;
}

@media (max-width: 768px) {
  .hero-content {
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    grid-column: span 7;
  }
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid #3b82f6;
  background-color: rgba(16, 185, 129, 0.1);
  padding: 0 0.75rem;
  height: 2rem;
  color: #6ee7b7;
}

.badge-icon {
  width: 0.875rem;
  height: 0.875rem;
  stroke-width: 1.5;
}

.badge-text {
  font-size: 0.75rem;
  font-weight: 600;
}

/* Title */
.title {
  margin-top: 1.25rem;
  font-size: 3.25rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: white;
}

/* Contact Hero Title */
.contact-hero-title {
  padding-bottom: 1em;
}

/* Language Button */
.language-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.language-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.language-btn .icon {
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  .language-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
  }

  .language-btn .icon {
    width: 14px;
    height: 14px;
  }
}

@media (min-width: 640px) {
  .title {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .title {
    font-size: 3.75rem;
  }
}

/* Subtitle */
.subtitle {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: #d4d4d8;
  max-width: 32rem;
}

@media (min-width: 640px) {
  .subtitle {
    margin-top: 1.25rem;
    font-size: 1.25rem;
  }
}

@media (min-width: 768px) {
  .subtitle {
    font-size: 1.375rem;
  }
}

/* CTAs */
.ctas {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .ctas {
    margin-top: 2rem;
    flex-direction: row;
    align-items: center;
  }
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  height: 2.75rem;
  padding: 0 1.25rem;
  background-color: #10b981;
  color: #064e3b;
  transition: all 0.2s;
  box-shadow: 0 12px 30px -12px rgba(16, 185, 129, 0.8);
  font-weight: 600;
  text-decoration: none;
}

.cta-primary:hover {
  background-color: #34d399;
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  height: 2.75rem;
  padding: 0 1.25rem;
  background-color: #18181b;
  border: 1px solid #27272a;
  color: #e4e4e7;
  transition: all 0.2s;
  font-weight: 600;
  text-decoration: none;
}

.cta-secondary:hover {
  border-color: #3f3f46;
}

.cta-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  height: 2.75rem;
  padding: 0 1rem;
  background-color: #18181b;
  border: 1px solid #27272a;
  color: #e4e4e7;
  transition: all 0.2s;
  cursor: pointer;
}

.cta-demo:hover {
  border-color: #3f3f46;
}

/* Social Proof */
.social-proof {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .social-proof {
    margin-top: 2rem;
  }
}

.avatar-group {
  display: flex;
  margin-left: -0.5rem;
}

.avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #09090b;
  border: 1px solid #27272a;
}

.avatar:not(:first-child) {
  margin-left: -0.5rem;
}

.social-text {
  font-size: 0.75rem;
  color: #a1a1aa;
}

@media (min-width: 640px) {
  .social-text {
    font-size: 0.875rem;
  }
}

.social-number {
  color: #e4e4e7;
  font-weight: 600;
}

/* Metrics */
.metrics {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 28rem;
  gap: 1rem;
}

.metric-card {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1rem;
}

.metric-value {
  font-size: 1.5rem;
  color: white;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.metric-label {
  font-size: 0.75rem;
  color: #a1a1aa;
  margin-top: 0.25rem;
}

/* Visual Card */
.visual-card {
  grid-column: span 12;
  position: relative;
  border-radius: 1.5rem;
  border: none;
  background-color: transparent;
  backdrop-filter: none;
  overflow: hidden;
  box-shadow: none;
}

@media (min-width: 1024px) {
  .visual-card {
    grid-column: span 5;
  }
}

/* Model Viewer */
.model-viewer-container {
  position: relative;
  width: 100%;
  height: 600px;
  background: transparent;
  border-radius: 1rem 1rem 0 0;
  overflow: visible;
  border: none;
  opacity: 0;
  animation: fadeInContainer 1s ease-in-out forwards;

}

@keyframes fadeInContainer {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

model-viewer {
  width: 100%;
  height: 100%;
  background-color: transparent;
  --poster-color: transparent;
  --progress-bar-color: #10b981;
  --progress-mask: rgba(255, 255, 255, 0.1);
  pointer-events: auto !important;
  user-select: auto !important;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  opacity: 0;
  animation: fadeIn3D 2s ease-in-out forwards;
  animation-delay: 0.5s;
}

model-viewer::part(default-progress-mask) {
  display: none !important;
}

model-viewer::part(default-progress-bar) {
  display: none !important;
}

model-viewer::part(progress-bar) {
  display: none !important;
}

/* Desactivar interactividad del model-viewer en móvil */
@media (max-width: 768px) {
  model-viewer {
    pointer-events: none !important;
    /* Deshabilitar completamente las funcionalidades 3D en móvil */
    camera-controls: none !important;
    interaction-prompt: none !important;
    disable-zoom: true !important;
    disable-pan: true !important;
    disable-tap: true !important;
    disable-rotate: true !important;
  }

  model-viewer::part(default-progress-mask) {
    display: none !important;
  }

  model-viewer::part(default-progress-bar) {
    display: none !important;
  }

  model-viewer::part(progress-bar) {
    display: none !important;
  }

  /* Ocultar indicador de interacción en móvil */
  model-viewer::part(interaction-prompt) {
    display: none !important;
  }

  model-viewer::part(interaction-prompt-info) {
    display: none !important;
  }

  /* Ocultar controles de cámara */
  model-viewer::part(default-progress-bar) {
    display: none !important;
  }

  /* Deshabilitar animaciones automáticas en móvil */
  model-viewer {
    animation-loop: false !important;
    autoplay: false !important;
  }
}

@keyframes fadeIn3D {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.98);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Model Loading */


/* Model Overlay */
.model-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.model-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.model-label {
  background-color: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.model-status {
  background-color: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.625rem;
  font-weight: 500;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Animation Controls */
.animation-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: auto;
}

.anim-btn {
  background-color: rgba(24, 24, 27, 0.8);
  color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.anim-btn:hover {
  background-color: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.anim-btn.active {
  background-color: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #10b981;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.3);
}

.animation-info {
  margin-top: 0.5rem;
  padding: 0.25rem 0.5rem;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.current-anim {
  color: #10b981;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.debug-btn {
  margin-top: 0.5rem;
  background-color: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.625rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  pointer-events: auto;
}

.debug-btn:hover {
  background-color: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
}

/* Hide loading when model is loaded */


/* Window Bar */
.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border-bottom: none;
  background-color: transparent;
}

@media (min-width: 640px) {
  .window-bar {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.window-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
}

.window-dot.red {
  background-color: rgba(248, 113, 113, 0.8);
}

.window-dot.yellow {
  background-color: rgba(251, 191, 36, 0.8);
}

.window-dot.green {
  background-color: rgba(34, 197, 94, 0.8);
}

.window-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #a1a1aa;
}

.window-status-icon {
  width: 0.875rem;
  height: 0.875rem;
  stroke-width: 1.5;
  color: #10b981;
}

/* Card Content */
.card-content {
  padding: 1.25rem;
}

@media (min-width: 640px) {
  .card-content {
    padding: 1.5rem;
  }
}

@media (min-width: 768px) {
  .card-content {
    padding: 1.75rem;
  }
}

/* KPIs */
.kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.kpi-card {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1rem;
}

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-label {
  font-size: 0.75rem;
  color: #a1a1aa;
}

.kpi-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 0.375rem;
  padding: 0.125rem 0.375rem;
  font-size: 0.625rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
  background-color: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
}

.kpi-badge.blue {
  border-color: rgba(59, 130, 246, 0.3);
  background-color: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
}

.kpi-value {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  color: white;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.kpi-progress {
  margin-top: 0.5rem;
  height: 0.375rem;
  width: 100%;
  border-radius: 0.125rem;
  background-color: #27272a;
  overflow: hidden;
}

.kpi-progress-bar {
  height: 100%;
  background-color: #10b981;
}

.kpi-progress-bar.blue {
  background-color: #3b82f6;
}

/* Log List */
.log-list {
  margin-top: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(24, 24, 27, 0.6);
}

.log-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.log-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.log-icon {
  width: 1rem;
  height: 1rem;
  stroke-width: 1.5;
  color: #d4d4d8;
}

.log-time {
  font-size: 0.6875rem;
  color: #a1a1aa;
}

.log-items {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.log-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.log-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
}

.log-dot.green {
  background-color: #10b981;
}

.log-dot.blue {
  background-color: #3b82f6;
}

.log-dot.amber {
  background-color: #f59e0b;
}

.log-text {
  color: #d4d4d8;
}

.log-timestamp {
  margin-left: auto;
  font-size: 0.75rem;
  color: #71717a;
}

/* Footer Actions */
.footer-actions {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.compliance {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #a1a1aa;
}

.compliance-icon {
  width: 0.875rem;
  height: 0.875rem;
  stroke-width: 1.5;
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.optimize-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
  background-color: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  transition: all 0.2s;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.optimize-btn:hover {
  background-color: rgba(16, 185, 129, 0.15);
}

/* Logos */
.logos {
  margin-top: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background-color: rgba(24, 24, 27, 0.4);
  backdrop-filter: blur(24px);
  padding: 0.75rem;
  opacity: 0.8;
}

@media (min-width: 640px) {
  .logos {
    padding: 1rem;
  }
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  height: 1.25rem;
  width: 1.25rem;
  border-radius: 0.125rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-text {
  font-size: 0.75rem;
  color: #a1a1aa;
  letter-spacing: -0.01em;
}

@media (min-width: 640px) {
  .logo-text {
    font-size: 0.875rem;
  }
}

/* Bottom CTA - Super Animated Green Version */
.bottom-cta {
  margin-top: 1rem;
  margin-bottom: 3rem;
  margin-left: 1rem;
  margin-right: 1rem;
  border-radius: 1.5rem;
  border: 2px solid rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg,
      rgba(16, 185, 129, 0.1) 0%,
      rgba(59, 130, 246, 0.15) 25%,
      rgba(34, 197, 94, 0.1) 50%,
      rgba(59, 130, 246, 0.15) 75%,
      rgba(16, 185, 129, 0.1) 100%);
  backdrop-filter: blur(24px);
  padding: 1.5rem 1rem;

  max-width: calc(100% - 2rem);
  position: relative;
  overflow: hidden;
  animation: bottomCtaGlow 3s ease-in-out infinite alternate;
  box-shadow:
    0 10px 20px rgba(16, 185, 129, 0.1),
    0 0 0 1px rgba(16, 185, 129, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@media (min-width: 640px) {
  .bottom-cta {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    max-width: calc(100% - 3rem);
  }
}

@media (min-width: 768px) {
  .bottom-cta {
    margin-left: 2rem;
    margin-right: 2rem;
    max-width: calc(100% - 4rem);
  }
}

@media (min-width: 1280px) {
  .bottom-cta {
    max-width: 76rem;
    margin-left: auto;
    margin-right: auto;
  }
}

.bottom-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 50%, transparent 70%);
  pointer-events: none;
}

.bottom-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg,
      transparent 30%,
      rgba(16, 185, 129, 0.05) 50%,
      rgba(59, 130, 246, 0.05) 60%,
      transparent 70%);
  pointer-events: none;
}

@keyframes bottomCtaGlow {
  0% {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow:
      0 10px 20px rgba(16, 185, 129, 0.1),
      0 0 0 1px rgba(16, 185, 129, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  50% {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow:
      0 12px 25px rgba(59, 130, 246, 0.15),
      0 0 0 1px rgba(59, 130, 246, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  100% {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow:
      0 15px 30px rgba(16, 185, 129, 0.2),
      0 0 0 1px rgba(34, 197, 94, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
}


@media (min-width: 640px) {
  .bottom-cta {
    margin-top: 1.75rem;
    padding: 1.25rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .bottom-cta {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.bottom-cta-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
  text-align: center;
  align-items: center;
}

@media (min-width: 768px) {
  .bottom-cta-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
}

.bottom-cta-text {
  font-size: 0.75rem;
  color: #6ee7b7;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: bottomCtaTextPulse 2s ease-in-out infinite;
}

@keyframes bottomCtaTextPulse {

  0%,
  100% {
    color: #6ee7b7;
    transform: scale(1);
  }

  50% {
    color: #3b82f6;
    transform: scale(1.05);
  }
}

@media (min-width: 640px) {
  .bottom-cta-text {
    font-size: 0.875rem;
  }
}

.bottom-cta-title {
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  color: white;
  margin-top: 0.375rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, #6ee7b7 25%, #3b82f6 50%, #10b981 75%, #1e40af 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: bottomCtaTitleGlow 3s ease-in-out infinite alternate;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.3), 0 0 40px rgba(59, 130, 246, 0.2);
}

@keyframes bottomCtaTitleGlow {
  0% {
    filter: brightness(1);
    transform: scale(1);
  }

  100% {
    filter: brightness(1.2);
    transform: scale(1.02);
  }
}

@media (min-width: 640px) {
  .bottom-cta-title {
    font-size: 1.5rem;
  }
}

.bottom-cta-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .bottom-cta-buttons {
    justify-content: flex-start;
  }
}

.bottom-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 1rem;
  border: 2px solid rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, rgba(24, 24, 27, 0.8) 0%, rgba(39, 39, 42, 0.6) 100%);
  color: #e4e4e7;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.bottom-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.2), rgba(59, 130, 246, 0.2), transparent);
  transition: left 0.5s ease;
}

.bottom-cta-btn:hover::before {
  left: 100%;
}

.bottom-cta-btn:hover {
  border-color: rgba(16, 185, 129, 0.6);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 50%, rgba(34, 197, 94, 0.1) 100%);
  transform: translateY(-2px) scale(1.05);

}

.bottom-cta-btn.primary {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #ffffff;
  border: 2px solid #2563eb;

  animation: bottomCtaPrimaryPulse 2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.bottom-cta-btn.primary::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), rgba(59, 130, 246, 0.2), transparent);
}

@keyframes bottomCtaPrimaryPulse {

  0%,
  100% {
    box-shadow:
      0 15px 35px rgba(37, 99, 235, 0.45),
      0 0 0 1px rgba(37, 99, 235, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(1);
  }

  50% {
    box-shadow:
      0 20px 40px rgba(30, 64, 175, 0.65),
      0 0 0 1px rgba(30, 64, 175, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
  }
}

.bottom-cta-btn.primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
  border-color: #1d4ed8;
  transform: translateY(-3px) scale(1.1);
  box-shadow:
    0 25px 50px rgba(37, 99, 235, 0.55),
    0 0 0 1px rgba(30, 64, 175, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.bottom-cta-btn .icon {
  transition: transform 0.3s ease;
}

.bottom-cta-btn:hover .icon {
  transform: scale(1.2) rotate(5deg);
}

.bottom-cta-btn.primary:hover .icon {
  transform: scale(1.3) rotate(10deg);
}

/* Formulario de Contacto */
.contact-section {
  background: linear-gradient(135deg, rgba(9, 9, 11, 0.95) 0%, rgba(24, 24, 27, 0.9) 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.contact-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-subtitle {
  font-size: 1.125rem;
  color: #a1a1aa;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  border-radius: 0.75rem;
  flex-shrink: 0;
}

.contact-icon .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: white;
}

.contact-details h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.contact-details p {
  font-size: 0.875rem;
  color: #a1a1aa;
  line-height: 1.5;
  margin: 0;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: white;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.form-select {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  cursor: pointer;
}

.form-select option {
  background: #1f2937;
  color: white;
  padding: 0.5rem;
}

.form-select:focus {
  outline: none;
  border-color: #10b981;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #71717a;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #10b981;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  margin-bottom: 2rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #a1a1aa;
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom {
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  border-color: #10b981;
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
}

.privacy-link {
  color: #10b981;
  text-decoration: none;
  transition: color 0.3s ease;
}

.privacy-link:hover {
  color: #34d399;
}

.contact-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  border: none;
  border-radius: 0.75rem;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.contact-submit:hover::before {
  left: 100%;
}

.contact-submit:active {
  transform: translateY(0);
}

.contact-submit .icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Animación de spin para el loader */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, rgba(9, 9, 11, 0.95) 0%, rgba(24, 24, 27, 0.9) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);

}

.footer-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem 1.5rem;
}

@media (min-width: 640px) {
  .footer-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .footer-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Footer Top */
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.footer-logo {
  display: inline-flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background-color: #10b981;
  color: #064e3b;
  flex-shrink: 0;
}

.footer-logo span {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.footer-brand-info {
  flex: 1;
}

.footer-name {
  font-size: 1.25rem;
  color: white;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.footer-tagline {
  font-size: 0.875rem;
  color: #a1a1aa;
  line-height: 1.5;
}

/* Newsletter */
.footer-newsletter {
  max-width: 20rem;
}

.newsletter-title {
  font-size: 1rem;
  color: white;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.newsletter-subtitle {
  font-size: 0.875rem;
  color: #a1a1aa;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.newsletter-input::placeholder {
  color: #71717a;
}

.newsletter-input:focus {
  outline: none;
  border-color: #10b981;
  background-color: rgba(255, 255, 255, 0.1);
}

.newsletter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #10b981;
  background-color: #10b981;
  color: #064e3b;
  transition: all 0.2s ease;
  cursor: pointer;
}

.newsletter-btn:hover {
  background-color: #34d399;
  transform: translateY(-1px);
}

.newsletter-btn .icon {
  width: 1rem;
  height: 1rem;
}

/* Footer Links */
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-links {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }
}

.footer-column-title {
  font-size: 0.875rem;
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 0.5rem;
}

.footer-link {
  font-size: 0.875rem;
  color: #a1a1aa;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #6ee7b7;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copyright {
  font-size: 0.75rem;
  color: #71717a;
  margin: 0;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  border: 2px solid rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
  color: #10b981;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-link:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4) 0%, rgba(59, 130, 246, 0.4) 100%);
  border-color: rgba(16, 185, 129, 0.6);
  color: #34d399;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.social-link:hover::before {
  opacity: 1;
}

.social-link:active {
  transform: translateY(-1px) scale(1.02);
}

.social-link .icon {
  width: 1.5rem;
  height: 1.5rem;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.social-link:hover .icon {
  transform: scale(1.2) rotate(5deg);
}

/* Sección de Tarjetas Oscilantes */
.oscillating-cards-section {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1rem;
  position: relative;
}

@media (min-width: 640px) {
  .oscillating-cards-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .oscillating-cards-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.cards-container {
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: white;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: #a1a1aa;
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.6;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  perspective: 1000px;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

/* Tarjetas Reversibles */
.flip-card {
  background-color: transparent;
  width: 100%;
  height: 400px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background: linear-gradient(135deg, rgba(24, 24, 27, 0.8) 0%, rgba(39, 39, 42, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2rem;
  backdrop-filter: blur(20px);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-start;
}

.flip-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 50%, rgba(39, 39, 42, 0.8) 100%);
  border-color: rgba(16, 185, 129, 0.2);
}

/* Lista de características para el reverso */
.card-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  text-align: left;
}

.card-features li {
  color: #d4d4d8;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.card-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
  font-size: 0.875rem;
}

.flip-card-back .card-features li {
  color: #e4e4e7;
}

.flip-card-back .card-features li::before {
  color: #6ee7b7;
}

/* Efectos de hover para las tarjetas reversibles */
.flip-card:hover .flip-card-front {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(16, 185, 129, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.flip-card:hover .flip-card-back {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow:
    0 15px 35px rgba(16, 185, 129, 0.2),
    0 0 0 1px rgba(16, 185, 129, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Efectos de oscilación específicos para cada tarjeta */
.oscillating-card { will-change: transform; }

.oscillating-card[data-tilt="1"]:hover {
  transform: translateY(-8px) rotateX(3deg) rotateY(-2deg);
  animation: oscillate-1 2s ease-in-out infinite;
}

.oscillating-card[data-tilt="2"]:hover {
  transform: translateY(-8px) rotateX(-2deg) rotateY(3deg);
  animation: oscillate-2 2.2s ease-in-out infinite;
}

.oscillating-card[data-tilt="3"]:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(2deg);
  animation: oscillate-3 1.8s ease-in-out infinite;
}

.oscillating-card[data-tilt="4"]:hover {
  transform: translateY(-8px) rotateX(-3deg) rotateY(-1deg);
  animation: oscillate-4 2.1s ease-in-out infinite;
}

.oscillating-card[data-tilt="5"]:hover {
  transform: translateY(-8px) rotateX(1deg) rotateY(-3deg);
  animation: oscillate-5 1.9s ease-in-out infinite;
}

.oscillating-card[data-tilt="6"]:hover {
  transform: translateY(-8px) rotateX(-1deg) rotateY(2deg);
  animation: oscillate-6 2.3s ease-in-out infinite;
}

/* Animaciones de oscilación */
@keyframes oscillate-1 {

  0%,
  100% {
    transform: translateY(-8px) rotateX(3deg) rotateY(-2deg);
  }

  50% {
    transform: translateY(-12px) rotateX(5deg) rotateY(-4deg);
  }
}

@keyframes oscillate-2 {

  0%,
  100% {
    transform: translateY(-8px) rotateX(-2deg) rotateY(3deg);
  }

  50% {
    transform: translateY(-12px) rotateX(-4deg) rotateY(5deg);
  }
}

@keyframes oscillate-3 {

  0%,
  100% {
    transform: translateY(-8px) rotateX(2deg) rotateY(2deg);
  }

  50% {
    transform: translateY(-12px) rotateX(4deg) rotateY(4deg);
  }
}

@keyframes oscillate-4 {

  0%,
  100% {
    transform: translateY(-8px) rotateX(-3deg) rotateY(-1deg);
  }

  50% {
    transform: translateY(-12px) rotateX(-5deg) rotateY(-3deg);
  }
}

@keyframes oscillate-5 {

  0%,
  100% {
    transform: translateY(-8px) rotateX(1deg) rotateY(-3deg);
  }

  50% {
    transform: translateY(-12px) rotateX(3deg) rotateY(-5deg);
  }
}

@keyframes oscillate-6 {

  0%,
  100% {
    transform: translateY(-8px) rotateX(-1deg) rotateY(2deg);
  }

  50% {
    transform: translateY(-12px) rotateX(-3deg) rotateY(4deg);
  }
}

.card-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Estilos de iconos para tarjetas reversibles - ya definidos arriba */

/* Estilos de iconos para tarjetas reversibles */
.flip-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.flip-card:hover .card-icon::before {
  opacity: 1;
}

.flip-card .card-icon .icon {
  width: 2rem;
  height: 2rem;
  color: #3b82f6;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.flip-card:hover .card-icon .icon {
  color: white;
  transform: scale(1.1);
}

.flip-card-back .card-icon .icon {
  color: #3b82f6;
}

.flip-card:hover .flip-card-back .card-icon .icon {
  color: white;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
  transition: all 0.3s ease;
  text-align: center;
}

/* Estilos de títulos y descripciones para tarjetas reversibles */
.flip-card:hover .card-title {
  color: #6ee7b7;
  transform: translateY(-2px);
}

.flip-card-back .card-title {
  color: #e4e4e7;
}

.flip-card:hover .flip-card-back .card-title {
  color: #6ee7b7;
}

.card-description {
  font-size: 0.875rem;
  color: #a1a1aa;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  text-align: center;
}

/* Quitar bullets de las listas en tarjetas */
.card-features {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.flip-card:hover .card-description {
  color: #d4d4d8;
  transform: translateY(-1px);
}

.card-metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  text-align: center;
  align-self: center;
  width: fit-content;
}

/* Estilos de métricas para tarjetas reversibles */
.flip-card:hover .card-metric {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}

.flip-card-back .card-metric {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

.flip-card:hover .flip-card-back .card-metric {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
}

.metric-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #10b981;
  letter-spacing: -0.025em;
  transition: all 0.3s ease;
}

.flip-card:hover .metric-number {
  color: #6ee7b7;
  transform: scale(1.05);
}

.flip-card-back .metric-number {
  color: #6ee7b7;
}

.flip-card:hover .flip-card-back .metric-number {
  color: #34d399;
}

.metric-label {
  font-size: 0.75rem;
  color: #71717a;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.flip-card:hover .metric-label {
  color: #a1a1aa;
}

.flip-card-back .metric-label {
  color: #a1a1aa;
}

.flip-card:hover .flip-card-back .metric-label {
  color: #d4d4d8;
}

/* Efectos de partículas flotantes */
.oscillating-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}

.oscillating-card:hover::after {
  opacity: 1;
  animation: float-particles 3s ease-in-out infinite;
}

@keyframes float-particles {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(10px, -10px) rotate(120deg);
  }

  66% {
    transform: translate(-5px, 5px) rotate(240deg);
  }
}

/* Responsive adjustments para tarjetas reversibles */
@media (max-width: 639px) {
  .flip-card {
    height: 350px;
  }

  .flip-card-front,
  .flip-card-back {
    padding: 1.5rem;
  }

  .card-icon {
    width: 3.5rem;
    height: 3.5rem;
  }

  .card-icon .icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .card-features li {
    font-size: 0.8125rem;
  }
}

/* Sección de Testimonios */
.testimonials-section {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1rem;
  position: relative;
}

@media (min-width: 640px) {
  .testimonials-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .testimonials-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .testimonials-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.testimonials-container {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: white;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .testimonials-title {
    font-size: 3rem;
  }
}

.testimonials-subtitle {
  font-size: 1.125rem;
  color: #a1a1aa;
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.6;
}

/* Carousel de Testimonios */
.testimonials-carousel {
  margin-bottom: 4rem;
  position: relative;
  overflow-x: hidden;
}

.carousel-container {
  cursor: grab;
  user-select: none;
  transition: cursor 0.2s ease;
}

.carousel-container.dragging {
  cursor: grabbing;
}

.carousel-container:hover {
  cursor: grab;
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  width: calc(600% + 11rem);
  /* 12 testimonios + gaps */
  will-change: transform;
}

/* Ajustar el ancho de las tarjetas para el carousel */
.testimonials-carousel .testimonial-card {
  flex: 0 0 calc(25% - 1.5rem);
  /* 4 tarjetas visibles */
  min-width: 280px;
  max-width: 320px;
}

@media (min-width: 640px) {
  .testimonials-carousel .testimonial-card {
    flex: 0 0 calc(33.333% - 1.33rem);
    /* 3 tarjetas visibles en tablet */
    min-width: 260px;
    max-width: 300px;
  }
}

@media (min-width: 1024px) {
  .testimonials-carousel .testimonial-card {
    flex: 0 0 calc(25% - 1.5rem);
    /* 4 tarjetas visibles en desktop */
    min-width: 280px;
    max-width: 320px;
  }
}

@media (max-width: 639px) {
  .testimonials-carousel .testimonial-card {
    flex: 0 0 calc(100% - 1rem);
    /* 1 tarjeta visible en móvil */
    min-width: 260px;
    max-width: 300px;
  }
}

/* Efectos de fade en los bordes del carousel */
.carousel-fade-left,
.carousel-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4rem;
  pointer-events: none;
  z-index: 10;
}

.carousel-fade-left {
  left: 0;
  background: linear-gradient(to right, rgba(9, 9, 11, 0.9) 0%, transparent 100%);
}

.carousel-fade-right {
  right: 0;
  background: linear-gradient(to left, rgba(9, 9, 11, 0.9) 0%, transparent 100%);
}

@media (max-width: 639px) {

  .carousel-fade-left,
  .carousel-fade-right {
    width: 2rem;
  }
}

.testimonial-card {
  position: relative;
  background: linear-gradient(135deg, rgba(24, 24, 27, 0.9) 0%, rgba(39, 39, 42, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  overflow: hidden;
  transform-style: preserve-3d;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(16, 185, 129, 0.05) 0%,
      rgba(59, 130, 246, 0.05) 50%,
      rgba(139, 92, 246, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 1.5rem;
  z-index: -1;
}

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

.testimonial-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(16, 185, 129, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Efectos específicos para cada testimonio - eliminados los efectos de transformación */

/* Animaciones de flotación eliminadas */

.testimonial-content {
  margin-bottom: 1rem;
}

.quote-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.testimonial-card:hover .quote-icon {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.quote-icon .icon {
  width: 1rem;
  height: 1rem;
  color: #10b981;
  transition: all 0.3s ease;
}

.testimonial-card:hover .quote-icon .icon {
  color: white;
}

.testimonial-text {
  font-size: 0.875rem;
  color: #d4d4d8;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card:hover .testimonial-text {
  color: white;
}

.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stars {
  display: flex;
  gap: 0.25rem;
}

.star {
  width: 1rem;
  height: 1rem;
  color: #fbbf24;
  transition: all 0.3s ease;
  fill: currentColor;
}

.star.filled {
  color: #fbbf24;
  fill: #fbbf24;
}

.star.empty {
  color: #6b7280;
  fill: none;
  stroke: #6b7280;
  stroke-width: 2;
}

.testimonial-card:hover .star.filled {
  color: #f59e0b;
  fill: #f59e0b;
}

.testimonial-card:hover .star.empty {
  color: #9ca3af;
  stroke: #9ca3af;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-author {
  border-top-color: rgba(16, 185, 129, 0.3);
}

.author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.testimonial-card:hover .author-avatar {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.25rem;
  transition: all 0.3s ease;
}

.testimonial-card:hover .author-name {
  color: #6ee7b7;
}

.author-role {
  font-size: 0.75rem;
  color: #a1a1aa;
  margin-bottom: 0.125rem;
  transition: all 0.3s ease;
}

.testimonial-card:hover .author-role {
  color: #d4d4d8;
}

.author-company {
  font-size: 0.6875rem;
  color: #71717a;
  font-weight: 500;
  transition: all 0.3s ease;
}

.testimonial-card:hover .author-company {
  color: #a1a1aa;
}

/* Enlace de Google Reviews */
.testimonial-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 0.75rem;
  color: #6ee7b7;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.testimonial-card:hover .testimonial-link {
  opacity: 1;
  transform: translateY(0);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.testimonial-link .icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-link .icon {
  transform: scale(1.1);
}

/* Estilos específicos para el enlace cuando se hace hover directamente */
.testimonial-link:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%);
  border-color: rgba(16, 185, 129, 0.6);
  color: #34d399;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.testimonial-link:hover .icon {
  transform: scale(1.2);
}

/* Quitar subrayado de enlaces de testimonios */
.testimonial-card {
  text-decoration: none;
  color: inherit;
}

.testimonial-card:hover {
  text-decoration: none;
  color: inherit;
}

.testimonial-card:visited {
  text-decoration: none;
  color: inherit;
}

.testimonial-card:focus {
  text-decoration: none;
  color: inherit;
  outline: none;
}

/* Estadísticas de satisfacción */
.satisfaction-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(24, 24, 27, 0.8) 0%, rgba(39, 39, 42, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  backdrop-filter: blur(20px);
}

@media (min-width: 640px) {
  .satisfaction-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }
}

.stat-item {
  text-align: center;
  transition: all 0.3s ease;
}

/* Efectos de hover de estadísticas eliminados */

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #10b981;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
  color: #6ee7b7;
}

.stat-label {
  font-size: 0.75rem;
  color: #a1a1aa;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.stat-item:hover .stat-label {
  color: #d4d4d8;
}

/* Efectos de partículas para testimonios */
.testimonial-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}

.testimonial-card:hover::after {
  opacity: 1;
  animation: testimonial-particles 4s ease-in-out infinite;
}

@keyframes testimonial-particles {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(8px, -8px) rotate(90deg);
  }

  50% {
    transform: translate(-4px, 4px) rotate(180deg);
  }

  75% {
    transform: translate(6px, 6px) rotate(270deg);
  }
}

/* Responsive adjustments para testimonios */
@media (max-width: 639px) {
  .testimonial-card {
    padding: 1.5rem;
  }

  .testimonials-title {
    font-size: 2rem;
  }

  .testimonials-subtitle {
    font-size: 1rem;
  }

  .satisfaction-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }
}

/* Sección de Preguntas Frecuentes */
.faq-section {
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1rem;
  position: relative;
  overflow: visible;
  background: #09090b;
}

.faq-image-container {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.faq-image {
  max-width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.faq-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}



@media (min-width: 640px) {
  .faq-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .faq-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .faq-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.faq-container {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: white;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .faq-title {
    font-size: 3rem;
  }
}

.faq-subtitle {
  font-size: 1.125rem;
  color: #a1a1aa;
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.6;
}

.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(24, 24, 27, 0.8) 0%, rgba(39, 39, 42, 0.6) 100%);
  backdrop-filter: blur(20px);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: transparent;
  border: none;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: #6ee7b7;
}

.faq-question[aria-expanded="true"] {
  color: #10b981;
}

.faq-question span {
  flex: 1;
  margin-right: 1rem;
}

.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #a1a1aa;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.faq-question:hover .faq-icon {
  color: #6ee7b7;
}

.faq-question[aria-expanded="true"] .faq-icon {
  color: #10b981;
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: rgba(0, 0, 0, 0.2);
}

.faq-answer.open {
  max-height: 200px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  color: #d4d4d8;
  line-height: 1.7;
  margin: 0;
  font-size: 0.875rem;
}

/* Responsive adjustments para FAQ */
@media (max-width: 639px) {
  .faq-section {
    padding: 3rem 1rem;
  }

  .faq-image-container {
    margin-bottom: 2rem;
  }

  .faq-image {
    max-height: 150px;
  }

  .faq-title {
    font-size: 2rem;
  }

  .faq-subtitle {
    font-size: 1rem;
  }

  .faq-question {
    padding: 1.25rem;
    font-size: 0.875rem;
  }

  .faq-answer.open {
    padding: 0 1.25rem 1.25rem;
  }

  .faq-answer p {
    font-size: 0.8125rem;
  }
}

/* Sección Informativa */
.info-section {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1rem;
  position: relative;
}

@media (min-width: 640px) {
  .info-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .info-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.info-container {
  position: relative;
}

.info-header {
  text-align: center;
  margin-bottom: 3rem;
}

.info-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: white;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .info-title {
    font-size: 3rem;
  }
}

.info-subtitle {
  font-size: 1.125rem;
  color: #a1a1aa;
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.6;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .info-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.info-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #10b981, #3b82f6, #34d399);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.info-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #10b981, #3b82f6);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.info-card:hover .info-icon {
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.info-icon .icon {
  width: 2rem;
  height: 2rem;
  color: white;
}

.info-icon .team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

.professor-info {
  margin-bottom: 1.5rem;
}

.professor-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #10b981;
  margin-bottom: 0.75rem;
  text-align: center;
}

.professor-qualifications {
  list-style: none;
  padding: 0;
  margin: 0;
}

.professor-qualifications li {
  font-size: 0.8rem;
  color: #a1a1aa;
  margin-bottom: 0.4rem;
  padding-left: 1rem;
  position: relative;
  line-height: 1.4;
}

.professor-qualifications li::before {
  content: "•";
  color: #10b981;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.info-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.info-card-description {
  font-size: 0.875rem;
  color: #a1a1aa;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Bulleted resource list inside info cards */
.resource-list {
  margin: 0.25rem 0 0;
  padding-left: 1.25rem;
  text-align: left;
  color: #a1a1aa;
  font-size: 0.875rem;
  line-height: 1.6;
}

.resource-list li {
  margin: 0.125rem 0;
}

/* Contact actionable links inside info cards */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(24, 24, 27, 0.8) 0%, rgba(39, 39, 42, 0.6) 100%);
  color: #e4e4e7;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8125rem;
  transition: all 0.25s ease;
}

.contact-link:hover {
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.15);
}

.contact-link .icon {
  width: 1rem;
  height: 1rem;
}

.info-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

/* Discreet label style for Resources within info cards */
.info-card .stat-number {
  font-size: 0.75rem;
  color: #10b981;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.04));
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  line-height: 1;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #10b981;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.info-highlight {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 1.5rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.info-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
  border-radius: 1.5rem;
}

.highlight-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .highlight-content {
    flex-direction: column;
    text-align: center;
  }
}

.highlight-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #10b981, #3b82f6);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-icon .icon {
  width: 2rem;
  height: 2rem;
  color: white;
}

.highlight-text {
  flex: 1;
}

.highlight-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.highlight-description {
  font-size: 1rem;
  color: #d4d4d8;
  line-height: 1.6;
}

/* Hero específico para IB Subjects */
.ib-subjects-hero {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.ib-subjects-hero .hero-content {
  grid-column: unset;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.ib-subjects-hero .visual-card {
  grid-column: unset;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 1024px) {
  .ib-subjects-hero {
    gap: 4rem;
  }

  .ib-subjects-hero .hero-content {
    max-width: 900px;
  }

  .ib-subjects-hero .visual-card {
    max-width: 700px;
  }
}

/* Hero Stats para IB Subjects */
.hero-stats {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  min-width: 100px;
}

.stat-item:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-item .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #10b981;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-item .stat-label {
  font-size: 0.75rem;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* IB Subjects Visual */
.ib-subjects-visual {
  position: relative;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 1.5rem;
  overflow: hidden;
  padding: 2rem;
}

.subject-icons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 500px;
  margin-bottom: 2rem;
}

.subject-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.75rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  min-height: 80px;
  justify-content: center;
}

.subject-icon:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.subject-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #10b981;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.subject-icon:hover .icon {
  color: #34d399;
  transform: scale(1.1);
}

.subject-icon span {
  font-size: 0.625rem;
  color: #d4d4d8;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.floating-elements {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  pointer-events: none;
  z-index: 1;
}

.floating-card {
  position: absolute;
  padding: 1rem 1.5rem;
  background: rgba(9, 12, 20, 0.88);
  border: 2px solid rgba(16, 185, 129, 0.4);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: float 8s ease-in-out infinite;
  animation-delay: var(--delay);
  opacity: 1;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.2);
  transition: all 0.3s ease;
  will-change: transform;
}

.floating-card:hover {
  transform: scale(1.05);
  border-color: rgba(16, 185, 129, 0.8);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.3);
}

.floating-card .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #10b981;
  transition: all 0.3s ease;
}

.floating-card:hover .icon {
  color: #34d399;
  transform: scale(1.1);
}

.floating-card span {
  font-size: 0.875rem;
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.floating-card:nth-child(1) {
  top: 10%;
  left: 5%;
}

.floating-card:nth-child(2) {
  top: 15%;
  right: 5%;
}

.floating-card:nth-child(3) {
  bottom: 15%;
  left: 10%;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  25% {
    transform: translateY(-5px) rotate(0.5deg);
  }

  50% {
    transform: translateY(-3px) rotate(-0.5deg);
  }

  75% {
    transform: translateY(-7px) rotate(0.25deg);
  }
}

@media (max-width: 768px) {
  .hero-stats {
    gap: 1rem;
  }

  .stat-item {
    min-width: 80px;
    padding: 0.75rem;
  }

  .stat-item .stat-number {
    font-size: 1.5rem;
  }

  .ib-subjects-visual {
    height: 350px;
    padding: 1.5rem;
  }

  .subject-icons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .subject-icon {
    padding: 0.75rem 0.5rem;
    min-height: 70px;
  }

  .subject-icon .icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .subject-icon span {
    font-size: 0.5rem;
  }

  .floating-elements {
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
  }

  .floating-card {
    padding: 0.75rem 1rem;
  }

  .floating-card span {
    font-size: 0.75rem;
  }

  .floating-card .icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  /* Reducir tamaño de estadísticas del hero en español para móvil - 3 columnas */
  html[lang="es"] .metrics .metric-card .metric-value {
    font-size: 1rem;
  }

  html[lang="es"] .metrics .metric-card .metric-label {
    font-size: 0.7rem;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
    line-height: 1.2;
  }

  /* Contenedor de métricas en 3 columnas */
  html[lang="es"] .metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  html[lang="es"] .metric-card {
    min-width: calc(33.333% - 0.334rem);
    max-width: calc(33.333% - 0.334rem);
    flex: 1 1 calc(33.333% - 0.334rem);
  }
}

@media (max-width: 480px) {
  .stat-item {
    flex: 1 1 100%;
  }
}

/* Radial Subjects Section */
.radial-subjects-section {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1rem;
  position: relative;
}

@media (min-width: 640px) {
  .radial-subjects-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .radial-subjects-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.radial-container {
  position: relative;
}

.radial-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.radial-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.radial-subtitle {
  font-size: 1.05rem;
  color: #a1a1aa;
}

.radial-stage {
  position: relative;
  min-height: 780px;
  display: grid;
  place-items: center;
  border-radius: 1.5rem;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(16, 185, 129, 0.12), transparent 60%),
    radial-gradient(40% 40% at 20% 20%, rgba(59, 130, 246, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.1), 0 20px 60px rgba(0, 0, 0, 0.35);
}

.radial-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(80% 80% at 50% 50%, rgba(255, 255, 255, 0.04), transparent 70%);
}

/* Energy waves animation */
.energy-waves {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.wave {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 3px solid;
  transform: translate(-50%, -50%);
  opacity: 0.8;
  filter: drop-shadow(0 0 8px currentColor) drop-shadow(0 0 16px currentColor);
}

.wave-1 {
  width: 120px;
  height: 120px;
  border-color: rgba(16, 185, 129, 0.7);
  color: rgba(16, 185, 129, 0.6);
  animation: energyPulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 8px rgba(16,185,129,0.6)) drop-shadow(0 0 16px rgba(16,185,129,0.4));
}

.wave-2 {
  width: 200px;
  height: 200px;
  border-color: rgba(59, 130, 246, 0.6);
  color: rgba(59, 130, 246, 0.5);
  animation: energyPulse 5s cubic-bezier(0.4, 0, 0.6, 1) infinite 0.8s;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 8px rgba(59,130,246,0.5)) drop-shadow(0 0 16px rgba(59,130,246,0.3));
}

.wave-3 {
  width: 300px;
  height: 300px;
  border-color: rgba(16, 185, 129, 0.5);
  color: rgba(16, 185, 129, 0.4);
  animation: energyPulse 6s cubic-bezier(0.4, 0, 0.6, 1) infinite 1.6s;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 8px rgba(16,185,129,0.4)) drop-shadow(0 0 16px rgba(16,185,129,0.25));
}

.wave-4 {
  width: 420px;
  height: 420px;
  border-color: rgba(52, 211, 153, 0.4);
  color: rgba(52, 211, 153, 0.3);
  animation: energyPulse 7s cubic-bezier(0.4, 0, 0.6, 1) infinite 2.4s;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 8px rgba(52,211,153,0.3)) drop-shadow(0 0 16px rgba(52,211,153,0.2));
}

.wave-5 {
  width: 560px;
  height: 560px;
  border-color: rgba(59, 130, 246, 0.3);
  color: rgba(59, 130, 246, 0.2);
  animation: energyPulse 8s cubic-bezier(0.4, 0, 0.6, 1) infinite 3.2s;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 8px rgba(59,130,246,0.2)) drop-shadow(0 0 16px rgba(59,130,246,0.1));
}

@keyframes energyPulse {
  0%   { transform: translate(-50%, -50%) scale(0.6); opacity: 1;   }
  40%  { transform: translate(-50%, -50%) scale(1.1); opacity: 0.7; }
  80%  { transform: translate(-50%, -50%) scale(1.8); opacity: 0.3; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0;   }
}

/* Light beam effects */
.wave::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 2px solid;
  opacity: 0.6;
  animation: lightBeam 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  filter: drop-shadow(0 0 6px currentColor) drop-shadow(0 0 12px currentColor);
}

.wave::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 1px solid;
  opacity: 0.4;
  animation: lightBeam 4s cubic-bezier(0.4, 0, 0.6, 1) infinite 0.5s;
  filter: drop-shadow(0 0 4px currentColor) drop-shadow(0 0 8px currentColor);
}

.wave-1::before {
  border-color: rgba(16, 185, 129, 0.8);
  color: rgba(16, 185, 129, 0.7);
}

.wave-2::before {
  border-color: rgba(59, 130, 246, 0.7);
  color: rgba(59, 130, 246, 0.6);
}

.wave-3::before {
  border-color: rgba(16, 185, 129, 0.6);
  color: rgba(16, 185, 129, 0.5);
}

.wave-4::before {
  border-color: rgba(52, 211, 153, 0.5);
  color: rgba(52, 211, 153, 0.4);
}

.wave-5::before {
  border-color: rgba(59, 130, 246, 0.4);
  color: rgba(59, 130, 246, 0.3);
}

.wave-1::after {
  border-color: rgba(16, 185, 129, 0.6);
  color: rgba(16, 185, 129, 0.5);
}

.wave-2::after {
  border-color: rgba(59, 130, 246, 0.5);
  color: rgba(59, 130, 246, 0.4);
}

.wave-3::after {
  border-color: rgba(16, 185, 129, 0.4);
  color: rgba(16, 185, 129, 0.3);
}

.wave-4::after {
  border-color: rgba(52, 211, 153, 0.3);
  color: rgba(52, 211, 153, 0.2);
}

.wave-5::after {
  border-color: rgba(59, 130, 246, 0.2);
  color: rgba(59, 130, 246, 0.1);
}

@keyframes lightBeam {
  0%, 100% { opacity: 0.6; transform: scale(1);    }
  50%       { opacity: 1;   transform: scale(1.15); }
}


.radial-core {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(10, 15, 22, 0.92);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 12px 40px rgba(16, 185, 129, 0.25),
    0 0 0 1px rgba(16, 185, 129, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.radial-core:hover {
  transform: scale(1.05);
  box-shadow:
    0 16px 50px rgba(16, 185, 129, 0.35),
    0 0 0 1px rgba(16, 185, 129, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.core-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 100%;
  height: 100%;
}

/* Speech bubble overlay for CTA inside radial core */
.core-cta-text {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e5e7eb;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.core-cta-text::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: rgba(17, 24, 39, 0.9);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  transform: translateX(-50%) rotate(45deg);
}

.radial-core:hover .core-cta-text {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.35);
}

.core-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(16, 185, 129, 0.4));
  transition: all 0.3s ease;
}

.radial-core:hover .core-logo {
  filter: brightness(0) invert(1) drop-shadow(0 6px 16px rgba(16, 185, 129, 0.6));
  animation: logoHoverSpin 2s ease-in-out;
}

@keyframes logoHoverSpin {
  0% {
    transform: rotate(0deg);
    opacity: 1;
  }

  25% {
    opacity: 0.3;
    transform: rotate(90deg);
  }

  50% {
    opacity: 0.1;
    transform: rotate(180deg);
  }

  75% {
    opacity: 0.3;
    transform: rotate(270deg);
  }

  100% {
    opacity: 1;
    transform: rotate(360deg);
  }
}

/* ---------- NEW ORBIT (scoped; replaces old .orbit-list) ---------- */

/* Optional override variables for ring sizes (safe defaults if omitted) */
:root {
  --ring-1: clamp(160px, 34vmin, 260px);
  --ring-2: clamp(240px, 44vmin, 340px);
}

/* mount sits on top of waves, inside the same stage */
.subjects-orbit {
  position: absolute;
  inset: 0;
  z-index: 3;
  /* above waves */
  pointer-events: none;
  /* container passes through */
}

/* responsive guides drive the JS radii */
.subjects-orbit .guide {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed #83e3ff1a;
  box-shadow: inset 0 0 60px #00d4ff14;
}

.subjects-orbit .guide-1 {
  width: calc(var(--ring-1) * 2);
  height: calc(var(--ring-1) * 2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.subjects-orbit .guide-2 {
  width: calc(var(--ring-2) * 2);
  height: calc(var(--ring-2) * 2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* rings + nodes */
.subjects-orbit .ring {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.subjects-orbit .ring .node {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  user-select: none;
  cursor: pointer;
}

/* circular "bubble" tiles */
.subjects-orbit .bubble {
  padding: 10px;
  overflow: hidden;
  width: 108px;
  height: 108px;
  border-radius: 999px;
  background: rgba(15, 20, 30, 0.82);
  border: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  box-shadow: 0 12px 40px rgba(0, 200, 255, .15);
}

.subjects-orbit .icon {
  width: 22px;
  height: 22px;
}

.subjects-orbit .label {
  font-size: .78rem;
  word-break: break-word;
  line-height: 1.1;
  text-align: center;
  letter-spacing: .1px;
  white-space: normal;
  max-width: 80%;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

/* color accents by group */
.subjects-orbit .node[data-group="math"] .bubble {
  border-color: #5eead433
}

.subjects-orbit .node[data-group="math"] .icon {
  color: #2dd4bf
}

.subjects-orbit .node[data-group="sci"] .bubble {
  border-color: #60a5fa33
}

.subjects-orbit .node[data-group="sci"] .icon {
  color: #60a5fa
}

.subjects-orbit .node[data-group="soc"] .bubble {
  border-color: #facc1533
}

.subjects-orbit .node[data-group="soc"] .icon {
  color: #facc15
}

.subjects-orbit .node[data-group="lang"] .bubble {
  border-color: #a78bfa33
}

.subjects-orbit .node[data-group="lang"] .icon {
  color: #a78bfa
}

.subjects-orbit .node[data-long="1"] .label {
  font-size: .72rem;
  line-height: 1.05;
}

/* keyboard focus */
.subjects-orbit .node:focus .bubble {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, .35), 0 18px 60px rgba(0, 200, 255, .25);
}

/* Responsive tweaks for bubbles */
@media (max-width: 720px) {
  .subjects-orbit .bubble {
    width: 94px;
    height: 94px;
  }
}

@media (max-width: 420px) {
  .subjects-orbit .bubble {
    width: 86px;
    height: 86px;
  }

  .subjects-orbit .icon {
    display: none;
  }

  .subjects-orbit .label {
    font-size: .82rem;
  }
}

.radial-foot {
  margin-top: 2rem;
  text-align: center;
}

.radial-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(59, 130, 246, 0.12));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.radial-cta .icon {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 768px) {
  .radial-stage {
    min-height: auto;
    padding: 1rem 0;
    background: transparent;
    box-shadow: none;
  }

  /* Eliminar completamente todas las animaciones de ondas en móvil */
  .energy-waves {
    display: none !important;
  }

  .energy-waves .wave {
    display: none !important;
    animation: none !important;
  }

  /* Eliminar animaciones de pseudo-elementos de ondas */
  .energy-waves .wave::before,
  .energy-waves .wave::after {
    display: none !important;
    animation: none !important;
  }

  /* Ocultar imagen del centro */
  .radial-core {
    display: none !important;
  }

  /* Simplificar layout: solo lista de asignaturas en una columna */
  .subjects-orbit {
    position: static !important;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
    background: transparent;
    box-shadow: none;
  }

  .subjects-orbit .guide {
    display: none !important;
  }

  .subjects-orbit .ring {
    position: static !important;
    display: contents;
    background: transparent;
  }

  .subjects-orbit .ring .node {
    position: static !important;
    transform: none !important;
    animation: none !important;
  }

  .subjects-orbit .bubble {
    width: 100% !important;
    height: auto !important;
    padding: 1rem !important;
    border-radius: 0.5rem !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 0.75rem !important;
    animation: none !important;
    transition: none !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
  }

  .subjects-orbit .icon {
    display: block !important;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .subjects-orbit .label {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    text-align: left !important;
    white-space: normal !important;
    flex: 1;
  }
}

/* ===== INNOVATIVE ABOUT SECTION ===== */
.innovative-about-section {
  padding: 120px 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.about-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.about-header {
  text-align: center;
  margin-bottom: 80px;
}

.about-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.about-subtitle {
  font-size: 1.25rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.about-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 2rem;
  margin-bottom: 80px;
}

/* Mission & Vision Cards */
.mission-card,
.vision-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.mission-card:hover,
.vision-card:hover {
  transform: translateY(-8px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1);
}

.mission-card::before,
.vision-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
}

.mission-icon,
.vision-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.mission-icon .icon,
.vision-icon .icon {
  width: 32px;
  height: 32px;
  color: white;
}

.mission-title,
.vision-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.mission-text,
.vision-text {
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.mission-highlight,
.vision-highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.highlight-number {
  font-size: 2rem;
  font-weight: 700;
  color: #10b981;
}

.highlight-label {
  color: #e2e8f0;
  font-weight: 500;
}

/* Timeline */
.values-timeline {
  grid-column: 1 / -1;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
}

.timeline-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin-bottom: 2rem;
  text-align: center;
}

.timeline-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.timeline-year {
  font-size: 1.5rem;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 0.5rem;
}

.timeline-event {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.timeline-description {
  color: #94a3b8;
  line-height: 1.6;
}

/* Values Header */
.values-header {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 2rem;
}

.values-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  line-height: 1.2;
}

.values-subtitle {
  font-size: 1.125rem;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .values-title {
    font-size: 2rem;
  }

  .values-subtitle {
    font-size: 1rem;
  }
}

/* Values Grid */
.values-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.value-item:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.value-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.value-icon .icon {
  width: 24px;
  height: 24px;
  color: white;
}

.value-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.value-description {
  color: #94a3b8;
  line-height: 1.5;
}

/* Stats Section */
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.stat-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(20px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-8px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
}

.stat-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.stat-icon .icon {
  width: 28px;
  height: 28px;
  color: white;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  color: #e2e8f0;
  font-weight: 500;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .about-content-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .mission-card,
  .vision-card {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .innovative-about-section {
    padding: 80px 0;
  }

  .about-header {
    margin-bottom: 60px;
  }

  .mission-card,
  .vision-card,
  .values-timeline {
    padding: 1.5rem;
  }

  .timeline-container {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 1.5rem;
  }
}

/* ===== CHANGELOG SECTION ===== */
.changelog-section {
  padding: 120px 0;
  background: transparent;
  position: relative;
}

.changelog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.changelog-header {
  text-align: center;
  margin-bottom: 80px;
}

.changelog-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.changelog-subtitle {
  font-size: 1.25rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.changelog-timeline {
  position: relative;
  padding-left: 2rem;
}

.changelog-timeline::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #10b981 0%, #3b82f6 100%);
  border-radius: 1px;
}

.changelog-item {
  position: relative;
  margin-bottom: 4rem;
  padding-left: 3rem;
}

.changelog-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 1), 0 0 0 6px rgba(16, 185, 129, 0.2);
  z-index: 2;
}

.changelog-date {
  font-size: 1.5rem;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 1rem;
  display: inline-block;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.changelog-content {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.changelog-content:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1);
}

.changelog-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
}

.changelog-version {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.changelog-event {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.changelog-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.changelog-category.new {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.changelog-category.feature {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.changelog-category.improvement {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.changelog-category.achievement {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.changelog-category.milestone {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.changelog-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.changelog-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: #94a3b8;
  line-height: 1.6;
}

.changelog-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
  font-size: 1.2rem;
}

.changelog-list li:last-child {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .changelog-section {
    padding: 80px 0;
  }

  /* Desactivar animación de orbes del changelog en móvil */
  .changelog-bubbles .bubble {
    animation: none !important;
    opacity: 0 !important;
    display: none !important;
  }

  .changelog-header {
    margin-bottom: 60px;
  }

  .changelog-timeline {
    padding-left: 1.5rem;
  }

  .changelog-timeline::before {
    left: 0.75rem;
  }

  .changelog-item {
    padding-left: 2.5rem;
    margin-bottom: 3rem;
  }

  .changelog-item::before {
    left: -1rem;
  }

  .changelog-content {
    padding: 1.5rem;
  }

  .changelog-event {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .changelog-timeline {
    padding-left: 1rem;
  }

  .changelog-timeline::before {
    left: 0.5rem;
  }

  .changelog-item {
    padding-left: 2rem;
  }

  .changelog-item::before {
    left: -0.75rem;
    width: 10px;
    height: 10px;
  }

  .changelog-content {
    padding: 1.25rem;
  }
}

/* ===== CHANGELOG V2 (TIMELINE ANIMADO) ===== */
.changelog-v2 {
  padding: 120px 0;
  background: transparent;
  position: relative;
}

.changelog-v2::before,
.changelog-v2::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Degradados decorativos en el fondo del changelog */
.changelog-v2::before {
  background:
    radial-gradient(1100px 600px at 20% 10%, rgba(16, 185, 129, 0.28), transparent 70%),
    radial-gradient(900px 450px at 85% 15%, rgba(59, 130, 246, 0.22), transparent 70%);
  filter: blur(36px);
  opacity: 0.9;
}

.changelog-v2::after {
  background:
    radial-gradient(800px 400px at 15% 80%, rgba(99, 102, 241, 0.18), transparent 70%),
    radial-gradient(700px 350px at 80% 85%, rgba(16, 185, 129, 0.18), transparent 70%);
  filter: blur(28px);
  opacity: 0.7;
}

.changelog-v2 .changelog-container {
  position: relative;
  z-index: 1;
}

/* Burbujas flotantes de fondo para el changelog */
.changelog-bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.changelog-bubbles .bubble {
  position: absolute;
  left: var(--x);
  bottom: -40px;
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.08), rgba(16, 185, 129, 0.15));
  box-shadow:
    0 0 10px rgba(16, 185, 129, 0.25),
    0 0 20px rgba(59, 130, 246, 0.15);
  filter: blur(0.2px) saturate(1.1);
  animation: floatUp var(--dur) linear infinite;
  animation-delay: var(--delay);
}

.changelog-bubbles .bubble::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.45), transparent 60%);
  filter: blur(1px);
}

@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }

  10% {
    opacity: 0.5;
  }

  50% {
    transform: translateY(-50vh) translateX(8px) scale(1.05);
    opacity: 0.7;
  }

  100% {
    transform: translateY(-100vh) translateX(-8px) scale(1.1);
    opacity: 0;
  }
}

.changelog-v2 .changelog-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.changelog-v2 .changelog-header {
  text-align: center;
  margin-bottom: 80px;
}

.changelog-v2 .changelog-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
  background: none !important;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  margin-bottom: 0.75rem;
}

/* Alinear tamaño con .info-title (Key Information) en responsive */
@media (min-width: 640px) {

  .about-title,
  .changelog-v2 .changelog-title {
    font-size: 3rem;
  }
}

.changelog-v2 .changelog-subtitle {
  font-size: 1.125rem;
  color: #9ca3af;
}

/* Spine base */
.changelog-v2 .timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 2.25rem;
}

.changelog-v2 .timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
}

/* Spine progress */
.changelog-v2 .timeline-progress {
  position: absolute;
  left: 0.75rem;
  top: 0;
  width: 3px;
  height: 0;
  /* Capa base de color */
  background-image:
    linear-gradient(180deg, #10b981 0%, #3b82f6 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0) 100%);
  background-size: 100% 100%, 100% 40px;
  background-repeat: no-repeat, repeat-y;
  background-position: center top, center 0;
  /* Resplandor láser */
  box-shadow:
    0 0 10px rgba(16, 185, 129, 0.85),
    0 0 22px rgba(59, 130, 246, 0.65),
    0 0 36px rgba(16, 185, 129, 0.45);
  filter: saturate(1.2);
  transition: height 0.35s ease;
  animation: laserPulse 2.2s ease-in-out infinite, laserFlow 1.25s linear infinite;
  overflow: visible;
}

.changelog-v2 .timeline-progress::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffffff 0%, #a7f3d0 30%, rgba(16, 185, 129, 0.9) 55%, rgba(16, 185, 129, 0) 70%);
  box-shadow:
    0 0 12px #6ee7b7,
    0 0 24px #22d3ee,
    0 0 42px rgba(34, 211, 238, 0.6),
    0 0 60px rgba(16, 185, 129, 0.45);
  pointer-events: none;
  animation: tipFlicker 1.6s ease-in-out infinite;
}

@keyframes laserFlow {
  0% {
    background-position: center top, center 0;
  }

  100% {
    background-position: center top, center 40px;
  }
}

@keyframes laserPulse {

  0%,
  100% {
    box-shadow:
      0 0 8px rgba(16, 185, 129, 0.75),
      0 0 18px rgba(59, 130, 246, 0.55),
      0 0 30px rgba(16, 185, 129, 0.35);
    filter: saturate(1.1);
  }

  50% {
    box-shadow:
      0 0 14px rgba(16, 185, 129, 0.95),
      0 0 28px rgba(59, 130, 246, 0.75),
      0 0 44px rgba(16, 185, 129, 0.55);
    filter: saturate(1.35);
  }
}

@keyframes tipFlicker {

  0%,
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }

  50% {
    opacity: 0.85;
    transform: translateX(-50%) scale(1.08);
  }
}

/* Items */
.changelog-v2 .changelog-item {
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: 2.25rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.changelog-v2 .changelog-item::before {
  content: none;
}

.changelog-v2 .changelog-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.changelog-v2 .item-marker {
  display: none;
}

.changelog-v2 .pulse-dot {
  width: 0.35rem;
  height: 0.35rem;
  background: white;
  border-radius: 999px;
  animation: pulseBlink 1.8s ease-in-out infinite;
}

@keyframes pulseBlink {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.0);
  }

  50% {
    transform: scale(1.6);
    opacity: 0.75;
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.15);
  }
}

.changelog-v2 .item-content {
  background: linear-gradient(135deg, rgba(24, 24, 27, 0.9) 0%, rgba(39, 39, 42, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.changelog-v2 .item-content:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 22px 44px rgba(16, 185, 129, 0.15);
}

.changelog-v2 .item-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.changelog-v2 .version-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
}

.changelog-v2 .item-date {
  font-size: 0.85rem;
  color: #94a3b8;
}

.changelog-v2 .item-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0.5rem 0 0.75rem 0;
}

.changelog-v2 .item-title .icon {
  width: 1rem;
  height: 1rem;
  color: #10b981;
}

.changelog-v2 .item-list {
  margin: 0;
  padding-left: 1rem;
  color: #cbd5e1;
}

.changelog-v2 .item-list li {
  line-height: 1.7;
}

.changelog-v2 .item-description {
  margin: 0.75rem 0 0 0;
  color: #cbd5e1;
  line-height: 1.7;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .changelog-v2 {
    padding: 80px 0;
  }

  .changelog-v2 .timeline {
    padding-left: 2rem;
  }

  .changelog-v2 .timeline::before,
  .changelog-v2 .timeline-progress {
    left: 0.5rem;
  }

  .changelog-v2 .changelog-item {
    padding-left: 2rem;
  }
}

/* ===== FORM BUBBLE ANIMATION ===== */
/* Contenedor de burbujas para secciones de contacto */
.form-bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
}

.form-bubbles .bubble {
  position: absolute;
  left: var(--x);
  bottom: -50px;
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%,
      rgba(255, 255, 255, 0.4),
      rgba(16, 185, 129, 0.2),
      rgba(59, 130, 246, 0.15));
  box-shadow:
    0 0 15px rgba(16, 185, 129, 0.3),
    0 0 30px rgba(59, 130, 246, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
  filter: blur(0.5px) saturate(1.2);
  animation: formBubbleFloat var(--dur) linear infinite;
  animation-delay: var(--delay);
  opacity: 0;
}

.form-bubbles .bubble::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 25%;
  width: 30%;
  height: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6), transparent 70%);
  filter: blur(1px);
}

.form-bubbles .bubble::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 40% 40%,
      rgba(255, 255, 255, 0.5),
      transparent 60%);
  filter: blur(1px);
}

/* Animación de burbujas para formularios */
@keyframes formBubbleFloat {
  0% {
    transform: translateY(0) translateX(0) scale(0.8);
    opacity: 0;
  }

  10% {
    opacity: 0.7;
  }

  50% {
    transform: translateY(-200px) translateX(var(--drift)) scale(1.2);
    opacity: 1;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    transform: translateY(-400px) translateX(calc(var(--drift) * 2)) scale(0.5);
    opacity: 0;
  }
}

/* Efecto hover eliminado - las burbujas funcionan constantemente */

/* Asegurar que la sección de contacto tenga posición relativa para las burbujas */
.contact-section {
  position: relative;
}

/* Burbujas más pequeñas y sutiles para secciones de contacto */
.form-bubbles .bubble:nth-child(odd) {
  background: radial-gradient(circle at 30% 30%,
      rgba(255, 255, 255, 0.3),
      rgba(16, 185, 129, 0.15),
      rgba(59, 130, 246, 0.1));
}

.form-bubbles .bubble:nth-child(even) {
  background: radial-gradient(circle at 30% 30%,
      rgba(255, 255, 255, 0.35),
      rgba(59, 130, 246, 0.18),
      rgba(16, 185, 129, 0.12));
}

/* Responsive para burbujas en secciones de contacto */
@media (max-width: 768px) {
  .form-bubbles .bubble {
    filter: blur(0.3px) saturate(1.1);
    animation: none !important;
    opacity: 0 !important;
    display: none !important;
  }

  @keyframes formBubbleFloat {
    0% {
      transform: translateY(0) translateX(0) scale(0.6);
      opacity: 0;
    }

    10% {
      opacity: 0.5;
    }

    50% {
      transform: translateY(-150px) translateX(var(--drift)) scale(1);
      opacity: 0.8;
    }

    90% {
      opacity: 0.2;
    }

    100% {
      transform: translateY(-300px) translateX(calc(var(--drift) * 1.5)) scale(0.4);
      opacity: 0;
    }
  }
}

/* ===== BOOK CARDS STYLES ===== */
.book-cover {
  width: auto;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  overflow: visible;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: transparent;
  display: inline-block;
}

.book-cover:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.book-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  transition: transform 0.3s ease;
  display: block;
  border-radius: 0.5rem;

}

.flip-card:hover .book-image {
  transform: scale(1.05);
}

.book-author {
  color: #a1a1aa;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.book-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.stars {
  color: #fbbf24;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.rating-text {
  color: #e5e7eb;
  font-size: 0.875rem;
  font-weight: 600;
}

.book-price {
  color: #10b981;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  padding: 0.75rem 0.5rem 0.5rem 0.5rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
  border-radius: 0.5rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Book Summary Styles */
.book-summary {
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.summary-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-align: center;
}

.summary-text {
  color: #d1d5db;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.book-details {
  margin-bottom: 1rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: #a1a1aa;
  font-size: 0.8rem;
}

.detail-item .icon {
  width: 1rem;
  height: 1rem;
  color: #10b981;
}

.view-book-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.view-book-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.view-book-btn .icon {
  width: 1rem;
  height: 1rem;
}

/* Responsive adjustments for book cards */
@media (max-width: 768px) {
  .flip-card {
    height: 500px;
  }

  .book-cover {
    max-width: 100%;
  }

  .book-price {
    font-size: 1.375rem;
    padding-top: 0.75rem;
  }

  .summary-text {
    font-size: 0.8rem;
  }

  .detail-item {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .book-image {
    max-height: 300px;
  }
}

/* ===== IB BOOKS PAGE SPECIFIC STYLES ===== */
/* Override flip card height specifically for IB Books page book cards only */
body.ib-books-page .oscillating-cards-section .cards-grid .flip-card {
  height: 600px !important;
}

/* Asegurar que flip-card-inner y las caras tengan altura completa */
body.ib-books-page .oscillating-cards-section .cards-grid .flip-card-inner {
  min-height: 100% !important;
  height: 100% !important;
}

body.ib-books-page .oscillating-cards-section .cards-grid .flip-card-front,
body.ib-books-page .oscillating-cards-section .cards-grid .flip-card-back {
  min-height: 100% !important;
}

@media (max-width: 768px) {
  body.ib-books-page .oscillating-cards-section .cards-grid .flip-card {
    min-height: 470px !important;
    height: 470px !important;
  }

  body.ib-books-page .oscillating-cards-section .cards-grid .flip-card-inner {
    min-height: 100% !important;
    height: 100% !important;
  }

  body.ib-books-page .oscillating-cards-section .cards-grid .flip-card-front,
  body.ib-books-page .oscillating-cards-section .cards-grid .flip-card-back {
    padding: 1.5rem;
    padding-bottom: 2rem !important;
    overflow: visible;
    min-height: 100% !important;
  }
}

@media (max-width: 639px) {
  body.ib-books-page .oscillating-cards-section .cards-grid .flip-card {
    min-height: 470px !important;
    height: 470px !important;
  }

  body.ib-books-page .oscillating-cards-section .cards-grid .flip-card-inner {
    min-height: 100% !important;
    height: 100% !important;
  }
}

@media (max-width: 480px) {
  body.ib-books-page .oscillating-cards-section .cards-grid .flip-card {
    min-height: 420px !important;
    height: 420px !important;
  }

  body.ib-books-page .oscillating-cards-section .cards-grid .flip-card-inner {
    min-height: 100% !important;
    height: 100% !important;
  }

  body.ib-books-page .oscillating-cards-section .cards-grid .flip-card-front,
  body.ib-books-page .oscillating-cards-section .cards-grid .flip-card-back {
    padding: 1.25rem;
    padding-bottom: 1.75rem !important;
    overflow: visible;
    min-height: 100% !important;
  }
}

/* Estilos específicos para iOS/iPhone */
@supports (-webkit-touch-callout: none) {
  body.ib-books-page .oscillating-cards-section .cards-grid .flip-card {
    min-height: 420px !important;
  }

  body.ib-books-page .oscillating-cards-section .cards-grid .flip-card-inner {
    min-height: 100% !important;
    height: 100% !important;
    display: flex !important;
  }

  body.ib-books-page .oscillating-cards-section .cards-grid .flip-card-front,
  body.ib-books-page .oscillating-cards-section .cards-grid .flip-card-back {
    min-height: 100% !important;
    position: absolute !important;
  }

  @media (max-width: 768px) {
    body.ib-books-page .oscillating-cards-section .cards-grid .flip-card {
      min-height: 470px !important;
      height: 470px !important;
    }

    body.ib-books-page .oscillating-cards-section .cards-grid .flip-card-front,
    body.ib-books-page .oscillating-cards-section .cards-grid .flip-card-back {
      padding-bottom: 2rem !important;
    }
  }

  @media (max-width: 639px) {
    body.ib-books-page .oscillating-cards-section .cards-grid .flip-card {
      min-height: 470px !important;
      height: 470px !important;
    }
  }

  @media (max-width: 480px) {
    body.ib-books-page .oscillating-cards-section .cards-grid .flip-card {
      min-height: 420px !important;
      height: 420px !important;
    }

    body.ib-books-page .oscillating-cards-section .cards-grid .flip-card-front,
    body.ib-books-page .oscillating-cards-section .cards-grid .flip-card-back {
      padding-bottom: 1.75rem !important;
    }
  }
}

/* ===== HOMEPAGE SPECIFIC FLIP CARD STYLES ===== */
/* Smaller flip cards specifically for homepage */
.homepage-flip-card {
  height: 420px !important;
}

@media (max-width: 768px) {
  .homepage-flip-card {
    height: 420px !important;
  }
}

@media (max-width: 639px) {
  .homepage-flip-card {
    height: 390px !important;
  }
}

@media (max-width: 480px) {
  .homepage-flip-card {
    height: 360px !important;
  }
}

/* Disable Coming Soon (bottom-cta) animations on mobile */
@media (max-width: 768px) {

  .bottom-cta,
  .bottom-cta::before,
  .bottom-cta::after,
  .bottom-cta-text,
  .bottom-cta-title,
  .bottom-cta-btn,
  .bottom-cta-btn.primary {
    animation: none !important;
    transition: none !important;
  }

  .bottom-cta-btn:hover,
  .bottom-cta-btn.primary:hover,
  .bottom-cta-btn:hover .icon,
  .bottom-cta-btn.primary:hover .icon {
    transform: none !important;
  }

  /* Reduce backdrop-filter blur radius — keeps frosted effect, halves GPU cost */
  .nav-bar {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }
  .cal-month-card,
  .feature-card,
  .testimonial-card,
  .flip-card-front,
  .flip-card-back,
  .oscillating-card {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }

  /* Oscillating cards: keep animation, drop expensive 3D on touch devices */
  @media (hover: none) {
    .oscillating-card[data-tilt="1"]:hover,
    .oscillating-card[data-tilt="2"]:hover,
    .oscillating-card[data-tilt="3"]:hover,
    .oscillating-card[data-tilt="4"]:hover,
    .oscillating-card[data-tilt="5"]:hover,
    .oscillating-card[data-tilt="6"]:hover {
      transform: translateY(-5px) !important;
      animation: none !important;
    }
  }
}