/* ====================================
   VARIABLES CSS PARA CONSISTENCIA
   ==================================== */
:root {
  /* Colores principales */
  --primary-yellow: #fdee22;
  --primary-red: #E53935;
  --secondary-yellow: #FFF59D;
  --white: #ffffff;
  --black: #000000;
  --gray-dark: #343a40;
  --gray-medium: #495057;
  --gray-light: #f8f9fa;
  
  /* Tipografía */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Espaciados */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Bordes */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  
  /* Sombras */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.2);
  
  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ====================================
   RESET Y BASE STYLES
   ==================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--primary-yellow);
  color: var(--black);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Mejora para pantallas de alta densidad */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: subpixel-antialiased;
  }
}

/* ====================================
   COMPONENTES - NAVEGACIÓN
   ==================================== */
.navbar {
  background-color: var(--primary-yellow);
  padding: var(--spacing-sm) 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1000;
}

.navbar-brand {
  transition: transform var(--transition-fast);
}

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

.navbar a {
  color: var(--black);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.navbar a:hover,
.navbar a:focus {
  /* color: var(--gray-medium); */
  outline: 2px solid transparent;
}

.navbar-nav .nav-link {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(229, 57, 53, 0.1);
}

/* ====================================
   COMPONENTES - BOTONES
   ==================================== */
.btn-rojo {
  background-color: var(--primary-red);
  color: var(--white);
  border: 2px solid var(--primary-red);
  border-radius: var(--border-radius-sm);
  font-weight: var(--font-weight-bold);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  display: inline-block;
  transition: all var(--transition-normal);
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-rojo::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 var(--transition-slow);
}

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

.btn-rojo:hover,
.btn-rojo:focus {
  background-color: #d32f2f;
  border-color: #d32f2f;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

/* ====================================
   SECCIONES - HERO
   ==================================== */
.hero {
  padding: clamp(3rem, 8vw, 6rem) var(--spacing-md);
  text-align: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
  color: var(--black);
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: var(--spacing-xl);
  color: var(--gray-dark);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ====================================
   SECCIONES - CARACTERÍSTICAS
   ==================================== */
.features {
  background-color: var(--white);
  color: var(--black);
  padding: clamp(3rem, 8vw, 6rem) var(--spacing-md);
}

.features h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-xl);
  color: var(--gray-dark);
}

.features .col-md-3 {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  transition: transform var(--transition-normal);
}

.features .col-md-3:hover {
  transform: translateY(-5px);
}

.material-symbols-outlined {
  font-size: clamp(3rem, 6vw, 4rem);
  color: var(--primary-red);
  display: block;
  margin-bottom: var(--spacing-sm);
  transition: transform var(--transition-normal);
}

.features .col-md-3:hover .material-symbols-outlined {
  transform: scale(1.1);
}

.features strong {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: var(--font-weight-bold);
  color: var(--gray-dark);
  display: block;
  margin-bottom: var(--spacing-sm);
}

.features p {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  line-height: 1.6;
  color: var(--gray-medium);
}

/* ====================================
   SECCIONES - TESTIMONIOS
   ==================================== */
.testimonios {
  background-color: var(--secondary-yellow);
  padding: clamp(3rem, 8vw, 6rem) var(--spacing-md);
  text-align: center;
}

.testimonios h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-xl);
  color: var(--gray-dark);
}

.testimonios p {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-xl);
  color: var(--primary-yellow);
}

.testimonios .card {
  background-color: var(--white);
  border: none;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
  height: 100%;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

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

.testimonios .card p:first-of-type {
  font-style: italic;
  margin-bottom: var(--spacing-md);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  color: var(--gray-medium);
}

.testimonios .card p:last-of-type {
  font-weight: var(--font-weight-bold);
  color: var(--primary-red);
  margin-bottom: 0;
}

/* ====================================
   SECCIONES - CTA FINAL
   ==================================== */
.cta-final {
  background: linear-gradient(135deg, var(--primary-red) 0%, #c62828 100%);
  color: var(--white);
  padding: clamp(3rem, 8vw, 5rem) var(--spacing-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.cta-final h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-xl);
  position: relative;
  z-index: 1;
}

.cta-final .btn {
  background-color: var(--white);
  color: var(--primary-red);
  font-weight: var(--font-weight-bold);
  border: none;
  border-radius: var(--border-radius-md);
  padding: 0.875rem 2rem;
  font-size: 1.1rem;
  transition: all var(--transition-normal);
  position: relative;
  z-index: 1;
}

.cta-final .btn:hover {
  background-color: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}


.nombreComentario {
  background-color: var(--gray-dark);
  border-radius: 5px;
  color: var(--white);
  text-align: center;
  padding: var(--spacing-xs) var(--spacing-md);

}

/* ====================================
   SECCIONES - FOOTER
   ==================================== */
footer {
  background-color: var(--black);
  color: var(--white);
  text-align: center;
  padding: var(--spacing-xs) var(--spacing-md);
}




footer p {
  margin-bottom: var(--spacing-xs);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
}

footer a {
  color: var(--white);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

footer a:hover,
footer a:focus {
  color: var(--primary-yellow);
}

/* ====================================
   COMPONENTES - LOGO
   ==================================== */
.logo-img {
  height: clamp(32px, 5vw, 48px);
  width: auto;
  transition: transform var(--transition-fast);
}

/* ====================================
   TÉRMINOS Y CONDICIONES
   ==================================== */
#terminos {
  background-color: var(--gray-light);
  color: var(--gray-dark);
  padding: var(--spacing-xl) var(--spacing-xxl);
  margin: 3%;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  line-height: 1.7;
}

#terminos h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-xl);
  color: var(--gray-dark);
  text-transform: uppercase;
  text-align: center;
}

#terminos h4 {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: var(--font-weight-semibold);
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  color: var(--gray-medium);
}

#terminos p,
#terminos ul li {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  margin-bottom: var(--spacing-xs);
  text-align: justify;
}

#terminos ul {
  padding-left: var(--spacing-md);
}

#terminos ul li {
  list-style-type: disc;
  margin-bottom: var(--spacing-xs);
}

#terminos strong {
  color: var(--gray-dark);
  font-weight: var(--font-weight-semibold);
}

/* ====================================
   MEDIA QUERIES - RESPONSIVE DESIGN
   ==================================== */

/* Móviles pequeños (hasta 576px) */
@media (max-width: 575.98px) {
  .hero {
    padding: var(--spacing-xl) var(--spacing-sm);
    text-align: center;
  }
  
  .hero .col-md-6 {
    text-align: center !important;
  }
  
  .features .col-md-3 {
    margin-bottom: var(--spacing-xl);
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .btn-rojo {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }
  
  #terminos {
    padding: var(--spacing-lg) var(--spacing-md);
    margin: var(--spacing-sm);
  }
}

/* Móviles (576px - 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .features .col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .testimonios .col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Tablets (768px - 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero {
    text-align: left;
  }
  
  .navbar-nav {
    margin-top: var(--spacing-sm);
  }
}

/* Desktop (992px y más) */
@media (min-width: 992px) {
  .hero .col-md-6:first-child {
    text-align: left;
  }
  
  .container {
    max-width: 1200px;
  }
}

/* Pantallas grandes (1400px y más) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero {
    padding: clamp(4rem, 10vw, 8rem) var(--spacing-md);
  }
}

/* ====================================
   MEJORAS DE ACCESIBILIDAD
   ==================================== */

/* Focus visible para navegación por teclado */
.btn-rojo:focus-visible,
.nav-link:focus-visible,
.navbar-brand:focus-visible {
  outline: 3px solid var(--primary-red);
  outline-offset: 2px;
}

/* Reducir animaciones para usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .btn-rojo::before {
    display: none;
  }
}

/* Modo oscuro (si el usuario lo prefiere) */
@media (prefers-color-scheme: dark) {
  /* Implementar si se desea soporte para modo oscuro */
}

/* ====================================
   OPTIMIZACIONES DE PERFORMANCE
   ==================================== */

/* Optimización para carga de imágenes */
img {
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

/* Optimización para animaciones */
.card,
.btn-rojo,
.material-symbols-outlined {
  will-change: transform;
}

/* ====================================
   UTILIDADES
   ==================================== */
.text-center-mobile {
  text-align: center;
}

@media (min-width: 768px) {
  .text-center-mobile {
    text-align: left;
  }
}

.img-download {
  max-width: 200px;
  height: auto;
  transition: transform var(--transition-normal);
}

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

/* Separador visual */
.section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
  margin: var(--spacing-xl) 0;
  border: none;
}