/* OPTIMIZACIÓN 1: Fuentes auto-alojadas (Self-Hosted)
  Asegúrate de que la ruta '/fonts/' sea correcta.
  font-display: swap; es clave para un FCP rápido.
*/
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400; /* regular */
  src: url('/fonts/roboto-v49-latin-regular.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700; /* bold */
  src: url('/fonts/roboto-v49-latin-700.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 900; /* black */
  src: url('/fonts/roboto-v49-latin-900.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 400; /* regular */
  src: url('/fonts/roboto-v49-latin-italic.woff2') format('woff2');
  font-display: swap;
}

/* OPTIMIZACIÓN 2: CSS No Crítico
  Todo el CSS para el 'hero' y 'nav' fue movido
  al <style> en el index.html.
  Este archivo SOLO contiene estilos para el contenido
  "below-the-fold" (lo que no se ve al cargar).
*/

/* --- Variables Globales (Root) --- */
:root {
  --color-primary: #f37f21;
  --color-secondary: #2cb4c1;
  --color-background: #0D0D0D;
  --color-background-light: #1a1a1a;
  --color-text: #FFFFFF;
  --color-text-muted: #AAAAAA;
  --font-family: 'Roboto', sans-serif;
  --navbar-height: 70px;
  --transition-speed: 0.3s ease;
}

/* --- Estilos Generales No Críticos --- */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 30px;
  text-underline-offset: 8px;
  text-decoration-color: var(--color-primary);
  text-decoration: underline;
  text-transform: uppercase;
  color: var(--color-primary)
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  text-align: center;
}

/* --- Botón Flotante WhatsApp --- */
.whatsapp-float {
  position: fixed;
  width: 90px;
  height: 90px;
  bottom: 20px;
  right: 20px;
  background-color: #00ff5e;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, .3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-speed)
}

.whatsapp-icon {
  width: 100px;
  height: 100px
}

.whatsapp-float:hover {
  transform: scale(1.1);
  animation-play-state: paused
}

/* --- Servicios --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px
}

.service-card {
  border-radius: 8px;
  transition: var(--transition-speed);
  background-color: var(--color-background-light);
  padding: 30px;
  border-bottom: 4px solid var(--color-primary)
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .2)
}

.service-icon {
  width: 400px;
  height: 400px;
  margin-bottom: 20px;
  background-color: var(--color-primary)
}

.service-card h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--color-text)
}

.service-card p {
  font-size: 1.3rem;
  color: var(--color-text-muted)
}

/* --- Galería --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px
}

.gallery-image {
  border-radius: 8px;
  transition: var(--transition-speed);
  width: 100%;
  height: 250px;
  object-fit: cover
}

.gallery-image:hover {
  transform: scale(1.03);
  opacity: .8
}

/* --- Cobertura (y Medios de Pago) --- */
.coverage-list {
  display: flex;
  flex-direction: column; /* Apila los items verticalmente */
  align-items: center; /* Centra los items */
  justify-content: center;
  gap: 15px
}

.coverage-list li {
  background-color: var(--color-background-light); /* ESTE ES EL FONDO DE CADA ITEM */
  padding: 10px 20px;
  border-radius: 5px;
  border-left: 3px solid var(--color-primary); /* El borde naranja */
  color: var(--color-text-muted);
  width: 100%; /* Ocupa el 100% de la columna */
  max-width: 450px; /* Pero no más de 450px */
  text-align: center;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 30px 20px;
  background-color: #000;
  font-size: .9rem;
  border-top: 1px solid #333;
  color: var(--color-text-muted)
}

/* --- Animaciones No Críticas --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease-out, transform .8s ease-out
}
.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* .is-visible ya está en el CSS crítico para el fade-in inicial */


/* --- Estilos para columnas horizontales --- */
.horizontal-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.column-content {
  flex-basis: 48%;
}


/* --- Media Queries No Críticas --- */

@media (max-width: 768px) {
  .container {
    padding: 40px 15px
  }
  
  .section-title {
    font-size: 2rem
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr)
  }
    
  
  /* --- Apilar columnas en mobile --- */
  .horizontal-wrapper {
    flex-direction: column; /* Apila las columnas verticalmente */
    gap: 0;
  }

  .column-content {
    flex-basis: 100%; /* Cada columna ocupa el 100% del ancho */
    margin-bottom: 40px; /* Espacio entre las secciones apiladas */
  }

  .column-content:last-child {
    margin-bottom: 0;
  }
  
  #medios-pago {
    display: flex;
    flex-direction: column;
    align-items: center; /* centra horizontalmente */
    text-align: center;
  }

  #medios-pago .coverage-list {
    align-items: center; /* asegura que los ítems se centren */
  }

  #medios-pago .coverage-list li {
    margin: 0 auto; /* por si algún ancho afecta el centrado */
  }
  
  .whatsapp-float {
    width: 65px;
    height: 65px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
    transition: background-color .3s
  }
  
  .whatsapp-float:hover {
    background-color: darken(var(--color-primary), 5%)
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr
  }
}

@media (max-width: 420px) {
  .section-title {
    font-size: 1.8rem
  }
  
  .service-card p {
    font-size: 1.1rem
  }
}