/* SISTEMA DE DISEÑO MODERNO - iOS/Material Design Inspired */

:root {
  /* Colores Principales */
  --primary: #6cace4;
  --primary-dark: #5a9bd3;
  --primary-light: #e3f2fd;

  --secondary: #971b2f;
  --secondary-dark: #7d1f23;
  --secondary-light: #ffebee;

  --success: #10b981;
  --success-dark: #059669;
  --success-light: #d1fae5;

  --warning: #f59e0b;
  --warning-dark: #d97706;
  --warning-light: #fef3c7;

  --error: #ef4444;
  --error-dark: #dc2626;
  --error-light: #fee2e2;

  /* Neutrales */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Sistema */
  --radius: 16px;
  --radius-lg: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  /* Theme-specific */
  --bg-primary: white;
  --bg-secondary: #f9fafb;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --border-color: #e5e7eb;
}

/* Dark Mode */
[data-theme="dark"] {
  --primary: #60a5fa;
  --primary-dark: #3b82f6;
  --primary-light: #1e3a8a;

  --success: #34d399;
  --success-dark: #10b981;
  --success-light: #064e3b;

  --warning: #fbbf24;
  --warning-dark: #f59e0b;
  --warning-light: #78350f;

  --error: #f87171;
  --error-dark: #ef4444;
  --error-light: #7f1d1d;

  --gray-50: #0a0a0a;
  --gray-100: #171717;
  --gray-200: #262626;
  --gray-300: #404040;
  --gray-400: #525252;
  --gray-500: #737373;
  --gray-600: #a3a3a3;
  --gray-700: #d4d4d4;
  --gray-800: #e5e5e5;
  --gray-900: #fafafa;

  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --text-primary: #fafafa;
  --text-secondary: #a3a3a3;
  --border-color: #262626;

  --secondary: #fb7185;
  --secondary-dark: #f43f5e;
  --secondary-light: #4c0519;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* Keep a stable viewport gutter to reduce ad reflow/flicker while scrolling. */
  scrollbar-gutter: stable both-edges;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "Roboto",
    sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
  display: inline-block;
  vertical-align: -0.125em;
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
}

.hidden {
  display: none !important;
}

/* Prevent text breaking in dynamic content */
.no-break {
  white-space: nowrap;
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2.5rem 3rem;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.loading-spinner svg {
  width: 60px;
  height: 60px;
  color: var(--primary);
  animation: rotate 1s linear infinite;
}

.loading-spinner svg circle {
  stroke-dasharray: 90, 150;
  stroke-dashoffset: 0;
  animation: dash 1.5s ease-in-out infinite;
}

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

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

.loading-spinner p {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ===== HEADER ===== */
.main-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  height: 80px;
  transition: transform 0.25s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.main-header.header-hidden {
  transform: translateY(-100%);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  height: 100%;
}

/* Logo + Brand */
.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.header-brand:hover {
  opacity: 0.8;
}

.logo-circle {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-circle svg {
  width: 26px;
  height: 26px;
  fill: white;
}

.brand-text h1,
.brand-text strong {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gray-900);
  margin: 0;
  display: block;
}

.brand-text p {
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1;
  margin: 0;
  font-weight: 500;
}

/* Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex: 1;
  justify-content: center;
  margin: 0 auto;
}

.header-nav a {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.header-nav a:hover {
  color: var(--primary);
}

.header-nav a.active {
  color: var(--gray-900);
  font-weight: 600;
  position: relative;
}

.header-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -1.5rem;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
}

/* Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Botón CTA - Estilo pastilla con animación shine igual al hero */
.btn-header-cta {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
  position: relative;
  overflow: hidden;
}

/* Efecto shine al pasar el mouse */
.btn-header-cta::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;
}

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

.btn-header-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

.btn-header-cta:active {
  transform: translateY(-1px) scale(0.98);
}

/* ===== BREADCRUMB ===== */
.breadcrumb-wrapper {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.breadcrumb-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.breadcrumb-item a:hover {
  color: var(--primary);
}

.breadcrumb-item svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.breadcrumb-separator {
  color: var(--gray-400);
  font-size: 0.75rem;
  user-select: none;
}

.breadcrumb-item:last-child {
  color: var(--text-primary);
  font-weight: 500;
}

.breadcrumb-item.active {
  color: var(--text-primary);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .breadcrumb-container {
    padding: 0 1rem;
  }

  .breadcrumb {
    font-size: 0.8125rem;
  }

  .breadcrumb-item svg {
    width: 12px;
    height: 12px;
  }
}

/* ===== FOOTER ===== */
.main-footer {
  background: #1f2937;
  color: #d1d5db;
  margin-top: 0;
  border-top: 1px solid #374151;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.25rem 2rem 2rem;
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(360px, 1fr);
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  max-width: 620px;
  text-align: left;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 0.9rem;
}

.footer-logo svg {
  font-size: 2.5rem;
  color: var(--primary);
}

.footer-logo h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: #f9fafb;
}

.footer-logo p {
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1;
}

.footer-description {
  color: #d1d5db;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
  max-width: 580px;
  margin-left: 0;
  margin-right: 0;
}

.footer-social {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #374151;
  border: 1px solid #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  transition: var(--transition);
}

.footer-social a:hover {
  color: white;
  transform: translateY(-2px);
}

.footer-social .social-facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.footer-social .social-x:hover {
  background: #000000;
  border-color: #000000;
}

[data-theme="dark"] .footer-social .social-x:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

.footer-social .social-instagram:hover {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  border-color: #dc2743;
}

.footer-social .social-youtube:hover {
  background: #ff0000;
  border-color: #ff0000;
}

.footer-links-column {
  border-left: 1px solid #374151;
  padding-left: 2rem;
  align-self: center;
}

.footer-links-title {
  margin: 0 0 0.85rem;
  color: #9ca3af;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.footer-primary-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.7rem 1.2rem;
  margin-bottom: 0.65rem;
}

.footer-primary-links a {
  color: #f9fafb;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}

.footer-primary-links a:hover {
  color: var(--primary);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.35rem 1rem;
}

.footer-legal-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition);
}

.footer-legal-links a:hover {
  color: #d1d5db;
}

.footer-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #f9fafb;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section ul li a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--primary);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d1d5db;
  font-size: 0.9375rem;
}

.footer-contact svg {
  color: var(--primary);
  width: 20px;
}

.footer-badge {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding: 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9ca3af;
  font-size: 0.875rem;
}

.footer-version {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9ca3af;
}

/* ===== CONTAINER ===== */
.app-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  min-height: calc(100vh - 400px);
  scroll-margin-top: 100px; /* Fix for sticky header overlap */
}

/* Hide app-container when all cards inside are hidden (initial home view) */
.app-container:has(> .card.hidden):not(:has(> .card:not(.hidden))) {
  display: none;
}

.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* ===== HOME ===== */
.home-content {
  padding: 3rem 2.5rem;
}

.hero-modern {
  text-align: center;
  margin-bottom: 3rem;
}

.hero-icon-modern {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(108, 172, 228, 0.3);
}

.hero-icon-modern svg {
  font-size: 2.5rem;
  color: white;
}

.hero-title-modern {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.hero-subtitle-modern {
  font-size: 1.125rem;
  color: var(--gray-500);
  font-weight: 500;
}

.info-cards-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-card-modern {
  padding: 2rem;
  border-radius: var(--radius);
  border: 2px solid;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.info-card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
}

.info-card-modern.blue {
  background: var(--primary-light);
  border-color: rgba(108, 172, 228, 0.3);
}

.info-card-modern.blue::before {
  background: var(--primary);
}

.info-card-modern.green {
  background: var(--success-light);
  border-color: rgba(16, 185, 129, 0.3);
}

.info-card-modern.green::before {
  background: var(--success);
}

.info-card-modern.yellow {
  background: var(--warning-light);
  border-color: rgba(245, 158, 11, 0.3);
}

.info-card-modern.yellow::before {
  background: var(--warning);
}

.info-card-modern > svg {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
}

.info-card-modern.blue > svg {
  color: var(--primary);
}

.info-card-modern.green > svg {
  color: var(--success);
}

.info-card-modern.yellow > svg {
  color: var(--warning);
}

.info-card-modern h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.info-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.info-item-modern {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
}

.info-item-modern svg {
  font-size: 1.125rem;
  color: var(--primary);
}

.info-card-modern ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-card-modern ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.info-card-modern ul li::before {
  content: "•";
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.5rem;
  margin-top: -0.1rem;
  flex-shrink: 0;
  min-width: 12px;
}

.info-card-modern.green ul li::before {
  color: var(--success);
}

.info-card-modern.yellow ul li::before {
  color: var(--warning);
}

.btn-cta-modern {
  width: 100%;
  background: linear-gradient(
    135deg,
    var(--success) 0%,
    var(--success-dark) 100%
  );
  color: white;
  border: none;
  padding: 1.25rem 2rem;
  border-radius: var(--radius);
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-cta-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-cta-modern:active {
  transform: translateY(0);
}

.exam-tip {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: clamp(1.5rem, 2.8vw, 2.5rem);
  color: var(--gray-600);
  font-size: 0.9375rem;
  font-style: italic;
  padding: 0 1rem;
}

.lp-section--exam-home .info-cards-grid {
  margin-bottom: 1.5rem;
}

.exam-cta {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.exam-cta .lp-cta--primary {
  border: none;
  padding: 1rem 2.75rem;
  font-size: 1.05rem;
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.35);
}

.exam-cta .lp-cta--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.exam-cta .lp-cta--primary:hover svg {
  transform: translateX(5px);
  animation: none;
}

/* Enhanced exam start button */
.exam-start-button {
  font-size: 1.125rem !important;
  padding: 1.25rem 3rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.025em !important;
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4) !important;
  display: inline-flex !important;
  gap: 0.75rem !important;
}

.exam-start-button svg {
  width: 1.125rem !important;
  height: 1.125rem !important;
  animation: pulse-play 1.5s ease-in-out infinite !important;
}

@keyframes pulse-play {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

.exam-start-button:hover svg {
  animation: none !important;
  transform: scale(1.1) !important;
}

/* Timer warning under button */
.exam-timer-warning {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.625rem 1rem;
  background: transparent;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.exam-timer-warning svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  opacity: 0.7;
}

[data-theme="dark"] .exam-timer-warning {
  border-color: var(--border-color);
  color: var(--text-secondary);
}

/* ===== EXAMEN ===== */
.exam-header-modern {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.exam-header-flex-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.exam-progress-info-modern {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.exam-label-modern {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 2px;
}

.exam-counter-modern {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.exam-progress-bar-modern {
  flex-grow: 1;
  height: 10px;
  background: var(--bg-secondary);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.exam-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--success) 100%);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 100px;
}

.timer-container-modern {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary); /* Base Blue/Celeste */
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 12px;
  font-family: "SF Mono", "Consolas", monospace;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.timer-container-modern.timer-warning {
  background: var(--warning); /* Orange */
}

.timer-container-modern.timer-critical {
  background: var(--error-light); /* Light Red as requested */
  color: var(--error-dark);
  border: 2px solid var(--error);
  animation: timerPulse 1s infinite;
}

.timer-container-modern.timer-explode {
  animation: timerExplode 0.5s forwards ease-out;
}

@keyframes timerPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes timerExplode {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

.timer-container-modern svg {
  font-size: 0.9rem;
  opacity: 0.9;
}

.exam-body-modern {
  padding: 2.5rem 2rem;
}

.question-text-modern {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0;
  color: var(--gray-900);
}

.question-image {
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.options-container-modern {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0;
}

.option-card-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.option-card-modern:hover:not(.disabled) {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateX(4px);
}

.option-letter-modern {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: var(--transition);
}

.option-card-modern:hover:not(.disabled) .option-letter-modern {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.option-text-modern {
  flex-grow: 1;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--gray-900);
}

.option-image-modern {
  width: auto;
  max-width: 200px;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-color);
  background: white;
  padding: 4px;
  margin-left: auto;
}

.option-card-modern.correct {
  border-color: var(--success) !important;
  background: var(--success-light) !important;
}

.option-card-modern.correct .option-letter-modern {
  background: var(--success) !important;
  color: white !important;
}

.option-card-modern.incorrect {
  border-color: var(--error) !important;
  background: var(--error-light) !important;
}

.option-card-modern.incorrect .option-letter-modern {
  background: var(--error) !important;
  color: white !important;
}

.option-card-modern.disabled {
  cursor: default;
}

.result-icon {
  margin-left: auto;
  font-size: 1.5rem;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.correct .result-icon {
  color: var(--success-dark);
}

.incorrect .result-icon {
  color: var(--error-dark);
}

@keyframes popIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.explanation-box-modern {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
}

.explanation-title-modern {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.explanation-title-modern svg {
  font-size: 1.125rem;
}

.nav-footer-modern {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-nav-modern {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
}

.btn-nav-modern:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  background: var(--gray-300) !important;
  color: var(--gray-500) !important;
  border-color: var(--gray-300) !important;
  position: relative;
}

.btn-nav-modern:disabled::after {
  content: "Respondé la pregunta actual para continuar";
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-xs);
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 1000;
}

[data-theme="dark"] .btn-nav-modern:disabled::after {
  background: #374151;
  color: #f9fafb;
}

.btn-nav-modern:disabled:hover::after {
  opacity: 1;
}

.btn-prev {
  background: var(--bg-primary);
  color: var(--error);
  border: 2px solid var(--error);
}

.btn-prev:hover {
  background: var(--error);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-skip {
  background: var(--bg-primary);
  color: var(--warning);
  border: 2px solid var(--warning);
}

.btn-skip:hover {
  background: var(--warning);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-next {
  flex: 2; /* Mayor autoridad visual */
  background: var(--success); /* Solid green background by default */
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-next:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* Mobile button feedback message */
.mobile-button-feedback {
  display: none; /* Hidden on desktop */
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--warning-light);
  border: 1px solid var(--warning);
  border-radius: var(--radius-sm);
  color: var(--warning-dark);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.mobile-button-feedback svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

/* Show on mobile devices only */
@media (max-width: 768px) {
  .mobile-button-feedback {
    display: flex;
  }

  /* Hide the hover tooltip on mobile since we have persistent feedback */
  .btn-nav-modern:disabled::after {
    display: none;
  }
}

.nav-grid-container-modern {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.nav-grid-container-modern h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.nav-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.legend-dot.current {
  background: var(--primary);
}

.legend-dot.answered {
  background: var(--warning); /* Orange for answered */
}

.legend-dot.pending {
  background: var(--gray-100);
  border: 2px solid var(--gray-300);
}

.nav-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
  gap: 8px;
}

.nav-dot-modern {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: var(--transition);
  background: var(--gray-100);
  border: 2px solid var(--gray-300);
  color: var(--gray-600);
}

.nav-dot-modern:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-sm);
}

.nav-dot-modern.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.nav-dot-modern.answered-grid {
  background: var(--warning);
  color: white;
  border-color: var(--warning);
}

/* Pulse animation for unanswered questions warning */
.nav-dot-modern.pulse-warning {
  animation: pulseWarning 0.5s ease-in-out 3;
}

@keyframes pulseWarning {
  0%,
  100% {
    transform: scale(1);
    border-color: var(--error);
    background: var(--error-light);
    color: var(--error);
  }
  50% {
    transform: scale(1.2);
    border-color: var(--error);
    background: var(--error);
    color: white;
  }
}

/* Removed correct/incorrect classes for nav grid as requested */

/* ===== RESULTADOS ===== */
.result-content-modern {
  padding: 3rem 2.5rem;
  text-align: center;
}

.result-header-modern {
  margin-bottom: 2rem;
}

.result-icon-modern {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.result-title-modern {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.result-subtitle-modern {
  font-size: 1.125rem;
  color: var(--gray-600);
}

.result-chart-modern {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 2.5rem;
}

.chart-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.chart-percentage {
  font-size: 5.5rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  letter-spacing: -3px;
  animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.chart-percentage.pass {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.chart-percentage.fail {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes scaleIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

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

.result-stats-modern {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.stat-box {
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
}

.stat-box.stat-correct {
  background: var(--success-light);
}

.stat-box.stat-incorrect {
  background: var(--error-light);
}

.stat-box.stat-time {
  background: var(--primary-light);
}

.stat-box.stat-stars {
  background: var(--warning-light);
}

.stat-box.stat-streak {
  background: var(--secondary-light);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.stat-box.stat-correct .stat-number {
  color: var(--success);
}

.stat-box.stat-incorrect .stat-number {
  color: var(--error);
}

.stat-box.stat-time .stat-number {
  color: var(--primary);
}

.stat-box.stat-stars .stat-number {
  color: var(--warning);
}

.stat-box.stat-streak .stat-number {
  color: var(--secondary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
}

.result-details-modern {
  margin-bottom: 2.5rem;
  text-align: left;
}

.result-details-modern h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.result-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 6px;
}

.result-dot-modern {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 0.875rem;
  color: white;
}

.result-dot-modern.correct {
  background: var(--success);
}

.result-dot-modern.incorrect {
  background: var(--error);
}

.result-recommendations-modern {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.result-recommendations-modern > svg {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.result-recommendations-modern h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.result-recommendations-modern ul {
  list-style: none;
  padding: 0;
}

.result-recommendations-modern ul li {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  position: relative;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray-700);
}

.result-recommendations-modern ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.25rem;
}

.result-actions-modern {
  display: flex;
  gap: 1rem;
}

.result-actions-modern button {
  flex: 1;
  padding: 1.125rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
}

.btn-result-share {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-result-share:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-result-retry {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  box-shadow: 0 4px 12px rgba(108, 172, 228, 0.3);
}

.btn-result-retry:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(108, 172, 228, 0.4);
}

.btn-result-home {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 2px solid var(--gray-400) !important;
  box-shadow: var(--shadow-sm);
}

.btn-result-home:hover {
  background: var(--bg-secondary);
  border-color: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .main-header {
    height: 60px;
  }

  .header-content {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  .header-nav {
    display: none !important;
  }

  .header-actions .btn-hamburger {
    display: flex !important;
    flex-direction: column !important;
    width: 40px !important;
    height: 40px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .btn-hamburger svg {
    display: block;
    width: 20px;
    height: 20px;
  }

  .btn-theme-toggle {
    display: none !important;
  }

  .btn-header-cta {
    display: none !important;
  }

  .header-brand {
    gap: 10px;
  }

  .logo-circle {
    width: 40px;
    height: 40px;
  }

  .logo-circle svg {
    width: 22px;
    height: 22px;
  }

  .brand-text h1,
  .brand-text strong {
    font-size: 0.95rem;
  }

  .brand-text p {
    font-size: 0.7rem;
  }

  .feature-pills {
    flex-direction: column;
    align-items: stretch;
  }

  .feature-pill {
    justify-content: center;
  }

  .info-card-modern {
    padding: 1.5rem;
  }

  .info-card-modern h3 {
    font-size: 1rem;
  }

  .info-card-modern ul li {
    font-size: 0.875rem;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
  }

  .info-card-modern ul li::before {
    font-size: 1rem;
    min-width: 10px;
  }

  .info-items {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .info-item-modern {
    font-size: 0.875rem;
  }

  .exam-tip {
    font-size: 0.875rem;
  }

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

  .hero-subtitle-modern {
    font-size: 1rem;
  }

  .home-content {
    padding: 2rem 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding: 2.5rem 1.25rem 1rem;
  }

  .footer-brand {
    max-width: 100%;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-description {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-links-column {
    border-left: 0;
    border-top: 1px solid #374151;
    padding-left: 0;
    padding-top: 1.25rem;
  }

  .footer-links-title {
    text-align: center;
  }

  .footer-primary-links {
    justify-content: center;
    gap: 0.7rem 0.9rem;
  }

  .footer-primary-links a {
    font-size: 0.92rem;
  }

  .footer-legal-links {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0;
  }

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

  .info-items {
    grid-template-columns: 1fr;
  }

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

  .result-actions-modern {
    flex-direction: column;
  }

  .result-actions-modern button {
    font-size: 0.9375rem;
    padding: 1rem 1.25rem;
  }

  .app-container {
    padding: 0;
    margin: 1rem 0;
  }

  .card {
    border-radius: 0;
  }

  .exam-header-flex-wrapper {
    gap: 0.75rem;
  }

  .exam-label-modern {
    display: none;
  }

  .exam-counter-modern {
    font-size: 0.95rem;
  }

  .timer-container-modern {
    padding: 0.625rem 1rem;
    font-size: 1.125rem; /* Larger font for mobile */
    border-radius: 12px;
    font-weight: 800; /* Bolder for visibility */
    min-width: 90px; /* Ensure consistent width */
    justify-content: center;
  }

  .timer-container-modern svg {
    font-size: 1.125rem;
  }

  /* Stack exam header elements vertically on small screens */
  .exam-header-flex-wrapper {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .exam-progress-info-modern {
    order: 1;
    flex: 0 0 auto;
  }

  .timer-container-modern {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto; /* Push to right */
  }

  .star-counter-container {
    order: 3;
    flex: 0 0 auto;
  }

  .exam-progress-bar-modern {
    order: 4;
    flex: 1 0 100%; /* Full width on new row */
    margin-top: 0.5rem;
  }

  /* Exam body - reduce padding on mobile */
  .exam-body-modern {
    padding: 1.5rem 1rem;
  }

  /* Navigation footer - ensure proper layout */
  .nav-footer-modern {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }

  /* Navigation buttons - reduce size for mobile */
  .btn-nav-modern {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    min-height: 44px; /* Touch target size */
  }

  /* Next/Results button - ensure it's always visible */
  .btn-next {
    grid-column: 1 / -1;
    grid-row: 1;
    order: initial;
    flex: initial;
    min-width: 0;
    width: 100%;
  }

  /* Skip button */
  .btn-skip {
    grid-column: 2;
    grid-row: 2;
    order: initial;
    flex: initial;
    width: 100%;
    min-width: 0;
  }

  /* Previous button */
  .btn-prev {
    grid-column: 1;
    grid-row: 2;
    order: initial;
    flex: initial;
    width: 100%;
    min-width: 0;
  }

  .mobile-button-feedback {
    grid-column: 1 / -1;
    grid-row: 3;
    order: initial;
    flex: initial;
    width: 100%;
    min-width: 0;
    white-space: normal;
    line-height: 1.4;
  }

  /* Ensure card doesn't cut off buttons */
  #view-exam.card {
    overflow: visible;
  }

  /* Stack navigation legend labels vertically on mobile */
  .nav-legend {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .nav-legend span {
    font-size: 0.8125rem;
  }
}

/* ===== RESPONSIVE EXTRA SMALL (320px - 375px) ===== */
@media (max-width: 375px) {
  .home-content {
    padding: 1.5rem 1rem;
  }

  .info-card-modern {
    padding: 1.25rem 1rem;
  }

  .info-card-modern h3 {
    font-size: 0.9375rem;
  }

  .info-card-modern ul li {
    font-size: 0.8125rem;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
  }

  .info-card-modern ul li::before {
    font-size: 0.875rem;
    min-width: 8px;
    margin-top: 0.125rem;
  }

  .info-item-modern {
    font-size: 0.8125rem;
    gap: 0.5rem;
  }

  .info-item-modern svg {
    font-size: 1rem;
    flex-shrink: 0;
  }

  .hero-title-modern {
    font-size: 1.5rem;
  }

  .hero-subtitle-modern {
    font-size: 0.9375rem;
  }

  .feature-pill {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }

  .exam-tip {
    font-size: 0.8125rem;
    padding: 0 0.5rem;
  }

  .btn-cta-modern {
    font-size: 1rem;
    padding: 1.125rem 1.5rem;
  }

  /* Navigation buttons - even smaller for tiny screens */
  .btn-nav-modern {
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    gap: 0.375rem;
  }

  /* Keep mobile navigation hierarchy on tiny screens:
     Siguiente full width + Anterior/Saltar in one row */
  .nav-footer-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
  }

  .btn-next {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .btn-prev {
    grid-column: 1;
    grid-row: 2;
  }

  .btn-skip {
    grid-column: 2;
    grid-row: 2;
  }

  .mobile-button-feedback {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast-modern {
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  min-width: 300px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid;
  border: 1px solid var(--border-color);
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.toast-modern.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.toast-modern.is-hiding {
  opacity: 0;
  transform: translateX(16px);
}

.toast-modern.success {
  border-left-color: var(--success);
}

.toast-modern.error {
  border-left-color: var(--error);
}

.toast-modern.info {
  border-left-color: var(--primary);
}

.toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.toast-modern.success .toast-icon {
  background: var(--success-light);
  color: var(--success);
}

.toast-modern.error .toast-icon {
  background: var(--error-light);
  color: var(--error);
}

.toast-modern.info .toast-icon {
  background: var(--primary-light);
  color: var(--primary);
}

.toast-content {
  flex-grow: 1;
}

.toast-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

/* AJUSTES ADICIONALES - Diferenciación y mejoras */

.footer-badge-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
}

.footer-badge-inline svg {
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Mejoras visuales de diferenciación */
.hero-icon-modern {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow: 0 8px 20px rgba(108, 172, 228, 0.4),
    0 0 0 8px rgba(108, 172, 228, 0.1);
}

.info-card-modern {
  transition: var(--transition);
}

.info-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Personalización de grid */
.result-dot-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 0.875rem;
  color: white;
}

.result-dot-modern svg {
  font-size: 0.75rem;
}

/* Ajuste cuando solo hay un botón de navegación */

#btn-prev[style*="display: none"] ~ #btn-next,
#btn-prev[style*="display:none"] ~ #btn-next {
  max-width: 100%;
}

/* Update for aligned headers */
.card-header-flex {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.card-header-flex h3 {
  margin-bottom: 0;
}

.info-card-modern.blue .card-header-flex svg {
  color: var(--primary);
}

.info-card-modern.green .card-header-flex svg {
  color: var(--success);
}

.info-card-modern.yellow .card-header-flex svg {
  color: var(--warning);
}

/* CONFETTI ANIMATION */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  background-color: #f00;
  animation: confetti-fall 3s linear forwards;
  z-index: 10000;
  top: -20px; /* Start above viewport */
  pointer-events: none; /* Don't interfere with clicks */
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 50px)) rotate(720deg);
    opacity: 0;
  }
}

/* ===== GAMIFICATION: STAR COUNTER ===== */
.star-counter-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 12px;
  font-family: "SF Mono", "Consolas", monospace;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.star-counter-container svg {
  font-size: 1.2rem;
  animation: starPulse 2s ease-in-out infinite;
}

.streak-text {
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 4px;
  opacity: 0.9;
}

.star-counter-container.star-earned {
  animation: starBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes starPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes starBounce {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.3) rotate(10deg);
  }
  50% {
    transform: scale(0.9) rotate(-10deg);
  }
  75% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* ===== FAVORITES: BOOKMARK BUTTON ===== */
.question-header-modern {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-favorite {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  position: relative;
}

.btn-favorite:hover {
  border-color: var(--warning);
  color: var(--warning);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-favorite.favorited {
  background: var(--warning-light);
  border-color: var(--warning);
  color: var(--warning);
}

.btn-favorite.favorited svg {
  fill: var(--warning);
}

.btn-favorite svg {
  font-size: 1.25rem;
  transition: all 0.3s ease;
  stroke: currentColor;
  stroke-width: 0;
}

.btn-favorite:not(.favorited) svg {
  stroke-width: 32px;
  stroke: currentColor;
  fill: none;
}

.btn-favorite.favorited svg {
  animation: favoriteAdded 0.5s ease-out;
  fill: currentColor;
  stroke: none;
}

/* Bookmark tooltip */
.bookmark-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-900);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 1000;
}

[data-theme="dark"] .bookmark-tooltip {
  background: var(--gray-100);
  color: var(--gray-900);
}

.btn-favorite:hover .bookmark-tooltip {
  opacity: 1;
}

/* Hide tooltip on mobile */
@media (max-width: 768px) {
  .bookmark-tooltip {
    display: none;
  }
}

/* Bookmark tutorial modal */
.bookmark-tutorial {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-out;
  padding: 1rem;
}

.bookmark-tutorial.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

.bookmark-tutorial-content {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  position: relative;
  text-align: center;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.bookmark-tutorial-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bookmark-tutorial-close:hover {
  background: var(--gray-100);
  color: var(--text-primary);
}

.bookmark-tutorial-close svg {
  width: 1rem;
  height: 1rem;
}

.bookmark-tutorial-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--warning-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warning);
}

.bookmark-tutorial-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  fill: currentColor;
}

.bookmark-tutorial-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.bookmark-tutorial-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.bookmark-tutorial-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.bookmark-tutorial-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

@keyframes favoriteAdded {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3) rotate(15deg);
  }
  100% {
    transform: scale(1);
  }
}

/* ===== FAVORITES LIST IN RESULTS ===== */
.result-favorites-modern {
  background: var(--warning-light);
  border-left: 4px solid var(--warning);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.result-favorites-modern > svg {
  font-size: 1.5rem;
  color: var(--warning);
  margin-bottom: 1rem;
}

.result-favorites-modern h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--warning);
  margin-bottom: 1rem;
}

.favorites-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.favorite-item {
  background: var(--bg-primary);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--warning);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.favorite-question strong {
  color: var(--warning);
  margin-right: 0.5rem;
}

.favorite-answer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--success-light);
  padding: 0.75rem;
  border-radius: var(--radius-xs);
  border-left: 3px solid var(--success);
}

.answer-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--success-dark);
  font-size: 0.875rem;
}

.answer-label svg {
  font-size: 1rem;
}

.answer-text {
  color: var(--text-primary);
  margin-left: 1.5rem;
}

.favorite-explanation {
  background: var(--primary-light);
  padding: 0.75rem;
  border-radius: var(--radius-xs);
  font-style: italic;
  color: var(--text-secondary);
  border-left: 3px solid var(--primary);
}

/* ===== DARK MODE TOGGLE ===== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* === HAMBURGER MENU === */
.btn-hamburger {
  display: none; /* Hidden by default, shown only on mobile via media query */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding: 0;
}

.btn-hamburger:hover {
  background: var(--gray-100);
  border-color: var(--primary);
  transform: scale(1.1);
}

.btn-hamburger svg {
  font-size: 1.25rem;
}

/* === FEATURE PILLS === */
.feature-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.feature-pill {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.feature-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.feature-pill--success {
  border-color: var(--success);
  background: color-mix(in srgb, var(--success-light) 75%, var(--bg-primary) 25%);
}

.feature-pill--success svg {
  color: var(--success);
}

.feature-pill--primary {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary-light) 75%, var(--bg-primary) 25%);
}

.feature-pill--primary svg {
  color: var(--primary);
}

.feature-pill--warning {
  border-color: var(--warning);
  background: color-mix(in srgb, var(--warning-light) 75%, var(--bg-primary) 25%);
}

.feature-pill--warning svg {
  color: var(--warning);
}

.feature-pill svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(108, 172, 228, 0.15); /* Azul ligero semi-transparente */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1001; /* Por encima del header del examen (1000) */
  transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
  opacity: 1;
}

.mobile-menu-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

/* Dark mode overlay */
[data-theme="dark"] .mobile-menu-overlay {
  background: rgba(96, 165, 250, 0.12); /* Azul más claro para dark mode */
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 360px;
  background: var(--bg-primary);
  border-left: 1px solid var(--border-color);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  z-index: 1002;
  transform: translateX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

/* Mobile Menu Header */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-primary);
  position: sticky;
  top: 0;
  z-index: 10;
}

.mobile-menu-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-brand .logo-circle {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-menu-brand .logo-circle svg {
  width: 22px;
  height: 22px;
  fill: white;
}

.mobile-menu-brand .brand-text h2,
.mobile-menu-brand .brand-text strong {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gray-900);
  margin: 0;
  display: block;
}

.mobile-menu-brand .brand-text p {
  font-size: 0.7rem;
  color: var(--gray-500);
  line-height: 1;
  margin: 0;
  font-weight: 500;
}

.btn-close-menu {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-close-menu:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-close-menu svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.mobile-menu.hidden {
  transform: translateX(100%);
  pointer-events: none;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
}

.mobile-menu-section:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.5rem;
}

.mobile-menu a {
  padding: 0.875rem 0;
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu a:hover {
  color: var(--primary);
}

.mobile-menu a.active {
  color: var(--gray-900);
  font-weight: 600;
}

.mobile-menu .btn-mobile-theme {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-xs);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: var(--transition);
}

.mobile-menu .btn-mobile-theme:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.mobile-menu .btn-mobile-theme svg {
  font-size: 1.25rem;
}

.mobile-menu .btn-mobile-cta {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--primary);
  border: none;
  color: white;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.mobile-menu .btn-mobile-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.mobile-menu .btn-mobile-cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.btn-theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding: 0;
}

.btn-theme-toggle:hover {
  background: var(--gray-100);
  border-color: var(--primary);
  transform: scale(1.1);
}

.btn-theme-toggle svg {
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.btn-theme-toggle .icon-sun {
  color: #f59e0b;
}

.btn-theme-toggle .icon-moon {
  color: #60a5fa;
}

/* Modo oscuro: mostrar SOL (para cambiar a claro) */
[data-theme="dark"] .btn-theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .btn-theme-toggle .icon-sun {
  display: block !important;
}

/* Badge en modo oscuro - mejor visibilidad */
[data-theme="dark"] .hero-badge-highlight {
  background: rgba(52, 211, 153, 0.18);
  border-color: rgba(52, 211, 153, 0.4);
  color: #a7f3d0;
  box-shadow: 0 2px 12px rgba(52, 211, 153, 0.2);
}

[data-theme="dark"] .hero-badge-highlight svg {
  fill: #a7f3d0;
}

[data-theme="dark"] .hero-badge-highlight::before {
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(52, 211, 153, 0.12) 40%,
    rgba(52, 211, 153, 0.22) 50%,
    rgba(52, 211, 153, 0.12) 60%,
    transparent 70%
  );
}

/* Hero en modo oscuro - oscurecer gradientes */
[data-theme="dark"] .hero-home {
  background:
    radial-gradient(ellipse 100% 50% at 50% 0%, rgba(59, 130, 246, 0.08), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.06), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.05), transparent 40%),
    var(--bg-primary);
}

[data-theme="dark"] .hero-home::before {
  background:
    radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.08), transparent 35%),
    radial-gradient(circle at 70% 70%, rgba(37, 99, 235, 0.06), transparent 40%);
  opacity: 0.4;
}

[data-theme="dark"] .hero-home::after {
  background:
    radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.07), transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.05), transparent 35%);
  opacity: 0.35;
}

/* Diferenciación de secciones en modo dark */
[data-theme="dark"] .lp-section--intro {
  background: linear-gradient(
    180deg,
    rgba(17, 24, 39, 0.5) 0%,
    rgba(31, 41, 55, 0.3) 100%
  );
  border-top: 1px solid rgba(75, 85, 99, 0.3);
}

[data-theme="dark"] .lp-section--benefits {
  background: rgba(17, 24, 39, 0.4);
  border-top: 1px solid rgba(75, 85, 99, 0.3);
  border-bottom: 1px solid rgba(75, 85, 99, 0.3);
}

[data-theme="dark"] .lp-section--cta {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.08) 0%,
    rgba(16, 185, 129, 0.08) 100%
  );
}

/* ===== DARK MODE TRANSITIONS ===== */
.card {
  background: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== HOME/LANDING PAGE STYLES ===== */

/* Hero Home */
/* ===== HERO HOME SECTION ===== */
.hero-home {
  background:
    radial-gradient(ellipse 100% 50% at 50% 0%, rgba(99, 102, 241, 0.25), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(147, 197, 253, 0.2), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.18), transparent 40%),
    radial-gradient(ellipse 60% 40% at 30% 60%, rgba(167, 139, 250, 0.12), transparent 50%),
    linear-gradient(135deg, rgba(224, 231, 255, 0.5) 0%, rgba(243, 244, 246, 0.3) 50%, var(--bg-primary) 100%);
  padding: 4rem 2rem;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.hero-home::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 800px;
  height: 800px;
  background:
    radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.28), transparent 35%),
    radial-gradient(circle at 70% 70%, rgba(147, 197, 253, 0.22), transparent 40%);
  border-radius: 50%;
  animation: float 25s ease-in-out infinite;
  opacity: 0.9;
}

.hero-home::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 600px;
  height: 600px;
  background:
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.25), transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(147, 197, 253, 0.18), transparent 35%);
  border-radius: 50%;
  animation: float-reverse 30s ease-in-out infinite;
  opacity: 0.85;
}

@keyframes float-reverse {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-25px, 35px) rotate(-120deg); }
  66% { transform: translate(35px, -25px) rotate(-240deg); }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(35px, -35px) rotate(120deg); }
  66% { transform: translate(-25px, 25px) rotate(240deg); }
}

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

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

/* Badge Destacado */
.hero-badge-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(16, 185, 129, 0.14);
  backdrop-filter: blur(10px);
  color: var(--success-dark);
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
  animation: fade-in-up 0.6s ease-out 0.1s both;
}

.hero-badge-highlight::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(16, 185, 129, 0.06) 40%,
    rgba(16, 185, 129, 0.12) 50%,
    rgba(16, 185, 129, 0.06) 60%,
    transparent 70%
  );
  animation: hologram-shine 3s linear infinite;
}

@keyframes hologram-shine {
  0% {
    transform: translate(-100%, -100%) rotate(45deg);
  }
  100% {
    transform: translate(100%, 100%) rotate(45deg);
  }
}

.hero-badge-highlight::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(16, 185, 129, 0.04),
    transparent
  );
  animation: hologram-scan 2s ease-in-out infinite;
}

@keyframes hologram-scan {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

.hero-badge-highlight svg,
.hero-badge-highlight span {
  position: relative;
  z-index: 1;
}

.hero-badge-highlight svg {
  width: 18px;
  height: 18px;
  fill: var(--success-dark);
}

/* Título */
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  animation: fade-in-up 0.6s ease-out;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtítulo */
.hero-subtitle {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  animation: fade-in-up 0.6s ease-out 0.2s both;
}

/* Features Grid */
.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  animation: fade-in-up 0.6s ease-out 0.4s both;
}

.hero-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  text-align: left;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.hero-feature:nth-child(1) {
  animation: slide-in-left 0.5s ease-out 0.5s both;
}

.hero-feature:nth-child(2) {
  animation: slide-in-right 0.5s ease-out 0.6s both;
}

.hero-feature:nth-child(3) {
  animation: slide-in-left 0.5s ease-out 0.7s both;
}

.hero-feature:nth-child(4) {
  animation: slide-in-right 0.5s ease-out 0.8s both;
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.hero-feature:hover .hero-feature-icon {
  background: var(--primary);
  transform: scale(1.1) rotate(5deg);
}

.hero-feature-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
  transition: fill 0.3s ease;
}

.hero-feature:hover .hero-feature-icon svg {
  fill: white;
}

/* Icono de dólar tachado */
.hero-feature:nth-child(1) .hero-feature-icon {
  position: relative;
}

.hero-feature:nth-child(1) .hero-feature-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 3px;
  background: var(--primary);
  transform: translateY(-50%) rotate(-20deg);
  transition: background 0.3s ease;
}

.hero-feature:nth-child(1):hover .hero-feature-icon::after {
  background: white;
}

.hero-feature-text h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.hero-feature-text p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

/* CTA Wrapper */
.hero-cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  animation: fade-in-up 0.6s ease-out 0.9s both;
}

.hero-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--primary);
  color: white;
  padding: 1.25rem 3rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.hero-cta-button::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;
}

.hero-cta-button:hover::before {
  left: 100%;
}

.hero-cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.4);
  background: var(--primary-dark);
}

.hero-cta-button:active {
  transform: translateY(-1px) scale(0.98);
}

.hero-cta-button svg {
  width: 20px;
  height: 20px;
  fill: white;
  transition: transform 0.3s ease;
  animation: arrow-bounce 2s ease-in-out infinite;
}

.hero-cta-button:hover svg {
  transform: translateX(5px);
  animation: none;
}

@keyframes arrow-bounce {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

.hero-cta-note {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 500;
}

.metric-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== FEATURES COMPACTAS (COLUMNA DERECHA - GRID 2x2) ===== */
.hero-features-right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  animation: fade-in-up 0.6s ease-out 0.5s both;
}

.hero-feature-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  padding: 1.5rem 1.25rem;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  text-align: center;
}

.hero-feature-compact:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.hero-feature-icon-compact {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.hero-feature-compact:hover .hero-feature-icon-compact {
  background: var(--primary);
  transform: scale(1.15) rotate(5deg);
}

.hero-feature-icon-compact svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
  transition: fill 0.3s ease;
}

.hero-feature-compact:hover .hero-feature-icon-compact svg {
  fill: white;
}

/* Icono de señal de tráfico - usar color en lugar de fill */
.hero-feature-icon-traffic svg {
  fill: none;
  color: var(--primary);
  transition: color 0.3s ease;
}

.hero-feature-compact:hover .hero-feature-icon-traffic svg {
  color: white;
  fill: none;
}

/* Icono de dólar tachado en el primer feature compacto */
.hero-feature-compact:nth-child(1) .hero-feature-icon-compact {
  position: relative;
}

.hero-feature-compact:nth-child(1) .hero-feature-icon-compact::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 3px;
  background: var(--primary);
  transform: translateY(-50%) rotate(-20deg);
  transition: background 0.3s ease;
}

.hero-feature-compact:nth-child(1):hover .hero-feature-icon-compact::after {
  background: white;
}

.hero-feature-text-compact {
  flex: 1;
  text-align: center;
}

.hero-feature-text-compact h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
}

.hero-feature-text-compact p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

/* Product Section */
.product-section {
  padding: 5rem 2rem;
  background: var(--bg-primary);
}

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

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.product-copy {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.product-eyebrow {
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.product-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 0.975rem;
  line-height: 1.6;
}

.product-list li {
  position: relative;
  padding-left: 1.75rem;
}

.product-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-light);
}

.product-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.product-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.product-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.product-card-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.product-card h4 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.product-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.5;
}

/* ===== LANDING PAGE BLOCKS ===== */
.lp-section {
  padding: 4rem 2rem;
  background: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.lp-section:last-of-type {
  padding-bottom: 0;
  margin-bottom: 0;
}

.lp-section--exam-home {
  padding: 2.5rem 2rem 2.5rem;
}

/* ===== INTERNAL PAGE HEADER ===== */
/* ===== INTERNAL PAGE HEADER (Modern Version) ===== */
.page-header {
  background: var(--bg-primary);
  padding: 3rem 2rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.08) 0%,
    rgba(99, 102, 241, 0.02) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.page-header-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.25rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.page-header-badge svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.page-header-title {
  margin: 0 0 0.875rem;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-header-subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* Legacy support for icon-based headers */
.page-header-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 2px solid rgba(99, 102, 241, 0.2);
}

.page-header-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .page-header {
    padding: 2.5rem 1.5rem 2rem;
  }

  .page-header-title {
    font-size: 1.875rem;
  }

  .page-header-subtitle {
    font-size: 1rem;
  }

  .page-header-badge {
    font-size: 0.8125rem;
    padding: 0.4rem 0.875rem;
  }
}

.lp-section--intro {
  background: linear-gradient(
    180deg,
    var(--bg-primary) 0%,
    rgba(99, 102, 241, 0.08) 100%
  );
}

.lp-section--benefits {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.lp-section--cta {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.12) 0%,
    rgba(16, 185, 129, 0.12) 100%
  );
}

.lp-container {
  max-width: 1100px;
  margin: 0 auto;
}

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

.lp-title {
  font-size: 2rem;
  color: var(--text-primary);
  margin: 0 0 1rem;
}

.lp-subtitle {
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 1rem;
}

.lp-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

.lp-panel {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.lp-panel--list {
  background: var(--bg-secondary);
}

/* Exam pre-start section with distinct background */
.exam-pre-start {
  background: var(--primary-light) !important;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}

[data-theme="dark"] .exam-pre-start {
  background: var(--primary-light) !important;
  border-color: var(--primary);
}

/* Exam start banner */
.exam-start-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--primary);
  color: white;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -1.5rem -1.5rem 1.5rem -1.5rem;
}

.exam-start-banner svg {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  fill: white;
}

.exam-start-banner strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: 0.025em;
}

.exam-start-banner p {
  margin: 0;
  font-size: 0.9375rem;
  opacity: 0.95;
  font-weight: 500;
}

.exam-instructions {
  display: grid;
  gap: 1rem;
}

.exam-instructions-header {
  display: grid;
  gap: 0.25rem;
}

.exam-instructions-title {
  margin: 0;
  font-size: 1.6rem;
  color: var(--text-primary);
}

.exam-instructions-subtitle {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.exam-instructions-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.exam-instructions-metric {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: grid;
  gap: 0.25rem;
}

.exam-instructions-metric strong {
  font-size: 1.05rem;
  color: var(--text-primary);
}

.exam-instructions-metric span {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.resource-placeholder {
  text-align: center;
  color: var(--text-secondary);
  padding: 1rem 0 2rem;
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.resource-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.resource-icon svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.resource-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 0;
}

.resource-description {
  max-width: 520px;
  margin: 0;
  line-height: 1.6;
  font-size: 1rem;
}

/* ===== RECURSOS - CATEGORY CARDS ===== */
.resources-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.resources-intro-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
}

.resources-intro-description {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

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

@media (max-width: 992px) {
  .resource-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .resource-categories-grid {
    grid-template-columns: 1fr;
  }
}

.resource-category-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.resource-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), rgba(99, 102, 241, 0.6));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.resource-category-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.resource-category-card:hover::before {
  opacity: 1;
}

.resource-category-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.resource-category-card:hover .resource-category-icon {
  background: rgba(99, 102, 241, 0.15);
  transform: scale(1.05);
}

.resource-category-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--primary);
}

/* Color específico para cada tipo de señal */
/* 1. Señales Reglamentarias - Rojo */
.resource-category-card:nth-child(1) .resource-category-icon {
  background: rgba(239, 68, 68, 0.1);
}

.resource-category-card:nth-child(1) .resource-category-icon svg {
  fill: #ef4444;
}

.resource-category-card:nth-child(1):hover .resource-category-icon {
  background: rgba(239, 68, 68, 0.15);
}

/* 2. Señales Preventivas - Amarillo */
.resource-category-card:nth-child(2) .resource-category-icon {
  background: rgba(234, 179, 8, 0.1);
}

.resource-category-card:nth-child(2) .resource-category-icon svg {
  fill: #eab308;
}

.resource-category-card:nth-child(2):hover .resource-category-icon {
  background: rgba(234, 179, 8, 0.15);
}

/* 3. Señales Informativas - Azul */
.resource-category-card:nth-child(3) .resource-category-icon {
  background: rgba(59, 130, 246, 0.1);
}

.resource-category-card:nth-child(3) .resource-category-icon svg {
  fill: #3b82f6;
}

.resource-category-card:nth-child(3):hover .resource-category-icon {
  background: rgba(59, 130, 246, 0.15);
}

/* 4. Demarcación Horizontal - Gris oscuro */
.resource-category-card:nth-child(4) .resource-category-icon {
  background: rgba(71, 85, 105, 0.1);
}

.resource-category-card:nth-child(4) .resource-category-icon svg {
  fill: #475569;
}

.resource-category-card:nth-child(4):hover .resource-category-icon {
  background: rgba(71, 85, 105, 0.15);
}

/* 5. Demarcación Luminosa - Verde */
.resource-category-card:nth-child(5) .resource-category-icon {
  background: rgba(34, 197, 94, 0.1);
}

.resource-category-card:nth-child(5) .resource-category-icon svg {
  fill: #22c55e;
}

.resource-category-card:nth-child(5):hover .resource-category-icon {
  background: rgba(34, 197, 94, 0.15);
}

/* 6. Demarcación Transitoria - Naranja */
.resource-category-card:nth-child(6) .resource-category-icon {
  background: rgba(249, 115, 22, 0.1);
}

.resource-category-card:nth-child(6) .resource-category-icon svg {
  fill: #f97316;
}

.resource-category-card:nth-child(6):hover .resource-category-icon {
  background: rgba(249, 115, 22, 0.15);
}

.resource-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.resource-category-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  transition: color 0.3s ease;
}

.resource-category-card:hover .resource-category-title {
  color: var(--primary);
}

.resource-category-badge {
  padding: 0.25rem 0.75rem;
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.resource-category-description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9375rem;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}

.resource-category-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: gap 0.3s ease;
}

.resource-category-card:hover .resource-category-footer {
  gap: 0.75rem;
}

.resource-category-footer svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.resource-category-card:hover .resource-category-footer svg {
  transform: translateX(4px);
}

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

  .resource-category-card {
    padding: 1.5rem;
  }

  .resources-intro-title {
    font-size: 1.5rem;
  }
}

/* ===== SUBCATEGORIES ===== */
.subcategories-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.subcategories-intro h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
}

.subcategories-intro p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

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

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

.subcategory-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.subcategory-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.subcategory-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.subcategory-card:hover .subcategory-icon {
  background: rgba(59, 130, 246, 0.15);
  transform: scale(1.05);
}

.subcategory-icon svg {
  width: 32px;
  height: 32px;
  fill: #3b82f6;
}

.subcategory-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.subcategory-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
  transition: color 0.3s ease;
}

.subcategory-card:hover .subcategory-title {
  color: var(--primary);
}

.subcategory-description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9375rem;
  margin: 0 0 1.25rem;
  flex-grow: 1;
}

.subcategory-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: gap 0.3s ease;
}

.subcategory-link:hover {
  gap: 0.75rem;
}

.subcategory-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.subcategory-link:hover svg {
  transform: translateX(2px);
}

.subcategory-link-disabled {
  color: var(--text-tertiary);
  cursor: not-allowed;
  opacity: 0.6;
}

.subcategory-link-disabled:hover {
  gap: 0.5rem;
}

.subcategory-link-disabled:hover svg {
  transform: none;
}

/* ===== SIGNALS DETAIL PAGE ===== */
.signals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 1200px) {
  .signals-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .signals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.signal-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.signal-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.signal-image-container {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 3px solid var(--border-color);
  transition: all 0.3s ease;
}

.signal-card:hover .signal-image-container {
  border-color: var(--primary);
  transform: scale(1.05);
}

.signal-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.signal-placeholder-icon {
  width: 64px;
  height: 64px;
  fill: var(--gray-400);
}

.signal-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.signal-description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9375rem;
  margin: 0;
}

.signals-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.signals-empty svg {
  width: 80px;
  height: 80px;
  fill: var(--gray-300);
  margin-bottom: 1.5rem;
}

.signals-empty h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
}

.signals-empty p {
  font-size: 1rem;
  margin: 0;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.back-button:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateX(-4px);
}

.back-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.back-button:hover svg {
  transform: translateX(-4px);
}

@media (max-width: 600px) {
  .signals-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .signal-card {
    padding: 1.5rem;
  }

  .signal-image-container {
    width: 100px;
    height: 100px;
  }
}

.lp-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  color: var(--primary);
  margin: 0 0 1.5rem;
}

.lp-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  color: var(--text-secondary);
  display: grid;
  gap: 1rem;
  line-height: 1.6;
}

.lp-list li {
  position: relative;
  padding-left: 28px;
}

.lp-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--success);
}

.lp-list li::after {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--success);
  opacity: 0;
  animation: bullet-pulse 2.5s ease-out infinite;
  pointer-events: none;
}

/* ===== QUIENES SOMOS ===== */
.about-content p {
  margin: 0 0 1.5rem;
}

.about-content p:last-of-type {
  margin-bottom: 0;
}

.about-content .lp-eyebrow {
  margin: 2rem 0 1rem;
}

.about-content .lp-eyebrow:first-of-type {
  margin-top: 0;
}

.about-content .lp-list {
  margin: 0 0 2.5rem;
}

@keyframes bullet-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(3);
    opacity: 0;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

.lp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.lp-cta--primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
  gap: 0.75rem;
}

.lp-cta--primary::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;
}

.lp-cta--primary svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.3s ease;
  animation: arrow-bounce 2s ease-in-out infinite;
}

.lp-cta--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.lp-cta--primary:hover::before {
  left: 100%;
}

.lp-cta--primary:hover svg {
  transform: translateX(5px);
  animation: none;
}

.lp-panel--cards {
  display: grid;
  gap: 1.5rem;
}

.lp-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  background: var(--bg-primary);
  transition: var(--transition);
}

.lp-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.lp-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-weight: 700;
}

.lp-card h4 {
  margin: 0 0 0.5rem;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.lp-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.95rem;
}

.lp-card-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Slider Styles */
.slider-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slider-wrapper {
  overflow: hidden;
  flex: 1;
}

.slider-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.3s ease-in-out;
}

.slider-arrow {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  color: var(--text-primary);
}

.slider-arrow:hover:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: scale(1.1);
}

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

.slider-arrow svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.slider-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

.slider-dot:hover {
  background: var(--primary);
  opacity: 0.7;
}

/* Example Questions Slider Styles */
.lp-panel--examples {
  position: relative;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.example-slider-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.example-slider-wrapper {
  overflow: hidden;
  flex: 1;
}

.example-slider-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.4s ease-in-out;
  touch-action: pan-y;
}

.example-question-card {
  min-width: 100%;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.example-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(108, 172, 228, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.example-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.example-question-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.example-question-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.25rem auto;
  display: block;
  border: 2px solid var(--border-color);
}

.example-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.example-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  transition: var(--transition);
  position: relative;
}

.example-option.correct {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.05);
}

.example-option-letter {
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  flex-shrink: 0;
}

.example-option.correct .example-option-letter {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.example-option-text {
  flex: 1;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.5;
}

.example-option-check {
  width: 26px;
  height: 26px;
  color: var(--success);
  flex-shrink: 0;
}

.example-option-check svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.example-slider-arrow {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.example-slider-arrow:hover:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: scale(1.1);
  box-shadow: var(--shadow);
}

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

.example-slider-arrow svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.example-slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.example-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-color);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.example-dot.active {
  background: var(--primary);
  transform: scale(1.25);
}

.example-dot:hover {
  background: var(--primary);
  opacity: 0.7;
}

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

  .example-slider-container {
    gap: 0;
  }
}

/* Example CTA Slide Styles */
.example-cta-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
}

.example-cta-content {
  text-align: center;
  color: white;
  max-width: 500px;
  padding: 2rem;
}

.example-cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: white;
  line-height: 1.3;
}

.example-cta-subtitle {
  font-size: 1.15rem;
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
}

.example-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: white;
  color: var(--primary);
  padding: 1.25rem 3rem;
  border-radius: 100px;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.example-cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(108, 172, 228, 0.2), transparent);
  transition: left 0.5s;
}

.example-cta-button:hover::before {
  left: 100%;
}

.example-cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
  background: #f8f9fa;
}

.example-cta-button:active {
  transform: translateY(-1px) scale(0.98);
}

.example-cta-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.3s ease;
  animation: arrow-bounce 2s ease-in-out infinite;
}

.example-cta-button:hover svg {
  transform: translateX(5px);
  animation: none;
}

.lp-benefits-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.lp-benefit {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.lp-benefit-icon {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lp-benefit-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.lp-benefit h3 {
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.lp-benefit p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.95rem;
}

.lp-cta-box {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: grid;
  gap: 2rem;
  box-shadow: var(--shadow-sm);
}

.lp-cta-actions {
  display: grid;
  gap: 0.75rem;
}

.lp-cta--accent {
  background: var(--success);
  color: white;
  gap: 0.75rem;
}

.lp-cta--accent svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.3s ease;
  animation: arrow-bounce 2s ease-in-out infinite;
}

.lp-cta--accent:hover {
  background: var(--success-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.lp-cta--accent:hover svg {
  transform: translateX(5px);
  animation: none;
}

.lp-cta--ghost {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-primary);
}

.lp-cta--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.lp-cta-foot {
  display: flex;
  gap: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

@media (min-width: 900px) {
  .lp-intro-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: start;
    gap: 2.5rem;
  }

  .lp-panel--cards {
    display: block;
  }

  .slider-container {
    display: block;
  }

  .slider-arrow {
    display: none;
  }

  .slider-wrapper {
    overflow: hidden;
  }

  .slider-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .slider-dots {
    display: none;
  }

  .lp-benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lp-cta-box {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
  }
}

/* Benefits Section */
.benefits-section {
  padding: 5rem 2rem;
  background: var(--bg-secondary);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

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

.benefit-card {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.benefit-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.benefit-icon-primary {
  background: var(--primary-light);
  color: var(--primary);
}

.benefit-icon-warning {
  background: var(--warning-light);
  color: var(--warning);
}

.benefit-icon-success {
  background: var(--success-light);
  color: var(--success);
}

.benefit-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.benefit-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  padding: 5rem 2rem;
  background: var(--bg-primary);
}

.cta-card {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(108, 172, 228, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-card .btn-primary-large {
  background: white;
  color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cta-card .btn-primary-large:hover {
  background: var(--gray-50);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  font-size: 0.9375rem;
}

.cta-feature svg {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
}

/* FAQ Section */
.faq-section {
  padding: 5rem 2rem;
  background: var(--bg-secondary);
}

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

.faq-item {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  transition: var(--transition);
}

.faq-item[open] {
  border-color: var(--primary);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  color: var(--primary);
  transition: var(--transition);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9375rem;
}

.faq-answer p {
  margin: 0;
}

/* Developer Inline (FAQ) */
.faq-developed-by {
  margin: 2.5rem auto 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
}

.faq-developed-label {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  text-transform: none;
}

.developer-logo {
  width: min(200px, 60vw);
  height: auto;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.developer-logo--dark {
  display: none;
}

.faq-developed-by a:hover .developer-logo {
  opacity: 1;
}

[data-theme="dark"] .faq-developed-label {
  color: #ffffff;
}

[data-theme="dark"] .developer-logo--light {
  display: none;
}

[data-theme="dark"] .developer-logo--dark {
  display: inline-block;
}

main > section:last-of-type {
  padding-bottom: clamp(1.5rem, 2.4vw, 2.5rem) !important;
  margin-bottom: 0 !important;
}

main + .main-footer {
  margin-top: 0 !important;
}

/* Support Section */
.support-section {
  padding: 5rem 2rem;
  background: var(--bg-primary);
}

.support-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-secondary);
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
}

.support-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 2.5rem;
}

.support-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.support-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.support-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-support {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--primary);
  color: white;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-support:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-support svg {
  font-size: 1.125rem;
}

.btn-support-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-color);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn-support-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-support-secondary svg {
  font-size: 1.125rem;
}

.footer-badge-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--success);
  font-weight: 600;
  font-size: 0.875rem;
}

.footer-badge-inline svg {
  font-size: 1rem;
}

/* ===== RESPONSIVE DESIGN - HOME ===== */

@media (max-width: 768px) {
  .hero-home {
    padding: 2rem 1.5rem 3rem;
  }

  .hero-home::before {
    width: 400px;
    height: 400px;
  }

  .hero-home::after {
    width: 350px;
    height: 350px;
  }

  /* Cambiar a layout de una columna en mobile */
  .hero-home-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Centrar contenido en mobile */
  .hero-content-left {
    text-align: center;
  }

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

  .hero-subtitle {
    font-size: 1.125rem;
    margin-left: 0;
    margin-right: 0;
  }

  /* Features compactas en mobile - mantener grid 2x2 */
  .hero-features-right {
    gap: 0.75rem;
  }

  .hero-feature-compact {
    padding: 1.25rem 1rem;
  }

  .hero-feature-icon-compact {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .hero-feature-icon-compact svg {
    width: 21px;
    height: 21px;
  }

  .hero-feature-text-compact h3 {
    font-size: 0.875rem;
  }

  .hero-feature-text-compact p {
    font-size: 0.75rem;
  }

  /* Estilos legacy para compatibilidad */
  .hero-features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-feature {
    padding: 1.25rem;
  }

  .hero-feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .hero-feature-icon svg {
    width: 22px;
    height: 22px;
  }

  .hero-cta-button {
    padding: 1.125rem 2.5rem;
    font-size: 1rem;
    width: 100%;
    max-width: 400px;
  }

  .example-cta-button {
    padding: 1.125rem 2.5rem;
    font-size: 1rem;
    width: 100%;
    max-width: 400px;
  }

  .hero-cta-wrapper {
    align-items: center;
    width: 100%;
  }

  .hero-badge-highlight {
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
  }

  .hero-badge-highlight svg {
    width: 16px;
    height: 16px;
  }

  .metric-value {
    font-size: 2rem;
  }

  .product-section {
    padding: 3rem 1.5rem;
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-copy {
    padding: 2rem;
  }

  .product-cards {
    grid-template-columns: 1fr;
  }

  .lp-section {
    padding: 3rem 1.5rem;
  }

  .lp-panel,
  .lp-cta-box {
    padding: 2rem;
  }

  .lp-cta-foot {
    flex-direction: column;
    gap: 0.5rem;
  }

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

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

  .benefits-section {
    padding: 3rem 1.5rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-section {
    padding: 3rem 1.5rem;
  }

  .cta-card {
    padding: 2rem 1.5rem;
  }

  .cta-title {
    font-size: 1.5rem;
  }

  .cta-description {
    font-size: 1rem;
  }

  .cta-features {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .faq-section {
    padding: 3rem 1.5rem;
  }

  .support-section {
    padding: 3rem 1.5rem;
  }

  .support-card {
    padding: 2rem 1.5rem;
  }

  .support-title {
    font-size: 1.5rem;
  }

  .support-description {
    font-size: 1rem;
  }

  .support-buttons {
    flex-direction: column;
  }

  .btn-support,
  .btn-support-secondary {
    width: 100%;
    justify-content: center;
  }

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

  .footer-badge-inline {
    justify-content: center;
  }
}
