/* ============================================================================
   VIVELACITY TRANSLATE - SPEECH-TO-SPEECH E2E APP
   ============================================================================ */

:root {

  /* =====================================================
     BRAND CORE — Autoridad Institucional / Alta Precisión
     ===================================================== */

  /* Base editorial / estructura */
  --translate-primary: #0F172A;        /* Slate 900 */
  --translate-primary-strong: #020617; /* Slate 950 */

  /* Identidad Translate (IA / Lenguaje) */
  --translate-accent: #4338CA;         /* Indigo 600 */
  --translate-accent-hover: #3730A3;   /* Indigo 700 */
  --translate-accent-light: #e1d2f8;   /* Indigo 50 */

  /* =====================================================
     SUPERFICIES — Editorial + Humano
     ===================================================== */

  --bg-main: #FFFFFF;
  --bg-soft: #FCFCFD;
  --bg-surface: #F9FAFB;
  --bg-input: #F3F4F6;

  /* =====================================================
     TIPOGRAFÍA
     ===================================================== */

  --text-dark: #020617;
  --text-strong: #111827;
  --text-medium: #374151;
  --text-light: #9CA3AF;
  --text-on-accent: #FFFFFF;

  --font-stack: 'Inter', system-ui, -apple-system, sans-serif;

  /* =====================================================
     BORDES & GEOMETRÍA
     ===================================================== */

  --border-light: #E5E7EB;
  --border-medium: #D1D5DB;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --header-height: 72px;

  /* =====================================================
     ELEVACIÓN
     ===================================================== */

  --shadow-card: 
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 1px 1px rgba(15, 23, 42, 0.04);

  --shadow-float:
    0 10px 15px -3px rgba(15, 23, 42, 0.12);

  --shadow-sticky:
    0 4px 6px -1px rgba(0, 0, 0, 0.05);

  /* =====================================================
     OVERLAYS SEMÁNTICOS
     ===================================================== */

  --overlay-dark-strong: rgba(2, 6, 23, 0.65);
  --overlay-dark-medium: rgba(10, 36, 99, 0.45);
  --overlay-dark-light: rgba(10, 36, 99, 0.25);

  /* =====================================================
     ACCESIBILIDAD
     ===================================================== */

  --focus-ring: 0 0 0 3px rgba(30, 64, 175, 0.35);

  /* =====================================================
     ESTADOS
     ===================================================== */

  --success: #047857;
  --warning: #B45309;
  --error: #B91C1C;
  --info: var(--translate-accent);

  /* =====================================================
     RITMO
     ===================================================== */

  --section-spacing-sm: 3rem;
  --section-spacing-md: 5rem;
  --section-spacing-lg: 7rem;
}

/* RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-stack);
  background-color: var(--bg-main);
  color: var(--text-medium);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

/* ============================================================================
   LAYOUT
   ============================================================================ */

.translate-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================================
   HEADER
   ============================================================================ */

.translate-header {
  background-color: var(--translate-primary);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sticky);
}

.header-inner {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.header-logo {
  height: 48px;
  width: auto;
}

.header-title {
  color: var(--text-on-accent);
  font-size: 1.25rem;
  font-weight: 600;
  flex: 1;
}

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Botón hamburguesa - oculto en desktop */
.mobile-menu-toggle {
  display: none;
}

/* Header Navigation Links */
.header-nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-left: auto;
}

.header-nav-links .nav-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 400;
  margin-right: 0.5rem;
}

.header-nav-links .nav-link {
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.header-nav-links .nav-link::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.2s;
}

.header-nav-links .nav-link::after {
  content: '';
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  flex-shrink: 0;
}

.header-nav-links .nav-link:last-child::after {
  display: none;
}

.header-nav-links .nav-link:hover {
  color: rgba(255, 255, 255, 1);
}

.header-nav-links .nav-link:hover::before {
  width: 100%;
}

/* Header Auth UI */
.header-auth-ui {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 1.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.header-user-name {
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
}

.header-auth-ui .btn {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  justify-content: center;
}

.btn-primary {
  background-color: var(--translate-accent);
  color: var(--text-on-accent);
}

.btn-primary:hover {
  background-color: var(--translate-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-dark);
  border: 2px solid var(--border-medium);
}

.btn-secondary:hover {
  background-color: var(--bg-input);
}

.btn-danger {
  background-color: var(--error);
  color: var(--text-on-accent);
}

.btn-danger:hover {
  background-color: #DC2626;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================================================
   CARDS
   ============================================================================ */

.card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-float);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.card-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* ============================================================================
   FORMS
   ============================================================================ */

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: all 0.2s;
  background-color: var(--bg-input);
}

.form-input:focus {
  outline: none;
  border-color: var(--translate-accent);
  background-color: var(--bg-surface);
}

.form-checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.checkbox-item:hover {
  border-color: var(--translate-accent);
  background-color: var(--bg-input);
}

.checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.checkbox-item.checked {
  border-color: var(--translate-accent);
  background-color: var(--translate-accent-light);
}

/* ============================================================================
   QR CODE DISPLAY
   ============================================================================ */

.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.qr-code {
  padding: 1rem;
  background-color: white;
  border-radius: var(--radius-sm);
}

.qr-url {
  font-size: 0.875rem;
  color: var(--text-light);
  text-align: center;
  word-break: break-all;
  max-width: 300px;
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================================
   LIVE SESSION CONTROLS
   ============================================================================ */

.live-controls {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-surface);
  padding: 1rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  display: flex;
  gap: 1rem;
  align-items: center;
  z-index: 100;
}

.audio-visualizer {
  width: 100%;
  height: 200px;
  background-color: var(--bg-input);
  border-radius: var(--radius-md);
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.audio-visualizer canvas {
  width: 100%;
  height: 100%;
}

.audio-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.audio-bar {
  width: 4px;
  background-color: var(--translate-accent);
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { height: 20%; }
  50% { height: 80%; }
}

.audio-bar:nth-child(1) { animation-delay: 0s; }
.audio-bar:nth-child(2) { animation-delay: 0.1s; }
.audio-bar:nth-child(3) { animation-delay: 0.2s; }
.audio-bar:nth-child(4) { animation-delay: 0.3s; }
.audio-bar:nth-child(5) { animation-delay: 0.4s; }

/* ============================================================================
   STATS DISPLAY
   ============================================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.stat-card {
  background-color: var(--bg-surface);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--translate-accent);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================================
   LISTENER LIST
   ============================================================================ */

.listener-list {
  background-color: var(--bg-surface);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.listener-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.listener-item:last-child {
  border-bottom: none;
}

.listener-flag {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.listener-count {
  font-weight: 600;
  color: var(--text-dark);
}

/* ============================================================================
   BADGES
   ============================================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-success {
  background-color: #DCFCE7;
  color: var(--success);
}

.badge-warning {
  background-color: #FEF3C7;
  color: var(--warning);
}

.badge-error {
  background-color: #FEE2E2;
  color: var(--error);
}

.badge-info {
  background-color: #DBEAFE;
  color: var(--info);
}

/* ============================================================================
   LOADING STATES
   ============================================================================ */

.spinner {
  border: 4px solid var(--border-light);
  border-top: 4px solid var(--translate-accent);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

/* Host Live Layout */
.host-live-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .translate-container {
    padding: 0 1rem;
  }

  .header-title {
    font-size: 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .btn-large {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .live-controls {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    transform: none;
    flex-wrap: wrap;
  }

  /* Host Live Layout - Mobile: Stack vertically */
  .host-live-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Form Checkbox Group - Ensure proper wrapping */
  .form-checkbox-group {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

/* ============================================================================
   UTILITIES
   ============================================================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ============================================================================
   HERO SECTION - FULL WIDTH WITH BACKGROUND IMAGE
   ============================================================================ */

.hero-translate {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-image: url('/img/translate/hero_translate.jpg');
  background-size: cover;
  background-position: right center;
  background-attachment: scroll; /* clave */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-translate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.55) 0%,
    rgba(2, 6, 23, 0.45) 35%,
    rgba(2, 6, 23, 0.35) 100%
  );
  z-index: 1;
}

/* Hero específico para guides con imagen diferente */
body[data-page="guides"] .hero-translate {
  background-image: url('/img/translate/hero_guides.jpg');
}

/* Hero específico para commerce con imagen diferente */
body[data-page="commerce"] .hero-translate {
  background-image: url('/img/translate/hero_commerce.png');
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.65rem);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-tech-details {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  margin-bottom: 0;
  line-height: 1.6;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.92);
}

.hero-text-box {
  background: rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-width: 720px;
  margin: 0 auto 3rem auto;
}

.hero-text-box .hero-subtitle {
  margin-bottom: 1rem;
}

.hero-apps-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

#loginSection,
#loggedInSection {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.btn-hero {
  background-color: var(--translate-accent);
  color: var(--text-on-accent);
  font-family: var(--font-stack);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;

  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow: var(--shadow-card);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  cursor: pointer;
  text-decoration: none;
}

.btn-hero:hover {
  background-color: var(--translate-accent-hover);
  box-shadow: var(--shadow-float);
}

.btn-hero:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn-hero-secondary {
  background-color: rgba(255, 255, 255, 0.25);
  color: white;
  font-family: var(--font-stack);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;

  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.4);

  box-shadow: var(--shadow-card);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  cursor: pointer;
  text-decoration: none;
}

.btn-hero-secondary:hover {
  background-color: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-float);
}

.btn-hero-secondary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.welcome-text {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.welcome-text strong {
  font-weight: 700;
  color: white;
}

/* ============================================================================
   HOW IT WORKS - CUSTOMER JOURNEY
   ============================================================================ */

.how-it-works {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 50%, #f5f7fa 100%);
  position: relative;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-medium);
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.journey-section {
  margin-bottom: 5rem;
}

.journey-section:last-child {
  margin-bottom: 0;
}

.journey-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--translate-primary);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.journey-icon {
  font-size: clamp(2rem, 4vw, 3rem);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.step-card {
  background: white;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 2px solid var(--translate-accent);
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--translate-accent), var(--translate-primary));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.step-card:hover::before {
  transform: scaleX(1);
}

.step-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border-color: var(--translate-accent-light);
}

.step-number {
  position: absolute;
  top: -15px;
  right: 20px;
  background: linear-gradient(135deg, var(--translate-primary) 0%, #1a3a7d 100%);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(10, 36, 99, 0.3);
  z-index: 2;
}

.step-icon {
  width: 3rem;
  height: 3rem;
  color: var(--translate-accent);
  margin-bottom: 1.5rem;
  display: block;
}

.step-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.step-card h4 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.875rem;
  line-height: 1.3;
}

.step-card p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 1rem;
}

/* ============================================================================
   APPS SECTION
   ============================================================================ */

.apps-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.app-card {
  background: white;
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--translate-accent);
}

.app-card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--translate-accent-light) 0%, #e0e7ff 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.app-card-icon svg {
  color: var(--translate-accent);
}

.app-card-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.app-card-description {
  font-size: 1.125rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.app-card-features {
  list-style: none;
  margin: 0 0 2.5rem 0;
  padding: 0;
  flex-grow: 1;
}

.app-card-features li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-medium);
  line-height: 1.6;
  font-size: 1rem;
}

.app-card-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--translate-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.btn-app-card {
  background: linear-gradient(135deg, var(--translate-accent) 0%, var(--translate-accent-hover) 100%);
  color: white;
  font-family: var(--font-stack);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  width: 100%;
}

.btn-app-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(67, 56, 202, 0.4);
}

.btn-app-card svg {
  transition: transform 0.3s ease;
}

.btn-app-card:hover svg {
  transform: translateX(4px);
}

@media (max-width: 968px) {
  .apps-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .app-card {
    padding: 2.5rem 2rem;
  }

  .app-card-title {
    font-size: 1.5rem;
  }
}

/* ============================================================================
   TECHNICAL SPECIFICATIONS
   ============================================================================ */

.tech-specs {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--translate-primary) 0%, #1a3a7d 100%);
  position: relative;
  overflow: hidden;
}

.tech-specs::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.tech-specs .section-title {
  color: white;
  position: relative;
  z-index: 1;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.spec-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.spec-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.spec-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--translate-accent);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.spec-card:hover::before {
  opacity: 1;
}

.spec-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-on-accent);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 15px rgba(255, 107, 0, 0.3);
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.spec-label {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.spec-card p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.translate-footer {
  background: var(--translate-primary);
  padding: 3rem 0 2rem;
  text-align: center;
  border-top: 3px solid var(--translate-accent);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.contenedor-banner {
  width: 100%;
  margin-bottom: 1rem;
}

.banner-inferior {
  background: url("/img/banner-desktop.jpg") center/cover no-repeat !important;
  aspect-ratio: 96/10 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 10px !important;
  margin: 0 auto 16px auto;
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-title {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  font-weight: 400;
  margin: 0;
}

.footer-logo {
  height: 48px;
  width: auto;
  transition: all 0.3s ease;
  filter: brightness(1);
}

.footer-logo:hover {
  filter: brightness(1.2);
  transform: scale(1.05);
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--translate-accent);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-links a:hover::after {
  width: 100%;
}

/* Footer Social Links */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s;
}

.social-link:hover {
  background: var(--translate-accent);
  color: var(--translate-primary);
  transform: translateY(-2px);
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  text-align: center;
  max-width: 400px;
  margin: 0;
}

.footer-legal {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.footer-legal p {
  margin: 0.25rem 0;
}

/* ============================================================================
   HEADER IMPROVEMENTS
   ============================================================================ */

.header-title {
  font-size: clamp(0.875rem, 2vw, 1.25rem);
  text-align: center;
  line-height: 1.3;
}

/* ============================================================================
   RESPONSIVE IMPROVEMENTS
   ============================================================================ */

@media (max-width: 768px) {
  /* Hide navigation links on mobile */
  /* Botón hamburguesa - solo visible en móvil */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
  }

  .hamburger-line {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Animación cuando el menú está abierto */
  .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  /* Menú de navegación en móvil */
  .header-nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--translate-primary) 0%, #4338ca 100%);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
  }

  .header-nav-links.active {
    max-height: 500px;
    opacity: 1;
  }

  .header-nav-links .nav-link {
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
  }

  .header-nav-links .nav-link::before,
  .header-nav-links .nav-link::after {
    display: none;
  }

  .header-nav-links .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .header-auth-ui {
    padding: 1rem 2rem;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }

  .header-auth-ui .btn {
    width: 100%;
  }

  /* ============================================================================
     HERO MOBILE - CONTROL MANUAL DE POSICIÓN Y TAMAÑO POR PÁGINA
     ============================================================================

     Para ajustar la posición de la imagen hero en mobile:
     - background-position: Controla dónde se centra la imagen
       Formato: horizontal% vertical%
       Ejemplos: "35% 25%" = 35% desde la izquierda, 25% desde arriba
                "center center" = centrado
                "right 30%" = derecha, 30% desde arriba

     - background-size: Controla el tamaño/escala de la imagen
       Opciones: "cover" (llena el espacio, puede recortar)
                "contain" (imagen completa visible, puede dejar espacios)
                "120%" (escala personalizada, números mayores = más zoom)
     ============================================================================ */

  /* TRANSLATE LANDING (index.html) */
  .hero-translate {
    background-attachment: scroll;
    min-height: 100svh;
  }

  body[data-page="translate"] .hero-translate {
    /* Ajusta estos valores para /translate/index.html */
    background-position: 60% 25%;
    background-size: cover;
  }

  /* GUIDES LANDING (guides/index.html) */
  body[data-page="guides"] .hero-translate {
    /* Ajusta estos valores para /translate/guides/index.html */
    background-position: 36% 25%;
    background-size: cover;
  }

  /* COMMERCE LANDING (commerce/index.html) */
  body[data-page="commerce"] .hero-translate {
    /* Ajusta estos valores para /translate/commerce/index.html */
    background-position: 33% 0%;
    background-size: cover;
  }

  .hero-content {
    padding: 2rem 1.5rem;
  }

  .btn-hero,
  .btn-hero-secondary {
    min-width: 100%;
    padding: 1rem 2rem;
  }

  .how-it-works {
    padding: 4rem 0;
  }

  .journey-title {
    flex-direction: column;
    text-align: center;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .step-card {
    padding: 2rem 1.5rem;
  }

  .tech-specs {
    padding: 4rem 0;
  }

  .specs-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .translate-footer {
    padding: 2rem 0 1.5rem;
  }

  .footer-links {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .banner-inferior {
    width: 90% !important;
    aspect-ratio: 7/1 !important;
    background-image: url(/img/banner-mobile.jpg) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border: 0 !important;
    border-radius: 6px !important;
    margin: 0 auto 16px auto;
    max-width: none !important;
  }
}

@media (max-width: 480px) {
  .header-logo {
    height: 36px;
  }

  .header-title {
    font-size: 0.75rem;
  }

  .journey-section {
    margin-bottom: 3rem;
  }

  /* Stats Grid - Single column on very small screens */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* Form inputs full width */
  .form-input,
  .btn-large {
    font-size: 0.9rem;
  }

  /* Reduce card padding on very small screens */
  .card {
    padding: 1.25rem;
  }
}

/* ============================================================================
   WHITE PAPER - INSTITUTIONAL STYLING
   ============================================================================ */

/* Hero Section - Institutional */
.whitepaper-hero {
  background-image: url('/img/translate/white_paper_01.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.whitepaper-hero.panama {
  background-image: url('/img/translate/panama.webp');
}

.whitepaper-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.85) 0%,
    rgba(26, 58, 125, 0.75) 50%,
    rgba(15, 23, 42, 0.85) 100%
  );
  z-index: 1;
}

.whitepaper-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.whitepaper-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.whitepaper-hero-subtitle {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.whitepaper-hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.02em;
}

/* Section Base */
.whitepaper-section {
  padding: 5rem 0;
}

.whitepaper-section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
  text-align: center;
  letter-spacing: -0.01em;
}

.whitepaper-content {
  max-width: 1000px;
  margin: 0 auto;
}

/* Thesis Section */
.whitepaper-thesis {
  background-color: #f0f0ff;
}

.whitepaper-lead {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.8;
  color: var(--text-medium);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.whitepaper-lead strong {
  color: var(--translate-accent);
  font-weight: 700;
}

/* Tech Section */
.whitepaper-tech {
  background: #ffffff;
}

.whitepaper-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-medium);
  margin-bottom: 3rem;
  text-align: center;
}

.whitepaper-text strong {
  color: var(--translate-primary);
  font-weight: 600;
}

.whitepaper-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.whitepaper-feature-card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid var(--border-light);
}

.whitepaper-feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: var(--translate-accent);
}

.whitepaper-feature-icon {
  color: var(--translate-accent);
  margin-bottom: 1.5rem;
}

.whitepaper-feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.whitepaper-feature-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--translate-accent);
  margin-bottom: 1rem;
}

.whitepaper-feature-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light);
}

/* Comparison Table Section */
.whitepaper-comparison {
  background: #f0f0ff;
}

.comparison-table {
  max-width: 1000px;
  margin: 0 auto;
}

.comparison-header {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.comparison-col {
  text-align: center;
  padding: 1.5rem 1rem;
}

.comparison-traditional h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--error);
}

.comparison-vivelacity h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--translate-accent);
}

.comparison-row {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.comparison-label {
  font-weight: 700;
  color: var(--text-dark);
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  font-size: 1.125rem;
}

.comparison-cell {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid var(--border-light);
}

.comparison-cell.comparison-traditional {
  border-color: rgba(185, 28, 28, 0.2);
}

.comparison-cell.comparison-vivelacity {
  border-color: rgba(67, 56, 202, 0.2);
}

.comparison-cell:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.comparison-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.comparison-cell p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-medium);
}

/* Economics Section */
.whitepaper-economics {
  background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%);
  padding: 3rem 0;
}

.whitepaper-economics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.whitepaper-economics-card {
  background: var(--bg-surface);
  border-radius: 12px;
  padding: 2.5rem;
  border-left: 4px solid var(--translate-accent);
  transition: all 0.3s ease;
}

.whitepaper-economics-card:hover {
  background: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateX(8px);
}

.whitepaper-economics-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.whitepaper-economics-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
}

.whitepaper-economics-description strong {
  color: var(--translate-accent);
  font-weight: 600;
}

.whitepaper-economics-highlight {
  background: var(--translate-accent-light);
  color: var(--translate-accent);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
}

/* Impact Section - Pillars */
.whitepaper-impact {
  background: linear-gradient(135deg, var(--translate-primary) 0%, #1a3a7d 100%);
  color: white;
}

.whitepaper-impact .whitepaper-section-title {
  color: white;
}

.whitepaper-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.whitepaper-pillar {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: all 0.3s ease;
  position: relative;
}

.whitepaper-pillar:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-8px);
}

.whitepaper-pillar-number {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1;
  margin-bottom: 1rem;
}

.whitepaper-pillar-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.whitepaper-pillar-description {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

/* Use Cases Section */
.whitepaper-use-cases {
  background-color: #f0f0ff;
}

.whitepaper-use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.whitepaper-use-case-card {
  background: var(--bg-surface);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid var(--border-light);
}

.whitepaper-use-case-card:hover {
  background: white;
  border-color: var(--translate-accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-8px);
}

.whitepaper-use-case-icon {
  color: var(--translate-accent);
  margin-bottom: 1.5rem;
}

.whitepaper-use-case-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.whitepaper-use-case-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-medium);
}

/* CTA Section */
.whitepaper-cta {
  background: linear-gradient(135deg, var(--translate-primary) 0%, #1a3a7d 100%);
  padding: 6rem 0;
  text-align: center;
}

.whitepaper-cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.whitepaper-cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}

.whitepaper-cta-tagline {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  font-style: italic;
}

.whitepaper-cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive - White Paper */
@media (max-width: 768px) {
  .whitepaper-hero {
    padding: 5rem 0 4rem;
  }

  .whitepaper-section {
    padding: 3rem 0;
  }

  .whitepaper-features-grid,
  .whitepaper-economics-grid,
  .whitepaper-pillars-grid,
  .whitepaper-use-cases-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .whitepaper-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .whitepaper-cta-buttons .btn-large {
    width: 100%;
  }

  /* Comparison Table - Mobile: Reorganize as cards */
  .comparison-table {
    max-width: 100%;
  }

  .comparison-header {
    display: none; /* Hide desktop header */
  }

  .comparison-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .comparison-label {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--translate-primary);
    text-align: center;
    padding: 0 0 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
    display: block;
  }

  .comparison-cell {
    padding: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .comparison-cell:last-child {
    margin-bottom: 0;
  }

  /* Add labels for mobile */
  .comparison-cell.comparison-traditional::before {
    content: "Sistemas Tradicionales";
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--error);
    margin-bottom: 0.75rem;
    opacity: 0.8;
  }

  .comparison-cell.comparison-vivelacity::before {
    content: "ViveLaCity Translate";
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--translate-accent);
    margin-bottom: 0.75rem;
    opacity: 0.9;
  }

  .comparison-icon {
    font-size: 1.75rem;
  }

  .comparison-cell p {
    font-size: 0.9rem;
  }
}

/* ============================================
   MEJORAS PARA SECCIÓN "DOS APLICACIONES"
   ============================================ */

/* Apps Grid - Mejorar cards existentes */
.whitepaper-apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .whitepaper-apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* App Card - Mejor jerarquía visual */
.whitepaper-app-card {
  background: white;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.whitepaper-app-card:hover {
  border-color: var(--translate-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.whitepaper-app-header {
  margin-bottom: 1.5rem;
}

.whitepaper-app-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.whitepaper-app-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.whitepaper-app-subtitle {
  font-size: 1rem;
  color: var(--translate-primary);
  font-weight: 600;
  margin: 0;
}

.whitepaper-app-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
}

/* Features List - Mejoradas */
.whitepaper-app-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.whitepaper-app-features li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  border-bottom: 1px solid var(--border-light);
  line-height: 1.5;
}

.whitepaper-app-features li:last-child {
  border-bottom: none;
}

/* Ícono de checkmark antes de cada feature */
.whitepaper-app-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--translate-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
}

.whitepaper-app-features li strong {
  color: var(--translate-primary);
  font-weight: 600;
}

/* ============================================
   MEJORAS PARA SECCIÓN "MODELO DE ALIANZAS"
   ============================================ */

/* Partnership Cards - Convertir listas a grid */
.whitepaper-partnership-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .whitepaper-partnership-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.whitepaper-partnership-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
}

.whitepaper-partnership-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--translate-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--translate-accent);
}

/* Partnership List Items - Como mini-cards */
.whitepaper-partnership-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.whitepaper-partnership-list li {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--translate-accent);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  line-height: 1.5;
}

.whitepaper-partnership-list li:hover {
  border-left-color: var(--translate-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateX(4px);
}

.whitepaper-partnership-list li strong {
  color: var(--translate-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

/* Sectors Grid - Ya existe pero puede mejorarse */
.whitepaper-sectors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .whitepaper-sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .whitepaper-sectors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.whitepaper-sector-card {
  background: white;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding: 1.75rem;
  text-align: center;
  transition: all 0.3s ease;
}

.whitepaper-sector-card:hover {
  border-color: var(--translate-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.whitepaper-sector-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.whitepaper-sector-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--translate-primary);
  margin-bottom: 0.75rem;
}

.whitepaper-sector-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-medium);
  margin: 0;
}

/* ============================================
   SUBSECCIONES DESPLEGABLES (COLLAPSIBLE)
   ============================================ */

.whitepaper-collapsible {
  margin: 2rem 0;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.whitepaper-collapsible summary {
  cursor: pointer;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--translate-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  user-select: none;
}

.whitepaper-collapsible summary:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
}

/* Flecha indicadora */
.whitepaper-collapsible summary::after {
  content: "▼";
  font-size: 1rem;
  color: var(--translate-accent);
  transition: transform 0.3s ease;
}

.whitepaper-collapsible[open] summary::after {
  transform: rotate(180deg);
}

/* Ocultar el marker default del navegador */
.whitepaper-collapsible summary::-webkit-details-marker {
  display: none;
}

.whitepaper-collapsible-content {
  padding: 2rem;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Borde superior cuando está abierto */
.whitepaper-collapsible[open] summary {
  border-bottom: 2px solid var(--border-light);
}

/* ============================================
   MARCO GRÁFICO ESPECIAL PARA CTA ALIANZAS
   ============================================ */

.whitepaper-partnership-cta {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  border-radius: 16px;
  padding: 2.5rem;
  margin-top: 2rem;
  box-shadow: 0 10px 40px rgba(79, 70, 229, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

/* Efecto de brillo sutil en el fondo */
.whitepaper-partnership-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.whitepaper-partnership-cta-title {
  color: white;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.whitepaper-partnership-cta-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .whitepaper-partnership-cta {
    padding: 2rem;
  }
  
  .whitepaper-partnership-cta-title {
    font-size: 1.4rem;
  }
  
  .whitepaper-partnership-cta-text {
    font-size: 1rem;
  }
}

/* ============================================
   ÍCONOS SVG MONOCROMÁTICOS - APPS Y SECTORES
   ============================================ */

.whitepaper-app-icon svg,
.whitepaper-sector-icon svg {
  color: var(--translate-primary);
  transition: all 0.3s ease;
}

.whitepaper-app-card:hover .whitepaper-app-icon svg,
.whitepaper-sector-card:hover .whitepaper-sector-icon svg {
  color: var(--translate-accent);
  transform: scale(1.1);
}

/* ============================================
   FOOTER EN 4 COLUMNAS - REORGANIZADO
   ============================================ */

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  padding: 3rem 0 2rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-column-title {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-brand {
  grid-column: span 1;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0 1rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin: 0.25rem 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: span 1;
  }
}

/* ============================================================================
   LANGUAGE SELECTOR - Minimalista
   ============================================================================ */

.lang-selector {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-stack);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;

  /* Ocultar flechas nativas del select */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Flecha minimalista */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='white' fill-opacity='0.7' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
}

.lang-selector:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);

  /* Asegurar que no aparezcan flechas en hover */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.lang-selector:focus {
  outline: 2px solid rgba(255, 255, 255, 0.3);
  outline-offset: 1px;
  background: rgba(255, 255, 255, 0.08);

  /* Asegurar que no aparezcan flechas en focus */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.lang-selector option {
  background: var(--translate-primary);
  color: white;
  padding: 0.5rem;
  font-weight: 400;
}

/* ============================================
   SECCIÓN ODS - OBJETIVOS DE DESARROLLO SOSTENIBLE
   ============================================ */

.whitepaper-sdg {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.whitepaper-sdg .whitepaper-section-title {
  color: white;
}

.whitepaper-sdg-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.whitepaper-sdg-lead {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.whitepaper-sdg-lead strong {
  color: var(--translate-accent);
}

/* Grid de tarjetas ODS principales */
.whitepaper-sdg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.whitepaper-sdg-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.whitepaper-sdg-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.whitepaper-sdg-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.whitepaper-sdg-icon {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.whitepaper-sdg-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.whitepaper-sdg-number {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.whitepaper-sdg-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.whitepaper-sdg-body {
  padding: 0 1.5rem 1.5rem;
}

.whitepaper-sdg-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.whitepaper-sdg-description strong {
  color: white;
}

/* Colores oficiales ODS - borde inferior con color del ODS */
.whitepaper-sdg-card[data-sdg="8"] { border-top: 4px solid #A21942; }
.whitepaper-sdg-card[data-sdg="9"] { border-top: 4px solid #FD6925; }
.whitepaper-sdg-card[data-sdg="10"] { border-top: 4px solid #DD1367; }
.whitepaper-sdg-card[data-sdg="11"] { border-top: 4px solid #FD9D24; }

/* ODS secundarios - menciones */
.whitepaper-sdg-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.whitepaper-sdg-secondary-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem;
  text-align: center;
}

.whitepaper-sdg-mentions {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.whitepaper-sdg-mention {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.whitepaper-sdg-mention:hover {
  background: rgba(255, 255, 255, 0.1);
}

.whitepaper-sdg-mention-icon {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
}

.whitepaper-sdg-mention-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.whitepaper-sdg-mention-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 180px;
}

.whitepaper-sdg-mention-text strong {
  color: white;
  display: block;
  margin-bottom: 0.25rem;
}

/* Responsive ODS */
@media (max-width: 1024px) {
  .whitepaper-sdg-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .whitepaper-sdg-grid {
    grid-template-columns: 1fr;
  }

  .whitepaper-sdg-mentions {
    flex-direction: column;
    align-items: center;
  }

  .whitepaper-sdg-mention {
    width: 100%;
    max-width: 320px;
  }
}
