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);
    transition: background-image 1.2s ease-in-out;
}

/* =====================================================
   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;
    }
}






/* RESPONSIVE */
@media (max-width: 900px) {}

/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    z-index: 999999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float img {
    width: 32px;
    height: 32px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}








/* =========================
   TARJETAS Y SECCIONES AJUSTADAS
========================= */
.barandas-contenido,
.techo-contenido,
.portones-contenido,
.rejas-contenido,
.seccion.contacto {
    background: #000;
    /* negro */
    border-radius: 16px;
    padding: 40px;
    max-width: 900px;
    /* ancho reducido */
    margin: 60px auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 40px;
}

/* texto dentro de tarjetas */
.barandas-texto,
.techo-texto,
.portones-texto,
.rejas-texto {
    color: #fff !important;
    flex: 1;
    min-height: auto;
    /* no fuerza altura */
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

/* imágenes */
.barandas-galeria img,
.techo-galeria img,
.portones-galeria img,
.rejas-galeria img {
    width: 100%;
    max-height: 350px;
    /* más compacto */
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center;
       object-position: center;
    border-radius: 12px;
}

/* botón ver más */
.btn-ver-mas {
    border: 2px solid #fff !important;
    color: #fff !important;
    padding: 10px 25px;
    font-size: 0.9rem;
}

.btn-ver-mas:hover {
    background: #fff !important;
    color: #000 !important;
}

/* =========================
   RESPONSIVE GENERAL
========================= */
@media (max-width: 900px) {

    .barandas-contenido,
    .techo-contenido,
    .portones-contenido,
    .rejas-contenido,
    .seccion.contacto {
        flex-direction: column;
        padding: 25px 15px;
        margin: 40px 15px;
        gap: 20px;
    }

    .barandas-texto h2,
    .techo-texto h2,
    .portones-texto h2,
    .rejas-texto h2 {
        font-size: 1.6rem;
    }

    .barandas-texto p,
    .techo-texto p,
    .portones-texto p,
    .rejas-texto p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .barandas-galeria img,
    .techo-galeria img,
    .portones-galeria img,
    .rejas-galeria img {
        max-height: 250px;
        width: 90%;
        margin: 0 auto;
    }
}


/* 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);
}



