/* ==========================================================================
   Armonía Auditiva Perú - Estilos Principales
   Plataforma de Educación y Bienestar Acústico
   Cumplimiento estricto con normativas publicitarias y de privacidad de Perú
   ========================================================================== */

:root {
  --primary: #0f4c5c;
  --primary-hover: #0b3742;
  --primary-light: #e6f4f6;
  --secondary: #0d9488;
  --secondary-hover: #0f766e;
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --gray-900: #0f172a;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --white: #ffffff;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: all 0.25s ease-in-out;
}

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

html {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--gray-50);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

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

/* --- CONTENEDORES Y GRID --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow {
  max-width: 860px;
}

.grid {
  display: grid;
  gap: 2rem;
}

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

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

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

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

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

/* --- BARRA SUPERIOR DE INFORMACIÓN PERÚ --- */
.top-notice-bar {
  background: var(--dark);
  color: var(--gray-200);
  font-size: 0.8125rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-notice-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-notice-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.top-notice-item svg {
  width: 14px;
  height: 14px;
  fill: var(--accent);
}

/* --- HEADER & NAVEGACIÓN --- */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  position: relative;
  gap: 1rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  min-height: 44px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.brand-icon svg {
  width: 22px;
  height: 22px;
}

/* Envoltorio de navegación de escritorio */
.nav-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.9rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  position: relative;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 700;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.35rem;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  box-shadow: 0 3px 6px rgba(15, 76, 92, 0.25);
  min-height: 42px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--primary-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(15, 76, 92, 0.3);
}

/* Botón de Menú Móvil táctil y claro */
.mobile-menu-btn {
  display: none;
  background: #f8fafc;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  color: var(--gray-800);
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: var(--transition);
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  outline: none;
}

@media (max-width: 1080px) {
  .mobile-menu-btn {
    display: inline-flex;
  }
  
  .nav-menu-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    display: none;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid var(--gray-200);
    z-index: 999;
  }
  
  .nav-menu-wrapper.open {
    display: flex;
    animation: slideDownMenu 0.25s ease-out forwards;
  }

  @keyframes slideDownMenu {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.35rem;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
  }

  .nav-cta {
    width: 100%;
    padding: 0.85rem;
    font-size: 1rem;
    text-align: center;
  }
}

/* --- BOTONES Y COMPONENTES REUTILIZABLES --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--secondary-hover);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
}

.btn-white:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.badge-secondary {
  background: #ccfbf1;
  color: #115e59;
}

.badge-accent {
  background: var(--accent-light);
  color: #92400e;
}

/* --- SECCIONES Y TIPOGRAFÍA --- */
section {
  padding: 4.5rem 0;
}

.section-hero {
  background: linear-gradient(135deg, #f0fdfa 0%, #e6f4f6 100%);
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-muted {
  background: var(--gray-100);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.25;
  margin: 0.75rem 0 1rem;
}

.section-dark .section-title {
  color: var(--white);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.section-dark .section-subtitle {
  color: var(--gray-400);
}

/* --- HERO COMPONENT --- */
.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
}

.hero-text h1 {
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  margin: 1rem 0 1.25rem;
  letter-spacing: -0.03em;
}

.hero-text h1 span {
  color: var(--secondary);
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.stat-item h4 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-item p {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.hero-card-preview {
  background: #0f172a;
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 25px 45px -10px rgba(15, 23, 42, 0.45);
  border: 1px solid #1e293b;
  position: relative;
}

.hero-card-preview::before {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  filter: blur(40px);
  opacity: 0.25;
  z-index: -1;
}

@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-text h1 {
    font-size: 2.25rem;
  }
}

/* --- TARJETAS INFORMATIVAS (CARDS) --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--secondary);
}

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

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.card-desc {
  font-size: 0.975rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-link {
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* --- DESCARGOS DE RESPONSABILIDAD (GOOGLE ADS COMPLIANCE) --- */
.compliance-disclaimer-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 2rem 0;
}

.compliance-disclaimer-box strong {
  color: var(--gray-800);
}

/* --- SIMULADOR DE AMBIENTES SONOROS (WEB AUDIO) --- */
.audio-player-box {
  background: #0f172a;
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 25px 45px -10px rgba(15, 23, 42, 0.45);
  border: 1px solid #1e293b;
}

.sound-visualizer-screen {
  background: #070d19;
  border: 1.5px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.7);
  transition: var(--transition);
}

.sound-visualizer-screen:hover {
  border-color: #0d9488;
}

.sound-screen-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.725rem;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.status-badge.idle {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.status-badge.active {
  background: rgba(45, 212, 191, 0.2);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.5);
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.25);
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2dd4bf;
  display: inline-block;
  animation: pulseDot 1.2s infinite ease-in-out;
}

.status-idle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  display: inline-block;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.3); }
}

.sound-waves-canvas {
  width: 100%;
  height: 95px;
  background: transparent;
  display: block;
}

.audio-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.audio-buttons-group {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.sound-toggle-btn {
  background: #1e293b;
  color: #f8fafc;
  border: 1.5px solid #334155;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}

.sound-toggle-btn:hover {
  background: #0d9488;
  color: #ffffff;
  border-color: #2dd4bf;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}

.sound-toggle-btn.active {
  background: #0d9488;
  color: #ffffff;
  border-color: #2dd4bf;
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.45);
}

.sound-stop-btn {
  background: #334155;
  color: #cbd5e1;
  border: 1.5px solid #475569;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  user-select: none;
}

.sound-stop-btn:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.volume-slider-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #cbd5e1;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.volume-slider {
  -webkit-appearance: none;
  width: 100px;
  height: 6px;
  background: #334155;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2dd4bf;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(45, 212, 191, 0.6);
  transition: transform 0.15s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.volume-percent-badge {
  font-weight: 700;
  font-size: 0.8rem;
  color: #2dd4bf;
  min-width: 32px;
}

/* --- TEST / EVALUACIÓN INTERACTIVA --- */
.quiz-card-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.quiz-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  width: 20%;
  transition: width 0.3s ease;
}

.quiz-option-label {
  display: block;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.quiz-option-label:hover {
  background: var(--primary-light);
  border-color: var(--secondary);
}

.quiz-option-label input {
  margin-right: 0.75rem;
  accent-color: var(--primary);
}

.quiz-results-box {
  display: none;
  text-align: center;
  padding: 1.5rem 0;
}

.score-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--secondary);
}

.score-circle .number {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.score-circle .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
}

/* --- FORMULARIOS --- */
.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--gray-800);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--gray-900);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

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

.form-help {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: 0.35rem;
}

/* --- ACORDEÓN DE PREGUNTAS FRECUENTES (FAQ) --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-900);
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.25s ease;
  color: var(--secondary);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.5rem;
  color: var(--gray-600);
  font-size: 0.975rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.35rem;
  max-height: 400px;
}

/* --- PERÚ / INDECOPI LIBRO DE RECLAMACIONES --- */
.reclamaciones-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 2px solid var(--primary-light);
  box-shadow: var(--shadow-lg);
}

.reclamaciones-header {
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.indecopi-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: #e2e8f0;
  color: #334155;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
}

/* --- FOOTER --- */
.site-footer {
  background: var(--dark);
  color: var(--gray-400);
  padding: 4.5rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

.footer-brand h3 {
  font-size: 1.4rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.footer-brand p {
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-heading {
  font-size: 1.05rem;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--gray-400);
  font-size: 0.925rem;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-legal-box {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--gray-400);
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal-box strong {
  color: var(--gray-200);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

/* --- BANNER DE COOKIES Y PRIVACIDAD --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: var(--white);
  padding: 1.25rem 0;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--gray-300);
  max-width: 800px;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
}


