html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fff;
    /* fondo blanco */
    color: #000;
    /* texto negro */
}



/* VIDEO */
/* VIDEO DETRÁS */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    z-index: 1;
}


/* LOGO ENCIMA Y CENTRADO */
.hero-logo {
    position: absolute;
    /* encima del video */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    /* siempre arriba */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* LOGO */
.hero-logo img {
    max-width: 200px;
    max-height: 200px;
    -o-object-fit: contain;
       object-fit: contain;
    margin-bottom: 20px;
}

/* BOTÓN */
.btn-ver-mas {
    display: inline-block;
    margin-top: 0;
    padding: 12px 28px;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-ver-mas:hover {
    background: #fff;
    color: #000;
}

/* LOGO */
.hero-logo img {
    max-width: 200px;
    max-height: 200px;
    -o-object-fit: contain;
       object-fit: contain;
}

/* BOTÓN BLANCO CON BORDE NEGRO */
.btn-logo {
    display: inline-block;
    padding: 10px 20px;
    color: black;
    border: 2px solid black;
    background-color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-logo:hover {
    background-color: black;
    color: white;
}

/* OVERLAY DEL TEXTO */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 3;
}



/* BOTÓN BLANCO CON BORDE NEGRO */
.btn-logo {
    display: inline-block;
    padding: 10px 20px;
    color: black;
    border: 2px solid black;
    background-color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-logo:hover {
    background-color: black;
    color: white;
}

/* BOTÓN BLANCO CON BORDE NEGRO */
.btn-logo {
    display: inline-block;
    padding: 10px 20px;
    color: black;
    border: 2px solid black;
    background-color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-logo:hover {
    background-color: black;
    color: white;
}

/* MENU */
.main-menu {
    background: #fff;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 100;
}


/* SECCIONES */
.seccion {
    max-width: 900px;
    margin: 100px auto;
    padding: 0 20px;
    text-align: center;
}

.seccion h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.seccion p {
    line-height: 1.7;
    color: #ddd;
}

/* CONTACTO */
.contacto p {
    font-size: 1.1rem;
}

/* FOOTER */
.footer {
    border-top: 1px solid #222;
    padding: 30px;
    text-align: center;
    color: #777;
}



/* ===== BARANDAS ===== */
/* ===== BARANDAS ===== */

.seccion-barandas {
    max-width: 1200px;
    margin: 120px auto;
    padding: 0 40px;
}

.barandas-contenido {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* GALERÍA */
.barandas-galeria {
    flex: 1;
    overflow: hidden;
}

/* Imagen */
.barandas-galeria img {
    width: 100%;
    max-height: 420px;
    -o-object-fit: cover;
       object-fit: cover;

    /* bordes difuminados */
    -webkit-mask-image: radial-gradient(ellipse at center,
            rgba(0, 0, 0, 1) 60%,
            rgba(0, 0, 0, 0) 100%);
    mask-image: radial-gradient(ellipse at center,
            rgba(0, 0, 0, 1) 60%,
            rgba(0, 0, 0, 0) 100%);

    transition: opacity 1s ease;
}

/* TEXTO */
.barandas-texto {
    flex: 1;
}

.barandas-texto h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.barandas-texto p {
    color: #ddd;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* ===== SCROLL REVEAL ===== */

.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 1.4s ease;
}

.reveal-left {
    transform: translateX(-120px);
}

.reveal-right {
    transform: translateX(120px);
}

.reveal-active {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 900px) {
    .bloque-lateral {
        display: block !important;
    }

    .bloque-contenido {
        width: 100% !important;
        padding: 0 15px;
    }
}

/* ===== BARANDAS ===== */


/* ===== TECHO ===== */

.seccion-techo {
    max-width: 1200px;
    margin: 140px auto;
    padding: 0 40px;
}

.techo-contenido {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* TEXTO */
.techo-texto {
    flex: 1;
}

.techo-texto h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.techo-texto p {
    color: #ddd;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* GALERÍA */
.techo-galeria {
    flex: 1;
    overflow: hidden;
}

.techo-galeria img {
    width: 100%;
    max-height: 420px;
    -o-object-fit: cover;
       object-fit: cover;

    -webkit-mask-image: radial-gradient(ellipse at center,
            rgba(0, 0, 0, 1) 60%,
            rgba(0, 0, 0, 0) 100%);
    mask-image: radial-gradient(ellipse at center,
            rgba(0, 0, 0, 1) 60%,
            rgba(0, 0, 0, 0) 100%);

    transition: opacity 1s ease;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .techo-contenido {
        flex-direction: column-reverse;
        text-align: center;
    }
}

/* ===== TECHO ===== */


/* ===== PORTONES ===== */

.seccion-portones {
    max-width: 1200px;
    margin: 140px auto;
    padding: 0 40px;
}

.portones-contenido {
    display: flex;
    align-items: center;
    gap: 60px;
}

.portones-galeria,
.rejas-galeria {
    flex: 1;
    overflow: hidden;
}

.portones-galeria img,
.rejas-galeria img {
    width: 100%;
    max-height: 420px;
    -o-object-fit: cover;
       object-fit: cover;

    -webkit-mask-image: radial-gradient(ellipse at center,
            rgba(0, 0, 0, 1) 60%,
            rgba(0, 0, 0, 0) 100%);
    mask-image: radial-gradient(ellipse at center,
            rgba(0, 0, 0, 1) 60%,
            rgba(0, 0, 0, 0) 100%);

    transition: opacity 1s ease;
}

.portones-texto,
.rejas-texto {
    flex: 1;
}

.portones-texto h2,
.rejas-texto h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.portones-texto p,
.rejas-texto p {
    color: #ddd;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* ===== REJAS ===== */

.seccion-rejas {
    max-width: 1200px;
    margin: 140px auto;
    padding: 0 40px;
}

.rejas-contenido {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* RESPONSIVE */
@media (max-width: 900px) {

    .portones-contenido,
    .rejas-contenido {
        flex-direction: column;
        text-align: center;
    }
}


/* ===== BLOQUE CON BORDES LATERALES DIFUMINADOS ===== */


/* =====================================================
   BLOQUE CON BORDES LATERALES DIFUMINADOS
===================================================== */

.bloque-lateral {
    display: grid;
    grid-template-columns: 216px 1fr 216px;
    /* ⬅️ 10% menos que 240px */
    background: #ffffff;
}

/* =====================================================
   CONTENIDO CENTRAL
===================================================== */
.bloque-contenido {
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* =====================================================
   BORDES LATERALES
===================================================== */
.borde-lateral {
    background-position: center center;
    /* ⬅️ bien centradas */
    background-size: 120% auto;
    /* ⬅️ evita fotos estiradas */
    background-repeat: repeat-y;
    opacity: 0.22;
    /* ⬅️ más suave */
    filter: blur(0.4px);
    /* ⬅️ disimula cortes */
    transition: background-image 1.2s ease-in-out;
}

/* =====================================================
   DIFUMINADO HACIA EL CENTRO (SUAVE)
===================================================== */
.borde-lateral.izquierda {
    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            rgba(0, 0, 0, 0.4) 35%,
            black 75%);
            mask-image: linear-gradient(to right,
            transparent 0%,
            rgba(0, 0, 0, 0.4) 35%,
            black 75%);
}

.borde-lateral.derecha {
    -webkit-mask-image: linear-gradient(to left,
            transparent 0%,
            rgba(0, 0, 0, 0.4) 35%,
            black 75%);
            mask-image: linear-gradient(to left,
            transparent 0%,
            rgba(0, 0, 0, 0.4) 35%,
            black 75%);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1100px) {
    .bloque-lateral {
        grid-template-columns: 1fr;
    }

    .borde-lateral {
        display: none;
    }
}



/* ===== BLOQUE CON BORDES LATERALES DIFUMINADOS ===== */



/* ===============================
   TITULOS INDUSTRIALES
================================ */

.titulo-industrial {
    position: relative;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 30px;
    padding-left: 52px;
    color: #ffffff;
}

/* símbolo */
.titulo-industrial::before {
    content: "▮▮";
    position: absolute;
    left: 0;
    top: 0;
    color: #bfbfbf;
    font-size: 1.4rem;
    letter-spacing: 3px;
}

/* línea sutil debajo */
.titulo-industrial::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 52px;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right,
            #777,
            transparent);
}


/* ===============================
   BLOQUE TEXTO PREMIUM
================================ */
/* ===============================
   IGUALAR ALTO TEXTO = IMAGEN
================================ */

.barandas-texto,
.techo-texto,
.portones-texto,
.rejas-texto {
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.01));
    padding: 40px 45px;
    border-left: 2px solid rgba(255, 255, 255, 0.12);
}



/* contenedores principales */
.barandas-contenido,
.techo-contenido,
.portones-contenido,
.rejas-contenido {
    align-items: stretch;
    /* ⬅️ CLAVE */
}

/* cajas de texto */
.barandas-texto,
.techo-texto,
.portones-texto,
.rejas-texto {
    min-height: 420px;
    /* ⬅️ mismo alto visual que las imágenes */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* ⬅️ centra verticalmente */
}




/* =========================================
   IMÁGENES GRANDES CON BORDES DIFUMINADOS
========================================= */

/* CONTENEDOR DE GALERÍA */
.barandas-galeria,
.techo-galeria,
.portones-galeria,
.rejas-galeria {
    flex: 1.2;
    /* ⬅️ imagen un poco más grande que el texto */
    overflow: hidden;
    position: relative;
}

/* IMÁGENES */
.barandas-galeria img,
.techo-galeria img,
.portones-galeria img,
.rejas-galeria img {
    width: 115%;
    /* ⬅️ MÁS GRANDES */
    max-height: 520px;
    /* ⬅️ más presencia visual */
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center;
       object-position: center;
    display: block;

    /* DIFUMINADO LATERAL REAL */
    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            black 18%,
            black 82%,
            transparent 100%);
    mask-image: linear-gradient(to right,
            transparent 0%,
            black 18%,
            black 82%,
            transparent 100%);

    transition: opacity 1s ease, transform 1.2s ease;
}

/* SUTIL EFECTO AL ENTRAR (opcional, se ve pro) */
.reveal-active img {
    transform: scale(1);
}

.reveal-left img,
.reveal-right img {
    transform: scale(1.05);
}

/* =========================================
   CONTENEDORES (alineación correcta)
========================================= */

.barandas-contenido,
.techo-contenido,
.portones-contenido,
.rejas-contenido {
    display: flex;
    align-items: center;
    gap: 70px;
}

/* TEXTO UN POCO MÁS COMPACTO */
.barandas-texto,
.techo-texto,
.portones-texto,
.rejas-texto {
    flex: 0.9;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 900px) {

    .barandas-contenido,
    .techo-contenido,
    .portones-contenido,
    .rejas-contenido {
        flex-direction: column;
        text-align: center;
    }

    .barandas-galeria img,
    .techo-galeria img,
    .portones-galeria img,
    .rejas-galeria img {
        width: 100%;
        max-height: 420px;

        /* difuminado más suave en móvil */
        -webkit-mask-image: linear-gradient(to bottom,
                transparent 0%,
                black 20%,
                black 80%,
                transparent 100%);
        mask-image: linear-gradient(to bottom,
                transparent 0%,
                black 20%,
                black 80%,
                transparent 100%);
    }
}

.btn-ver-mas {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 28px;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-ver-mas:hover {
    background: #fff;
    color: #000;
}



.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.producto-card {
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    text-align: center;
    transition: transform 0.2s;
}

.producto-card:hover {
    transform: scale(1.05);
}

.producto-img {
    width: 100%;
    height: 200px;
    -o-object-fit: cover;
       object-fit: cover;
}

.producto-info {
    padding: 12px;
    font-size: 18px;
    /* más grande */
    color: #000;
    /* negro */
    font-weight: bold;
}





/* Botón cerrar */
.cerrar {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    /* un poco más pequeño */
    font-weight: bold;
    color: #fff;
    cursor: pointer;
}





.miniaturas {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.miniaturas img {
    width: 50px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
}

.miniaturas img.active {
    border-color: #fff;
}





/* Miniaturas */
.miniaturas img {
    width: 60px;
    /* todas iguales */
    height: 60px;
    /* altura fija */
    -o-object-fit: cover;
       object-fit: cover;
    /* recorta centrando */
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
}

.miniaturas img.active {
    border-color: #fff;
}

/* Contenedor de miniaturas flex */
.miniaturas {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
}






/* Contenedor de miniaturas */
.miniaturas {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

/* Miniaturas */
.miniaturas img {
    width: 60px !important;
    height: 60px !important;
    -o-object-fit: contain !important;
       object-fit: contain !important;
    /* miniaturas completas */
    cursor: pointer !important;
    border: 2px solid transparent !important;
    border-radius: 5px !important;
}

.miniaturas img.active {
    border-color: #fff !important;
}




/* Contenedor del buscador */
.buscador-productos {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 10px;
    flex-wrap: wrap;
}

/* Input del buscador */
#buscar-id-catalogo {
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #555;
    outline: none;
    width: 250px;
    transition: border 0.3s, box-shadow 0.3s;
}

#buscar-id-catalogo:focus {
    border-color: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    background: #111;
    color: #fff;
}

/* Botón buscar */
#btn-buscar {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

#btn-buscar:hover {
    background: #fff;
    color: #000;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 500px) {
    .buscador-productos {
        flex-direction: column;
        gap: 10px;
    }

    #buscar-id-catalogo {
        width: 90%;
    }

    #btn-buscar {
        width: 90%;
    }
}


/* LOS DOS BORDES INVISIBLES SIN DEJAR HUECO */
.borde-lateral {
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
}

/* El grid ya no reserva espacio para los bordes */
.bloque-lateral {
    grid-template-columns: 0 1fr 0 !important;
}


/* LISTA */
.main-menu ul {
    list-style: none !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 25px !important;
    width: 100%;
}

.main-menu a {
    color: #fff !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

/* MOBILE */
@media (max-width: 900px) {

    .menu-toggle {
        display: flex !important;
    }

    .main-menu ul {
        position: absolute !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        background: #000 !important;
        flex-direction: column !important;
        display: none !important;
        gap: 0 !important;
    }

    .main-menu ul.show {
        display: flex !important;
    }

    .main-menu ul li {
        padding: 15px 0 !important;
        border-top: 1px solid #333 !important;
    }
}



/* LOS DOS BORDES INVISIBLES SIN DEJAR HUECO */
.borde-lateral {
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
}

/* El grid ya no reserva espacio para los bordes */
.bloque-lateral {
    grid-template-columns: 0 1fr 0 !important;
}


.paginacion {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.paginacion button {
    padding: 10px 18px;
    border: none;
    background: #333;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.paginacion button:disabled {
    background: #aaa;
    cursor: not-allowed;
}




/* ===============================
   FIX RESPONSIVE GLOBAL
================================ */
* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}


/* ===== MENU TOGGLE (HAMBURGUESA) ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    width: 40px;
    height: 40px;
    margin: 10px auto;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: #fff;
    margin: 4px 0;
    display: block;
    transition: 0.3s;
}

/* MOBILE */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .main-menu ul {
        display: none;
        flex-direction: column;
        background: #000;
        width: 100%;
    }

    .main-menu ul.show {
        display: flex;
    }
}



@media (max-width: 600px) {
    .galeria {
        grid-template-columns: 1fr !important;
        /* una columna */
        gap: 10px !important;
        justify-items: center;
        /* centra las cards */
    }

    .producto-card {
        width: 100% !important;
        /* ocupa todo el ancho */
        max-width: 300px;
        /* máximo ancho razonable */
    }

    .producto-img {
        width: 100% !important;
        height: auto !important;
        /* altura automática */
        max-height: 400px !important;
        /* opcional, para no exagerar */
        -o-object-fit: contain !important;
           object-fit: contain !important;
        /* muestra toda la imagen */
    }
}


/* ===========================
   MODAL PRODUCTO RESPONSIVE
=========================== */

/* Overlay oscuro */
.modal {
    display: none;
    /* oculto por defecto */
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    padding: 10px;
}

/* Caja del modal */
.modal-contenido {
    width: 90vw;
    max-width: 900px;
    max-height: 90vh;
    background: #000;
    border-radius: 10px;
    position: relative;
    padding: 32px 16px 16px;
    /* espacio arriba para el botón */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Cuerpo: imagen + info */
.modal-body {
    display: flex;
    gap: 16px;
}

/* Imagen */
.modal-imagenes {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-imagenes img {
    width: 100%;
    height: auto;
    max-height: 65vh;
    -o-object-fit: contain;
       object-fit: contain;
    display: block;
}

/* Info */
.modal-info {
    flex: 1;
    overflow-y: auto;
    max-height: 65vh;
}

/* Miniaturas */
.miniaturas {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.miniaturas img {
    width: 55px;
    height: 55px;
    -o-object-fit: cover;
       object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    border: 2px solid transparent;
}

.miniaturas img.active {
    border-color: #fff;
}

/* Botón cerrar SIEMPRE visible (pegado a la pantalla, no al modal) */
.cerrar {
    position: fixed;
    /* 🔥 clave para celular */
    top: 12px;
    right: 12px;
    font-size: 26px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    padding: 6px 10px;
    border-radius: 999px;
}

/* ======= RESPONSIVE CELULAR ======= */
@media (max-width: 768px) {

    .modal-contenido {
        width: 95vw;
        max-width: 95vw;
        max-height: 90vh;
        padding: 32px 10px 12px;
    }

    .modal-body {
        flex-direction: column;
        /* imagen arriba, texto abajo */
    }

    .modal-imagenes img {
        max-height: 55vh;
    }

    .modal-info {
        max-height: 25vh;
    }

    .cerrar {
        top: 10px;
        right: 10px;
        font-size: 22px;
    }
}

/* === FORZAR QUE EL MODAL QUEDE ENCIMA DE TODO === */
.bloque-contenido {
    z-index: auto !important;
    /* quita la capa que lo limitaba */
}

.modal {
    z-index: 9999 !important;
    /* por encima del menú (100) */
}

.cerrar {
    z-index: 10000 !important;
    /* por encima incluso del modal */
}

.btn-wsp-modal {
    display: block;
    width: 100%;
    margin-top: 14px;
    text-align: center;
    background: #25d366;
    color: #000;
    padding: 12px 0;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.3s;
}

.btn-wsp-modal:hover {
    background: #1ebe5d;
    transform: scale(1.03);
}

.paginacion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.paginacion-numeros {
    display: flex;
    gap: 5px;
}

.paginacion-numeros button {
    padding: 5px 10px;
    border: 1px solid #999;
    background: white;
    cursor: pointer;
    color: #000;
    /* 👈 agrega esto */
    font-weight: 600;
    /* opcional para que se vean más claros */
}

.paginacion-numeros button.activo {
    background: #007bff;
    color: white;
    border-color: #007bff;
    font-weight: bold;
}


.paginacion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    /* para que en celular no se desborde */
}

.paginacion-numeros {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.paginacion-ellipsis {
    padding: 5px 6px;
}



/* ===== MODAL BLANCO ===== */
.modal {
    background: rgba(0, 0, 0, 0.35) !important;
    /* fondo afuera, suave */
}

.modal-contenido {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #ddd;
}

/* texto dentro del modal */
.modal-contenido * {
    color: #000 !important;
}

/* botón cerrar visible en blanco */
.cerrar {
    color: #000 !important;
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid #ddd;
}

/* miniaturas borde */
.miniaturas img.active {
    border-color: #000 !important;
}


/* =========================
   FIX CATÁLOGO / TEXTO EN BLANCO
   (PEGAR AL FINAL DEL CSS)
========================= */

/* Menú en blanco + letras negras */
.main-menu {
  background: #fff !important;
  border-top: 1px solid #ddd !important;
  border-bottom: 1px solid #ddd !important;
}

.main-menu a {
  color: #000 !important;
}

.main-menu a:hover {
  color: #555 !important;
}

/* Hamburguesa en negro */
.menu-toggle span {
  background: #000 !important;
}

/* Menú móvil también blanco */
@media (max-width: 900px) {
  .main-menu ul {
    background: #fff !important;
  }

  .main-menu ul li {
    border-top: 1px solid #eee !important;
  }

  .main-menu ul a {
    color: #000 !important;
  }
}

/* Textos generales que tenías en gris claro */
.seccion p,
.barandas-texto p,
.techo-texto p,
.portones-texto p,
.rejas-texto p,
.titulo-industrial {
  color: #000 !important;
}

/* Botón buscar visible en blanco */
#btn-buscar {
  border: 2px solid #000 !important;
  color: #000 !important;
  background: #fff !important;
}

#btn-buscar:hover {
  background: #000 !important;
  color: #fff !important;
}

/* Input focus no “oscurezca” en sitio blanco */
#buscar-id-catalogo:focus {
  border-color: #000 !important;
  box-shadow: 0 0 8px rgba(0,0,0,0.2) !important;
  background: #fff !important;
  color: #000 !important;
} 


html {
    font-size: 110% !important;
}


