/* --- Ajustes Generales --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body1 {
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f5f5; /* color de fondo de ejemplo */
  }
  
  body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.5;
    background-color: #fafafa;
  }
  

/* --- Encabezado / Contenedor del Logo --- */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
/* Encabezado */
header1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}


/* Agrupa logo + sub-logo en una columna centrada */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem; 
  }
  
  .logo-container1 {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

/* --- Logo Principal “SERVISUR” --- */
.logo {
    position: relative; /* para que el pseudo-elemento se posicione relativamente */
    display: inline-block;
  }
  
  .logo1 {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Ajusta el tamaño del logo */
.logo img {
  max-height: 170px; /* Ajusta según desees */
  width: auto;
  object-fit: contain;
}

/* MEDIA QUERY para dispositivos móviles */
@media (max-width: 768px) {


}
  /* Techo rojo */
  .logo .techoxx {
    position: absolute;
    width: 80%;
    height: 4px;
    background-color: red;
    top: -10px;
    left: 10%;
    transform: skewY(-15deg); /* Simula un "techo" inclinado */
  }
  

  .logo h1 {
    position: relative;  /* necesario para el ::before */
    display: inline-block;
    margin: 0;
    font-size: 2rem;     /* Tamaño de la palabra */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000;
    /* Ajusta el espacio vertical para que quepa el techo */
    padding-top: 15px; 
  }

  /* “Techo” rojo encima del texto (V invertida) */
.logox h1::before {
    content: '';
    position: absolute;
    top: 0;      /* Ajustar para controlar la altura */
    left: 0;
    width: 100%; /* Que abarque el ancho exacto de la palabra */
    height: 4px; /* Grosor de la barra */
    background-color: red;
    transform: skewY(-15deg); 
  }
  
/* --- Sub-logo (línea + texto debajo) --- */
.sub-logo1 {
    text-align: center;
    margin-top: 0.5rem;
    /* Puedes poner un max-width para no exceder el ancho de SERVISUR */
    max-width: 400px;
  }
  
  .sub-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0.5rem;
  }
   
  .sub-logo hr1 {
    border: none;
    border-top: 2px solid #000; 
  }
  
  .sub-logo hr {
    width: 100%;
    max-width: 400px;
    border: none;
    border-top: 2px solid #000;
  }
  
  .sub-logo span1 {
    display: block;
    margin-top: 0.3rem;
    font-weight: 600;
    font-size: 1rem; /* Ajusta este valor para hacerlo más pequeño que “SERVISUR” */
    text-transform: uppercase;
    color: #000;
  }
  
  .sub-logo span {
    margin-top: 0.3rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
  }
  
  
/* === Estilo General de Navegación === */
.main-nav {
    width: 100%;
    background-color: #f2f2f2;
    padding: 0.75rem 1.5rem; /* Espaciado interno (aire) */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem; /* Aire debajo del menú */
  }
  
/* === Estilo de Links del Menú === */
.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem; /* Espaciado entre enlaces */
    padding: 0;
    margin: 0;
  }

  .main-nav ul li a {
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
  }

  .main-nav ul li a:hover {
    background-color: #ddd;
    color: red;
  }
  
  .main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
  }
  
  .main-nav a:hover {
    color: red;
  }
  
  /* Hero Section */
  .hero {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
  }
  
  .hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .hero-text {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    
    /* El color de texto se mantiene en blanco, o ajusta según prefieras */
    color: #fff;
  
    /* Ancho máximo para que no se desborde en pantallas pequeñas */
    max-width: 40%;
  
    /* Fondo semitransparente (negro al 60% de opacidad) */
    background-color: rgba(0, 0, 0, 0.6);
  
    /* Espaciado interno */
    padding: 1rem;
  
    /* Borde redondeado (opcional) */
    border-radius: 0.5rem;
  }
  
  .hero-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
  }
  
  .btn-hero {
    background-color: red;
    color: #fff;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: background-color 0.3s;
  }
  
  .btn-hero:hover {
    background-color: #c70505;
  }
  
  /* Secciones */
  .section-container {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    text-align: center;
  }
  
  .section-container h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: #333;
  }
  
  .section-container p {
    margin-bottom: 1rem;
  }
  
  /* Servicios */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .service-card {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1rem;
    text-align: left;
  }
  
  .service-card img {
    width: 100%;
    border-radius: 4px;
  }
  
  .service-card h3 {
    margin: 0.5rem 0;
    color: #000;
    text-transform: uppercase;
  }
  
  .service-card ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-top: 0.5rem;
  }
  
  .service-card ul li {
    margin-bottom: 0.5rem;
  }
  
  .service-card p {
    margin-top: 0.5rem;
  }
  
  /* Contacto */
  .contact-info {
    list-style: none;
    margin-top: 1rem;
    text-align: left;
    display: inline-block;
  }
  
  .contact-info li {
    margin-bottom: 0.5rem;
  }
  
  .contact-info a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
  }
  
  .contact-info a:hover {
    text-decoration: underline;
  }
  
  /* Footer */
  footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
  }
  
  /* Responsivo */
  @media (max-width: 768px) {
    .hero-text {
      max-width: 80%;
      top: 40%;
    }
    .hero-text h2 {
      font-size: 1.5rem;
    }
    .services-grid {
      grid-template-columns: 1fr;
    }
    .main-nav {
        padding: 1rem; /* Más aire en celulares */
        text-align: center;
      }
    
      .main-nav ul {
        flex-direction: column; /* Menú vertical */
        align-items: center;
        gap: 0.75rem;
      }
    
      .main-nav ul li a {
        font-size: 1.1rem; /* Letras más grandes en celular */
        padding: 0.75rem 1rem;
      }
    }


  

  @media (max-width: 600px) {
    .logo h1 {
      font-size: 1.5rem; /* reduce el tamaño de la palabra en dispositivos pequeños */
      padding-top: 10px; 
    }
    .sub-logo span {
      font-size: 0.8rem;
    }
  }

  /* === Zona de Cobertura === */
#zona-cobertura {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
  }
  
  .coverage-list {
    list-style-type: none;
    padding: 0;
    margin-bottom: 1.5rem;
  }
  
  .coverage-list li {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0.5rem;
  }
  
  /* Estilo del Mapa */
  #map {
    height: 450px;
    width: 100%;
    border-radius: 8px;
    border: 2px solid #ccc;
    margin-bottom: 1rem;
  }

  /* === Galería Horizontal === */
#galeria {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #f2f2f2;
    border-radius: 8px;
    margin-bottom: 2rem;
  }
  
  /* Scroll horizontal */
  .gallery-scroll {
    display: flex;
    overflow-x: auto;         /* Desplazamiento horizontal */
    gap: 1rem;                /* Espacio entre imágenes */
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;     /* Scroll más delgado (Firefox) */
    scrollbar-color: #ccc transparent;
  }
  
  /* Diseño de cada imagen */
  .gallery-item {
    flex: 0 0 200px;          /* Todas del mismo tamaño */
    height: 150px;
    scroll-snap-align: start;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
  }
  
  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* Ajusta todas al mismo tamaño */
    transition: transform 0.3s;
  }
  
  /* Efecto hover */
  .gallery-item:hover {
    transform: scale(1.05);
    cursor: pointer;
  }
  
  /* Scroll personalizado en Chrome/Edge */
  .gallery-scroll::-webkit-scrollbar {
    height: 6px;
  }
  
  .gallery-scroll::-webkit-scrollbar-track {
    background: #f0f0f0;
  }
  
  .gallery-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
  }
  
  .gallery-scroll::-webkit-scrollbar-thumb:hover {
    background: #aaa;
  }
  
  /* Responsivo */
  @media (max-width: 768px) {
    .gallery-item {
      flex: 0 0 150px;  /* Tamaño más pequeño en móviles */
      height: 120px;
    }
  }