html {
    scroll-behavior: smooth;
    height: 100%;
}
:root {
    --primary: #042C5C;
    --secondary: #0F4C81;
    --light: #F9F9F9;
}
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    height: 100%;
}
p {
    margin: 0;
    padding: 0;
}
a {
    text-decoration: none;
    margin: 0;
    padding: 0;
}
/* HEADER */
header {
    position: relative;
    background-image: url('../img/lonas-soldar.jpg');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
    z-index: 1;
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(170, 0, 31, .8); /* rojo con 80% opacidad */
    z-index: 0;
}

header .container {
    position: relative;
    z-index: 1; /* encima del overlay */
}
.redes-header a {
    transition: all .5s;
}
.redes-header a:hover {
    border-color: #ffc107!important;
    color: #ffc107!important;
}


/* SIDEBAR */

.menu-toggle {
    font-size: 28px;
    background: none;
    border: none;
    color: var(--primary);
}

.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 260px;
    height: 100%;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    padding: 30px 20px;
    transition: left 0.3s ease;
    z-index: 1050;
}

.sidebar.open {
    left: 0;
}

.sidebar .close-btn {
    font-size: 28px;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.sidebar a,
.sidebar span {
    display: block;
    padding: 12px 0;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.sidebar i {
    color: var(--primary);
}

.sidebar a:hover {
    color: var(--secondary);
}

/* 
    quienes somos
*/
.quienes-somos {
    background: #f9f9f9;
}
.why-us {
    background: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: -62px;
    z-index: 123;
    position: relative;
    border-radius: 10px;
}


/* PRDUCTOS */
.productos {
    background: #f9f9f9;
    padding-bottom: 50px;
}
.paypal-button {
    background-color: #ffc439;
    color: #111;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.paypal-button:hover {
    background-color: #f7b500;
}

.paypal-logo {
    height: 20px;
}


/* banners */
.banners {
    background-image: url('../img/Lona-Igniifuga-02.webp'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    position: relative;
    z-index: -200;
}
.banners:before {
    content: "";
    width: 100%;
    height: 100%;
    background-color: rgba(170, 0, 31, 1);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -100;
}
.normativas {
    position: relative;
}
.normativas:after {
    content: "";
    width: 100px;
    position: absolute;
    border: solid 2px red;
    bottom: -5px;
    margin-left: -140px;
}
.normativas-link {
    margin-top: 50px;
}
.normativas-link a {
    margin-top: 5px;
    font-weight: bold;
}
.normativas-link a:hover {
    color: orangered!important;
}

/* banners info */
#banner-info {
    background-color: rgba(170, 0, 31, 1);
    text-align:center;
    padding: 80px 0;
    h4 {
        text-transform: uppercase;
        display: flex;
        flex-direction: column;
        margin:0;
        color: white;
        &::after {
            content: '';
            width: 100px;
            border: solid 1px #f7b500;
            margin: 0 auto;
            margin-top: 15px;
        }
    }
}
/* img normativas */
 .marcas-scroll {
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        padding: 1rem 0;
        scroll-snap-type: x mandatory;
    }

    .marca-item {
        flex: 0 0 auto;
        text-align: center;
        min-width: 25%;
        scroll-snap-align: start;
    }

    .marca-item img {
        width: 100%;
        height: 100px; /* Altura fija */
        object-fit: contain; /* Mantiene proporciones sin deformar */
    }

    .marca-item a {
        display: block;
        margin-top: 0.5rem;
        font-size: 16px;
        color: #ffc439;
        font-weight: bold;
        text-decoration: none;
    }
    .marca-item a:hover {
        color: orangered;
    }

    .marcas-scroll::-webkit-scrollbar {
        display: none;
    }
    .marcas-scroll {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }


/* BENEFICIOS */
#beneficios {
    background: #f7f7f7;
    padding: 40px;
}
.beneficio {
    padding: 30px 15px;
    height: 100%;
    cursor: pointer;
    border: dashed 1px lightgray;
}
.beneficio:hover img {
    filter: invert(35%) sepia(100%) saturate(5000%) hue-rotate(340deg);
}
.beneficio:hover {
    color: rgba(170, 0, 31, 1);
    border: dashed 1px rgba(170, 0, 31, 1);
}

/* contacto */
#contact {
    position: relative;
    background-color: rgba(170, 0, 31, 1);
    color: white;
}
#contact:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background: url("../img/PVC_Tarpaulin_factory_roll4.jpg") no-repeat center center;
    background-size: cover;
    border: solid green 2px;
    width: 100%;
    height: 100%;
    opacity: .1;
}
#contact .form-side {
    z-index: 1000;
}


/* mapa */
.sucursales {
    position: relative;
}

.sucursales::after {
    content: "";
    width: 100px;
    height: 0; /* si solo es un borde, no necesitas altura */
    border: solid 2px red;
    position: absolute;
    bottom: -5px;
    left: 50%;               /* mueve el inicio al 50% del contenedor */
    transform: translateX(-50%); /* lo centra restando la mitad de su ancho */
}
/* Estilo base tipo Bootstrap */
.btn-mapa {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  margin: 5px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  background-color: #6c757d; /* secondary */
  color: white;
  transition: all 0.3s ease;
}

/* Activo con color amarillo */
.btn-mapa.activo {
  background-color: #ffc439;
  color: #000;
}


/* redes fixed */
.social-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-icon.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-icon.whatsapp {
    background-color: #25d366;
}

.social-icon:hover {
    opacity: 0.8;
}

.scroll-top {
    width: 45px;
    height: 45px;
    background-color: rgba(200, 54, 33, .85);
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 18px;
    text-decoration: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}
.scroll-top:hover {
    color: #f7b500;
}

/* login */
.login-image {
    background: url('../img/login.png') no-repeat center center;
    background-size: cover;
    height: 300px;
}


/* table */
table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 1rem;
    font-family: sans-serif;
    font-size: 14px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

thead tr {
    background-color: #043f7c; /* Azul similar */
    color: white;
    text-align: left;
}

th, td {
    padding: 12px 16px;
    text-align: left;
}

tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

tbody tr:hover {
    background-color: #e9ecef;
}

td img {
    border-radius: 6px;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    text-decoration: underline;
}


/* modal */
.modal-header, .modal-footer {
    background-color: rgba(170, 0, 31, 1)!important;
}
.card-img-wrapper {
        position: relative;
        overflow: hidden;
        border-radius: 32px 32px 0 0;
        margin-top: -35px;
        background: white;
    }

    .card-img-top {
        display: block;
        width: 100%;
        height: auto;
    }

    .producto-titulo {
        color: #3b5998;
        font-size: 20px;
    }

.ver-mas:hover {
    color: var(--secondary);
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 768px) {
    
    .main-links,
    .contact-box {
        display: none !important;
    }
    
    .menu-toggle {
        display: block;
    }
}

@media (min-width: 769px) {
    header {
        color: white;
    }
    
    header .main-links a {
        color: white !important;
    }
    
    header .contact-box i {
        color: white !important;
    }
    header .logo {
        color: white !important;
    }
    
    header .btn.btn-warning {
        color: #042C5C; /* opcional: texto azul sobre fondo amarillo */
    }
    .menu-toggle {
        display: none;
    }
    .login-wrap {
        .row {
            width: 100%;
            height: 100%;
            .form {
                height: 100%;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            .login-image {
                height: 100%;
            }
        }
    }
}

/* Extra small (xs): menos de 576px */
/* No media query - estilos por defecto */


.producto-wrap {
    .producto-card {
        max-width: 325px;
        margin: 0 auto;
    }
}


.body-login::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/login.png") no-repeat center center;
  background-size: cover;
  z-index: -2; /* más atrás */
}

.body-login::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(170, 0, 31, 0.8); /* capa roja encima */
  z-index: -1; /* entre la imagen y el contenido */
}

.login-wrap .row {
    background: white;
    border-radius: 15px;
}

/* Small (sm): ≥576px */
@media (min-width: 576px) {
  /* Tu CSS para sm y superiores */
}

/* Medium (md): ≥768px */
@media (min-width: 768px) {
  /* Tu CSS para md y superiores */
    .solucion {
        font-size: 27px!important;
    }
    .body-login::before {
        content: none; /* elimina el pseudo-elemento */
    }
    .body-login::after {
        content: none; /* elimina el pseudo-elemento */
    }
}

/* Large (lg): ≥992px */
@media (min-width: 992px) {
  /* Tu CSS para lg y superiores */
}

/* Extra large (xl): ≥1200px */
@media (min-width: 1200px) {
  /* Tu CSS para xl y superiores */
}

/* Extra extra large (xxl): ≥1400px */
@media (min-width: 1400px) {
  /* Tu CSS para xxl y superiores */
}


/* product detail */
#productoAccordion {
    gap: 10px;
    display: grid;
}
.accordion-item {
    background-color: #fff;
    border: none!important;
}

#certificados {
    position: relative;
    width: 100%;
    overflow: hidden;
}

#certificados::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/certified.png') no-repeat center center;
    background-size: cover;
    opacity: 0.03; /* transparencia tipo marca de agua */
    filter: grayscale(100%) sepia(20%); /* puedes combinar efectos */
    z-index: 0;
}

/* tu contenido del div */
#certificados > * {
    position: relative;
    z-index: 1;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    gap: 20px;                             /* espacio entre imágenes */
    justify-items: center;                  /* centra horizontalmente cada imagen */
    align-items: center;                    /* centra verticalmente cada imagen */
    max-width: 400px;
    margin: 0 auto;
}

.logos-grid img {
    width: 150px;       /* ajusta según tu necesidad */
    height: 100px;      /* ajusta según tu necesidad */
    object-fit: contain; /* mantiene proporción sin deformar */
}
