/* ESTILOS GENERALES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* SECCIÓN HERO CON IMAGEN DE FONDO */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    transition: background-image 3s ease-in-out;
}

/*Sombra de la imagen principal*/
.overlay {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding-left: 50px;
    color: white;
}

.overlay h1 {
    font-size: 4.5rem;
    margin-bottom: 10px;
    font-family: Arial, Helvetica, sans-serif;
}

.overlay h3 {
    font-size: 2.0rem;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 20px;
}

.overlay h2 {
    font-size: 1.4rem;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 30px;
    font-weight: normal;
    line-height: 35px;
}

.overlay p {
    font-size: 1.2rem;
    margin: 0;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

.btn-cotizacion {
    background-color: #165f9d;
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

.btn-cotizacion:hover {
    background-color: #032854
}

/* ------------------------------------------------------------------------------*/

/* INFORMACION DE EXTINTORES ABAJO DE HERO*/
/* Fondo de la seccion */
.info-extintores {
    text-align: center;
    padding: 80px 20px;
    background-color: #ffffff;
}

/* Letra de la seccion */
.info-extintores h2 {
    font-size: 2rem;
    color: #0e46be;
    margin-bottom: 10px;
}

.info-extintores h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
}

.info-extintores p {
    font-size: 1.2rem;
    color: #333;
    max-width: 800px;
    margin: 0 auto 10px;
}

.info-extintores p strong {
    font-size: 1.3rem;
    color: #0e3dbe;
}

/* ------------------------------  PRODUCTOS  -----------------------------------*/

.productos {
    text-align: center;
    background: #ffffffe0;
    padding: 80px 20px;
}

.productos h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #032854;
}

.contenedor-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.card {
    background: #bac2d4c9;
    box-shadow: 0px 4px 15px #032854;
    /* Sombra */
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    width: 200px;
    align-items: center;
    max-width: 300px;
}

.card:hover {
    box-shadow: 0px 4px 15px #114e85;
    transform: translateY(-10px);
    transition: all 0.1s ease-in-out;
}

.card img {
    height: 80px;
    margin-bottom: 10px;
}

.card h3 {
    color: #0b3c6e;
    font-size: 1.2rem;
}

.card p {
    font-size: 0.9rem;
    line-height: 18px;
    margin-bottom: 0px;
    margin-top: 10px;
}

.card a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-weight: bold;
}

.btn-ver-mas:hover {
    background: #032854;
}

.btn-ver-mas {
    display: inline-block;
    background-color: #165f9d;
    color: #fff;
    text-decoration: none;
    border: none;
    padding: 15px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 60px;
    font-size: 0.9rem;
}




/* ------------------------ SOCIOS ---------------------- */

.socios {
    background-color: rgb(18, 16, 110);
    text-align: center;
    padding: 40px;
}

.socios h2 {
    color: rgb(255, 255, 255);
    margin-bottom: 10px;
}

.slider-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.slider {
    display: inline-flex;
    animation: slide 20s linear infinite;
}

.slider img {
    height: 100px;
    margin: 0 60px;
}

@keyframes slide {
    from {
        transform: translateX(-200%);
    }

    to {
        transform: translateX(200%);
    }
}



/* ---------------- BOTON PARA EXTINTORES --------------- */

/* --------------- SECCIÓN "QUIÉNES SOMOS" ---------------*/
.quienes-somos {
    text-align: center;
    max-width: 900px;
    margin: 100px auto 40px;
    padding: 30px;
}

.quienes-somos h2 {
    font-size: 32px;
    color: #c00d0dfd;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.quienes-somos p {
    font-size: 23px;
    color: #000000;
    line-height: 1.7;
    text-align: justify;
}



/* Sección general */
.info-section {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 100px 10px;
    max-width: 1400px;
    margin: auto;
    flex-wrap: wrap;
}

/* Tarjetas individuales */
.info-card {
    flex: 1 1 300px;
    background: #dfdfdf;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Iconos */
.info-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 20px;
}

/* Títulos y texto */
.info-card h3 {
    font-size: 24px;
    color: #051e3b;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.info-card p {
    font-size: 17px;
    color: #000000;
    line-height: 1.6;
    text-align: justify;
}


/* ------------------ UBICACIÓN ------------------ */
.ubicacion {
    background-color: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

.ubicacion h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #0e46be;
}

.contenedor-ubicacion {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: auto;
    align-items: center;
}

.mapa {
    flex: 1 1 400px;
    min-width: 300px;
}

.info-direccion {
    flex: 1 1 300px;
    text-align: left;
}

.info-direccion h3 {
    font-size: 1.5rem;
    color: #1c44c7;
    margin-bottom: 10px;
}

.info-direccion p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #000;
}


/* CONOCE NUESTRO TALLER*/
.taller-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 4rem 20rem;
    background-color: #f4f4f4;
}


.taller-info {
    flex: 1 1 400px;
    max-width: 500px;
}

.taller-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #032854;
}

.taller-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    text-align: justify;
}

.taller-carrusel {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
}



/* Carrusel */

.carrusel-wrapper {
    position: relative;
    max-width: 300px;
    /* Más estrecho, ideal para formato vertical */
    aspect-ratio: 3 / 4;
    margin: auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background-color: #fff;
}

.carrusel-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: none;
    border-radius: 16px;
    background: #f9f9f9;
}

.carrusel-img.activo {
    display: block;
    animation: fadeIn 1s ease;
}

.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2;
    transition: background 0.3s;
}

.carrusel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carrusel-btn.prev {
    left: 10px;
}

.carrusel-btn.next {
    right: 10px;
}

@media (max-width: 768px) {
    .carrusel-wrapper {
        max-width: 90%;
        aspect-ratio: 2 / 3;
    }

    .carrusel-btn {
        font-size: 1.2rem;
        padding: 8px 10px;
    }
}

.ver-mas-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 1.0rem 1.5rem;
    background-color: #c62828;
    color: white;
    text-decoration: none;
    border-radius: px;
    font-weight: bold;
    transition: background-color 0.3s ease;

}

.ver-mas-btn:hover {
    background-color: #b71c1c;
}

/* SECTORES QUE PROTEGEMOS */

.galeria {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 100%;
    margin: 0 auto;
}

.imagen-cuadro {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.imagen-cuadro img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
    
}


.titulo {
    position: absolute;
    bottom: 5px;
    left: 5px;
    color: white;
    background: #032854;
    padding: 2px 6px;
    font-size: 18px;
    border-radius: 3px;
    font-weight: bold;
}

.descripcion {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #032854;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    padding: 10px;
    text-align: center;
    font-size: 15px;
    transition: opacity 0.3s ease;

}

.imagen-cuadro:hover img {
    opacity: 0.3;
     height: auto;
}

.imagen-cuadro:hover .descripcion {
    opacity: 1;
}

.sectores h2 {
    color: #032854;
    text-align: center;
    font-size: 40px;
    padding: 40px;
}

@media (max-width: 768px) {
  .galeria {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .galeria {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .taller-section {
    padding: 2rem 1rem;
  }
}
