/* Estilos generales (sin cambios) */
html {
    scroll-behavior: smooth; /* Desplazamiento suave */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px; /* Máximo ancho para PC */
    margin: 0 auto; /* Centra el contenedor */
    padding: 0 20px; /* Padding para no pegar el contenido a los bordes */
}
.container .clientes, h2{
    text-align: center;
}
#hero .container h2{
    color: #2f99c6;
}
#hero .container p{
    color: #433f3f;
}
.carousel {
    width: 100%;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
    position: relative;
    height: 420px;
  }
  
  .carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(218, 215, 215, 0.81);
    height: 90%;
    width: 85%;
    margin: 0 auto;
    /* Nuevas propiedades para centrado vertical y horizontal */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrado horizontal */
    justify-content: center; /* Centrado vertical */
    text-align: center; /* Para alineación de texto interno */
}
  
.overlay-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 60px !important;
    font-weight: 700;
    color: rgb(15, 16, 57);
    width: 100%;
    margin: 0; /* Elimina márgenes predeterminados */
    padding: 0 20px; /* Evita que el texto toque los bordes */
}

.overlay-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 40px !important;
    font-weight: 700;
    color: rgb(0, 0, 0);
    width: 100%;
    margin: 0; /* Elimina márgenes predeterminados */
    padding: 0 20px; /* Evita que el texto toque los bordes */
}
  #carousel-images {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
  }
  
  #carousel-images img {
    width: 100%;
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
  }
  
  .carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
  }
  
  .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .indicator.active {
    background-color: rgba(185, 18, 18, 0.9);
  }
body {
    padding-top: 70px; /* Ajustado para header más alto */
}

/* Ocultar menú toggle en desktop */
.menu-toggle {
    display: none;
}
/* Sección principal (sin cambios) */
main {
    padding: 40px 0;
}

/* Estilos de la sección Detalle de Servicio (sin cambios) */
#detalle-servicio {
    background-color: #f0f0f0;
    padding: 40px 0;
}

#detalle-servicio h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
}

.detalle-contenido {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.detalle-imagen img {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.detalle-descripcion {
    flex: 1;
    max-width: 600px;
    text-align: justify; /* Texto justificado */
}

.detalle-descripcion h3 {
    font-size: 2em;
    margin-bottom: 20px;
}

.detalle-descripcion p {
    font-size: 1.2em;
    line-height: 1.6;
}


/* Estilos de los botones (sin cambios) */
.btn {
    background-color: #007bff;
    color: #fff;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Estilos del pie de página (sin cambios) */
.footer {
    background-color: #1a2a3a;
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}
.footer strong{
    font-size:18px;
}
.footer-section.left {
    text-align: left;
    margin-left: 5%;

}

.footer-section.center {
    text-align: left;
}

.footer-section.right {
    text-align: left;
    margin-right: 5%;
}

.footer-section a {
    color: rgb(0, 166, 255);
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

/* Estilos para las tarjetas de servicio en la página de inicio (sin cambios) */
#servicios {
    text-align: center;

}
#servicios h2 {
    font-size: 2.5em;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.card-container-h2 {
    text-align: center;
    font-size: 35px;
}

.card {
    border: 1px solid #ccc;
    padding: 30px;
    width: 300px;
    margin: 20px;
    position: relative;
    overflow: hidden;
    background-color: #041c36;
    color: #ffffff;
}

.card img {
    max-width: 100%;
    height: 140px;
    margin: 0;
    width: 100%;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.1);
}

.card p {
    color: #ffffff;
    text-align: justify;
}

.card h3 {
    margin-top: 20px;
    font-size: 1.5em;
    color: #ffffff;
    transition: color 0.3s ease;
    text-align: center;
}

.card:hover h3 {
    color: #007bff;
}

/* Estilos para la sección Quiénes Somos (sin cambios) */
#quienes-somos {
    background-color: #f0f0f0;
    padding: 20px 0;
}

#quienes-somos h2 { /* TAMBIEN ESTA ASÍ EN EL RESPONSIVE */
    font-size: 2em;
    margin-bottom: 10px;
    text-align: center;
    margin-top: 25;
}

.quienes-somos-contenido {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 30px;
    background-color: #f0f0f0;
    padding: 20px;
}

.quienes-somos-texto {
    flex: 1;
    max-width: 85%;
    text-align: justify; /* Texto justificado */
}

.quienes-somos-texto h2 {
    font-size: 20px;
    margin-bottom: 0;
    margin-top: 0;
}

.quienes-somos-texto h3 {
    font-size: 1.5em;
    margin-bottom: 0;
    color: #3b6da2;
}

.quienes-somos-texto p {
    font-size: 1.1em;
    color: #000000;
}

.quienes-somos-imagen {
    flex: 1;
    max-width: 15%;
    display: flex;
    align-items: stretch;
}

.quienes-somos-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Estilos de la sección Hero (sin cambios) */
#hero {
    background-color: #f0f0f0;
    text-align: center;
    padding-bottom: 20px;
}

#hero h1 {
    font-size: 35px;
    margin-bottom: 10px;
}

#hero h2 {
    font-size: 30px;
    margin-top: 0;
    margin: 0;
}

#hero p {
    padding-top: 0;
    font-size: 18px;
}

#hero .btn {
    background-color: #007bff;
    color: #fff;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#hero .btn:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}
.iconoss{
    display: flex;
    justify-content: center;
    gap: 30px
}
.iconoss .iconos img{
width: 60px;
height: 60px;
}

/* Media Queries para dispositivos móviles */
@media (max-width: 768px) {
    /* Ajuste para centrar todo el contenido sin modificar nada más */
    .container {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
.card-container-h2{
font-size: 30px;
}
    /* Mantener texto justificado pero contenido centrado */
    .quienes-somos-texto {
        text-align: justify;
        width: 100%;
        max-width: 100%;
        margin-top: 0;
    }
    .detalle-descripcion {
        text-align: justify;
        width: 90%;
        max-width: 100%;
        margin-top: 0;
    }
    .card{
        text-align: justify;
        width: 70%;
    }
    .card h3{
        text-align: center;
    }
    .container h1, h2{
        text-align: center;
    }
/* Ajustar orden de imagen antes del texto en detalle-servicio */
.detalle-contenido {
    flex-direction: column;
    margin-bottom: 0;
}

.detalle-imagen {
    order: -1; /* Mueve la imagen antes del texto */
}

/* Ajustar orden de imagen antes del texto en quienes-somos */
.quienes-somos-contenido {
    flex-direction: column;
}

.quienes-somos-imagen {
    order: 1; /* Imagen después del texto (valor por defecto) */
    margin-top: 20px; /* Espacio arriba de la imagen */
    max-width: 100%;
}
    /* Centrar el formulario */
    #formulario form {
        width: 100%;
        max-width: 500px;
    }
    .mapa-container{
        width: 100%;
    }
    .footer{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-section.left, .footer-section.center, .footer-section.right{
text-align: center;
padding: 10px;
    }
    .carousel {
        height: 220px;
      }
      
      .indicator {
        width: 12px;
        height: 12px;
        margin-bottom: 2%;
      }
      .carousel-overlay {
        width: 90%;
        height: 82%;
        margin-bottom: 3%;
        padding-bottom: 2%;
      }
    
    .overlay-title {
        font-size: clamp(24px, 6vw, 32px) !important;
    }
    
    .overlay-subtitle {
        font-size: clamp(16px, 4vw, 24px) !important;
    }
}