/* ==========================================
   HERO — GALERÍA INDUSTRIAL
========================================== */

.gallery-hero{
    position:relative;
    min-height:500px;

    display:flex;
    align-items:center;

    overflow:hidden;

    background-image:url('../img/hero/galeria-hero.jpg?v=2');
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    color:#fff;
}


/* OVERLAY */

.gallery-hero-overlay{
    position:absolute;
    inset:0;

    background:
        linear-gradient(
            90deg,
            rgba(8,24,51,.90) 0%,
            rgba(8,24,51,.68) 45%,
            rgba(8,24,51,.28) 100%
        );

    z-index:1;
}


/* CONTENIDO */

.gallery-hero-content{
    position:relative;
    z-index:2;

    max-width:1200px;

    color:#fff;
}


/* ETIQUETA */

.gallery-tag{
    display:inline-flex;
    align-items:center;

    padding:8px 16px;
    margin-bottom:24px;

    border-radius:30px;

    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.15);

    backdrop-filter:blur(10px);

    color:#fff;

    font-size:12px;
    font-weight:600;

    letter-spacing:1.5px;
    text-transform:uppercase;
}


/* TITULO */

.gallery-hero h1{
    max-width:850px;

    margin:0 0 24px;

    font-size:60px;
    line-height:1.05;

    color:#fff;
}


/* TEXTO */

.gallery-hero p{
    max-width:700px;

    margin:0;

    font-size:20px;
    line-height:1.9;

    color:rgba(255,255,255,.85);
}


/* ==========================================
   MOBILE
========================================== */

@media(max-width:992px){

    .gallery-hero{
        min-height:450px;
    }

    .gallery-hero h1{
        font-size:42px;
    }

    .gallery-hero p{
        font-size:16px;
    }

}

/* ==========================================
   INTRO
========================================== */

.gallery-intro{

    padding:120px 0;

    background:#fff;
}

.gallery-intro h2{

    font-size:52px;

    color:var(--azul);

    margin-bottom:25px;
}

.gallery-intro p{

    font-size:18px;

    line-height:1.9;

    color:#647082;

    max-width:850px;

    margin:auto;
}

/* ==========================================
   SHOWCASE
========================================== */

.showcase-block{

    padding:120px 0;

    background:#fff;
}

.showcase-block .row{

    min-height:750px;
}

.showcase-image{

    width:100%;

    height:650px;

    object-fit:cover;

    display:block;
}

.showcase-content{

    padding:0 90px;
}

.showcase-content span{

    display:block;

    color:var(--amarillo);

    font-size:13px;

    font-weight:700;

    letter-spacing:2px;

    text-transform:uppercase;

    margin-bottom:20px;
}

.showcase-content h2{

    font-size:42px;

    line-height:1.08;

    color:var(--azul);

    margin-bottom:28px;
}

.showcase-content p{

    font-size:18px;

    line-height:1.95;

    color:#647082;
}

/* ==========================================
   CTA INTERMEDIO
========================================== */

.gallery-cta{

    padding:90px 0;

    background:var(--azul);

    color:#fff;
}

.gallery-cta h3{

    font-size:42px;

    line-height:1.2;

    margin:0;
}

.btn-suba{

    display:inline-flex;

    align-items:center;
    justify-content:center;

    padding:18px 36px;

    border-radius:14px;

    background:var(--amarillo);

    color:var(--azul);

    text-decoration:none;

    font-weight:600;

    transition:.4s;
}

.btn-suba:hover{

    transform:translateY(-4px);

    background:#fff;

    color:var(--azul);
}

/* ==========================================
   EDITORIAL
========================================== */

.editorial-section{

    padding:100px 0;

    background:#fff;
}

.editorial-image{

    width:100%;

    height:650px;

    object-fit:cover;

    border-radius:30px;

    display:block;

    margin-bottom:70px;
}

.editorial-section h2{

    font-size:42px;

    line-height:1.1;

    color:var(--azul);

    margin-bottom:25px;
}

.editorial-section p{

    font-size:18px;

    line-height:1.9;

    color:#647082;
}

/* ==========================================
   STATS
========================================== */

.gallery-stats{

    padding:70px 0;

    background:var(--azul);
}

.gallery-stats h3{

    font-size:58px;

    color:var(--amarillo);

    margin-bottom:10px;
}

.gallery-stats span{

    color:#fff;

    font-size:17px;

    font-weight:600;
}

/* ==========================================
   FULL WIDTH
========================================== */

.showcase-fullwidth{

    position:relative;

    height:85vh;

    overflow:hidden;
}

.showcase-fullwidth img{

    width:100%;

    height:100%;

    object-fit:cover;

    display:block;
}

.showcase-fullwidth::before{

    content:'';

    position:absolute;

    inset:0;

    background:
    linear-gradient(
        rgba(28,53,94,.75),
        rgba(28,53,94,.75)
    );

    z-index:1;
}

.overlay-content{

    position:absolute;

    top:50%;
    left:50%;

    transform:translate(-50%,-50%);

    text-align:center;

    color:#fff;

    z-index:2;

    width:90%;
}

.overlay-content span{

    display:inline-block;

    margin-bottom:20px;

    padding:8px 16px;

    border-radius:30px;

    background:rgba(255,255,255,.08);

    border:1px solid rgba(255,255,255,.15);

    text-transform:uppercase;

    letter-spacing:1px;

    font-size:12px;
}

.overlay-content h2{

    font-size:62px;

    line-height:1.05;

    max-width:1000px;

    margin:auto;
}

/* ==========================================
   CTA FINAL
========================================== */

.gallery-final{

    padding:140px 0;

    background:#fff;
}

.gallery-final h2{

    font-size:56px;

    line-height:1.1;

    color:var(--azul);

    margin-bottom:24px;
}

.gallery-final p{

    font-size:18px;

    line-height:1.9;

    color:#647082;

    max-width:800px;

    margin:0 auto 40px;
}

/* ==========================================
   MOBILE
========================================== */

@media(max-width:992px){

    .gallery-hero{
        min-height:450px;
    }

    .gallery-hero h1{
        font-size:42px;
    }

    .gallery-hero p{
        font-size:16px;
    }

    .showcase-block{
        padding:80px 0;
    }

    .showcase-block .row{
        min-height:auto;
    }

    .showcase-image{
        height:420px;
    }

    .showcase-content{
        padding:50px 30px;
    }

    .showcase-content h2{
        font-size:36px;
    }

    .editorial-image{
        height:420px;
    }

    .editorial-section h2{
        font-size:34px;
    }

    .gallery-cta h3{
        font-size:28px;
        margin-bottom:30px;
    }

    .overlay-content h2{
        font-size:36px;
    }

    .gallery-final h2{
        font-size:38px;
    }

    .gallery-stats .col-md-3{
        margin-bottom:40px;
    }
}

/* ==========================================
   GALERÍA INDUSTRIAL — AJUSTE PREMIUM
   Sobrescribe proyectos.css sin eliminarlo
========================================== */

.gallery-clean-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:28px;
}


/* TARJETAS */

.gallery-clean-grid .project-card{
    position:relative;
    min-height:520px;
    border-radius:28px;
    overflow:hidden;
    isolation:isolate;

    box-shadow:
        0 18px 45px rgba(8,24,51,.10);

    transition:
        transform .55s cubic-bezier(.22,.61,.36,1),
        box-shadow .55s ease;
}


/* IMAGEN */

.gallery-clean-grid .project-card img{
    position:absolute;
    inset:0;

    width:100%;
    height:100%;

    object-fit:cover;

    transform:scale(1);
    transition:transform .9s cubic-bezier(.22,.61,.36,1);
}


/* OVERLAY PRINCIPAL */

.gallery-clean-grid .project-card .project-overlay{
    position:absolute;
    inset:0;

    background:
        linear-gradient(
            to top,
            rgba(8,24,51,.94) 0%,
            rgba(8,24,51,.72) 28%,
            rgba(8,24,51,.25) 58%,
            rgba(8,24,51,0) 82%
        );

    z-index:1;

    transition:background .55s ease;
}


/* REFLEJO SUPERIOR */

.gallery-clean-grid .project-card::before{
    content:"";

    position:absolute;
    inset:0;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.12),
            transparent 38%
        );

    opacity:0;

    z-index:2;

    pointer-events:none;

    transition:opacity .55s ease;
}


/* CONTENIDO */

.gallery-clean-grid .project-content{
    position:absolute;

    left:32px;
    right:32px;
    bottom:32px;

    z-index:3;

    color:#fff;

    transform:translateY(0);

    transition:transform .55s ease;
}


/* ETIQUETA */

.gallery-clean-grid .project-meta{
    margin-bottom:14px;
}

.gallery-clean-grid .project-meta span{
    display:inline-flex;
    align-items:center;

    padding:7px 12px;

    border-radius:30px;

    background:rgba(255,255,255,.12);

    border:1px solid rgba(255,255,255,.16);

    backdrop-filter:blur(10px);

    color:#fff;

    font-size:10px;
    font-weight:600;

    letter-spacing:1px;
    text-transform:uppercase;

    transition:
        background .35s ease,
        border-color .35s ease;
}


/* TITULO */

.gallery-clean-grid .project-content h3{
    margin-bottom:10px;

    font-size:27px;
    line-height:1.15;

    color:#fff;
}


/* DESCRIPCIÓN */

.gallery-clean-grid .project-content p{
    margin:0;

    max-width:430px;

    font-size:14px;
    line-height:1.65;

    color:rgba(255,255,255,.80);
}


/* HOVER */

.gallery-clean-grid .project-card:hover{
    transform:translateY(-10px);

    box-shadow:
        0 30px 65px rgba(8,24,51,.20);
}

.gallery-clean-grid .project-card:hover img{
    transform:scale(1.06);
}

.gallery-clean-grid .project-card:hover::before{
    opacity:1;
}

.gallery-clean-grid .project-card:hover .project-overlay{
    background:
        linear-gradient(
            to top,
            rgba(8,24,51,.88) 0%,
            rgba(8,24,51,.55) 30%,
            rgba(8,24,51,.14) 62%,
            rgba(8,24,51,0) 86%
        );
}

.gallery-clean-grid .project-card:hover .project-content{
    transform:translateY(-6px);
}

.gallery-clean-grid .project-card:hover .project-meta span{
    background:rgba(255,255,255,.18);
    border-color:rgba(255,255,255,.24);
}


/* ==========================================
   TABLET / MOBILE
========================================== */

@media(max-width:992px){

    .gallery-clean-grid{
        grid-template-columns:1fr;
        gap:22px;
    }

    .gallery-clean-grid .project-card{
        min-height:420px;
    }

    .gallery-clean-grid .project-content{
        left:24px;
        right:24px;
        bottom:24px;
    }

    .gallery-clean-grid .project-content h3{
        font-size:24px;
    }

}