html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fff;
    color: #000;
}


/* HERO */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.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;
}

.hero-overlay h1 {
    font-size: 4rem;
    letter-spacing: 4px;
}

.hero-overlay p {
    font-size: 1.2rem;
}




/* 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: #333;
}


/* 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);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .barandas-contenido {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== 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;
    background: transparent;
}


/* =====================================================
   CONTENIDO CENTRAL
===================================================== */
.bloque-contenido {
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* =====================================================
   BORDES LATERALES
===================================================== */
.borde-lateral {
    background-position: center center;
    background-size: 120% auto;
    background-repeat: repeat-y;
    filter: blur(0.4px);
    will-change: transform;
}


/* =====================================================
   DIFUMINADO HACIA EL CENTRO (SUAVE)
===================================================== */
.borde-lateral.izquierda {
    background-image:
        linear-gradient(to right,
            rgba(255, 255, 255, 1),
            rgba(255, 255, 255, 0)),
        var(--img);
}

.borde-lateral.derecha {
    background-image:
        linear-gradient(to left,
            rgba(255, 255, 255, 1),
            rgba(255, 255, 255, 0)),
        var(--img);
}

/* =====================================================
   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;
}




/* 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;
}

/* OVERLAY CENTRAL */
.hero-overlay {
    position: absolute;
    inset: 0;
    /* ocupa todo el hero */
    background: rgba(0, 0, 0, 0.4);
    /* opcional, suaviza el video */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    /* espacio entre logo y botón */
    z-index: 10;
    /* encima del video */
    text-align: center;
}

/* LOGO */
.hero-logo {
    max-width: 200px;
    max-height: 200px;
    -o-object-fit: contain;
       object-fit: contain;
}

/* BOTÓN */
.btn-ver-mas {
    display: inline-block;
    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;
}


/* Sección Contacto con logo de fondo y texto blanco */
.seccion.contacto {
    position: relative;
    text-align: center;
    padding: 50px 20px;
    color: #fff;
    /* Texto blanco */
    overflow: hidden;
    background-color: #000;
    /* opcional, para mejor contraste si el fondo es muy claro */
}

.seccion.contacto::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/diseno/public/images/logo/logos.png') center center no-repeat;
    background-size: contain;
    /* Mantiene proporción del logo */
    opacity: 0.1;
    /* Transparencia del logo */
    pointer-events: none;
    z-index: 0;
}

.seccion.contacto * {
    position: relative;
    z-index: 1;
    /* Mantiene el texto por encima del logo */
}





/* =========================================
   TARJETAS NEGRAS CENTRADAS (NO FONDO TOTAL)
========================================= */

/* el fondo general sigue blanco */
.seccion-barandas,
.seccion-techo,
.seccion-portones,
.seccion-rejas {
    background: transparent !important;
}

/* contenedor → tarjeta negra */
.barandas-contenido,
.techo-contenido,
.portones-contenido,
.rejas-contenido {
    background: #000;
    border-radius: 18px;
    padding: 70px;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

/* texto blanco */
.barandas-contenido *,
.techo-contenido *,
.portones-contenido *,
.rejas-contenido * {
    color: #fff !important;
}

/* quitar fondos raros de cajas */
.barandas-texto,
.techo-texto,
.portones-texto,
.rejas-texto {
    background: transparent !important;
    border-left: none !important;
}

/* botones */
.barandas-contenido .btn-ver-mas,
.techo-contenido .btn-ver-mas,
.portones-contenido .btn-ver-mas,
.rejas-contenido .btn-ver-mas {
    border-color: #fff !important;
    color: #fff !important;
}

.barandas-contenido .btn-ver-mas:hover,
.techo-contenido .btn-ver-mas:hover,
.portones-contenido .btn-ver-mas:hover,
.rejas-contenido .btn-ver-mas:hover {
    background: #fff !important;
    color: #000 !important;
}

/* responsive */
@media (max-width: 900px) {

    .barandas-contenido,
    .techo-contenido,
    .portones-contenido,
    .rejas-contenido {
        padding: 40px 25px;
        border-radius: 14px;
    }
}


/* =========================================
   CONTACTO IGUAL A TARJETAS NEGRAS
========================================= */

.seccion.contacto {
    background: #000 !important;
    border-radius: 18px;
    padding: 70px;
    max-width: 1200px;
    margin: 120px auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    text-align: center;
}

/* texto blanco */
.seccion.contacto * {
    color: #fff !important;
}

/* responsive */
@media (max-width: 900px) {
    .seccion.contacto {
        padding: 40px 25px;
        border-radius: 14px;
    }
}




/* ===============================
   BLOQUES BARANDAS EN TARJETA NEGRA
================================ */

.barandas-bloque {
    display: flex;
    align-items: center;
    gap: 50px;

    background: #000;
    padding: 60px;
    margin-bottom: 80px;

    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

/* invertir orden */
.barandas-bloque.inverso {
    flex-direction: row-reverse;
}

/* TEXTO BLANCO */
.barandas-bloque .barandas-texto,
.barandas-bloque .barandas-texto p,
.barandas-bloque .barandas-texto li {
    color: #fff;
}

/* quitar fondos previos */
.barandas-bloque .barandas-texto {
    background: transparent !important;
    border: none !important;
    padding: 0;
}

.barandas-bloque .barandas-imagen {
    flex: 1;
    display: flex;
    justify-content: center;
    /* centra horizontal */
    align-items: center;
    /* centra vertical */
}


.barandas-bloque .barandas-imagen img {
    width: 100%;
    max-height: 420px;
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 14px;
}


/* BOTÓN */
.barandas-bloque .btn-ver-mas {
    border-color: #fff;
    color: #fff;
}

.barandas-bloque .btn-ver-mas:hover {
    background: #fff;
    color: #000;
}

/* RESPONSIVE */
@media (max-width: 900px) {

    .barandas-bloque,
    .barandas-bloque.inverso {
        flex-direction: column;
        text-align: center;
        padding: 40px 25px;
    }
}










/* 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;
}



/* MÓVIL */
@media (max-width: 1100px) {
    .bloque-lateral {
        grid-template-columns: 16px 1fr 16px;
        /* espacio mínimo para los bordes */
    }

    .borde-lateral {
        display: block;
        /* aseguras que el div exista */
        width: 16px;
        /* ancho mínimo para que el grid no colapse */
        opacity: 0;
        /* invisible pero mantiene espacio */
        pointer-events: none;
        /* no molesta al usuario */
    }

    /* Ajustar padding del contenido para que no quede pegado */
    .bloque-contenido {
        padding: 0 10px;
    }
}


.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    /* 👈 aquí lo mandamos a la derecha */

    z-index: 9999;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float img {
    width: 32px;
    height: 32px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}


@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
}



/* Aumentar tamaño solo de títulos y párrafos de las secciones */
.seccion h2 {
    font-size: calc(2.5rem * 1.1);
}

.seccion p {
    font-size: calc(1rem * 1.1);
}
