/* =========================================
   AVANZA SST
   CATALOGO DE PRODUCTOS
   DISEﾃ前 BASE V1
========================================= */


:root {

    --avanza-azul: #082f54;

    --avanza-azul-claro: #075ca8;

    --avanza-verde: #7bd13f;

    --avanza-verde-oscuro: #63b72e;

    --catalogo-fondo: #f5f8fa;

    --catalogo-texto: #142338;

    --catalogo-gris: #68798c;

    --catalogo-blanco: #ffffff;
}



.catalogo-productos-page {

    margin: 0;

    background: var(--catalogo-fondo);

    color: var(--catalogo-texto);

    font-family: "Inter", sans-serif;

}



.catalogo-container {

    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

}



/* =========================================
   HERO
========================================= */


.catalogo-hero {

    background:
        linear-gradient(
            135deg,
            #082f54 0%,
            #075ca8 100%
        );

    min-height: 520px;

    display: flex;

    align-items: center;

    color: white;

    overflow: hidden;

}



.catalogo-hero-grid {

    display: grid;

    grid-template-columns: 58% 42%;

    align-items: center;

    gap: 40px;

}



.catalogo-label {

    display: inline-block;

    color: var(--avanza-verde);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 1.5px;

    margin-bottom: 18px;

}



.catalogo-hero h1 {

    font-size: 64px;

    line-height: 1.05;

    margin: 0 0 22px;

    color: white;

}



.catalogo-hero p {

    max-width: 650px;

    font-size: 20px;

    line-height: 1.6;

    color: rgba(255,255,255,.86);

    margin-bottom: 32px;

}



.catalogo-btn {

    display: inline-block;

    background: var(--avanza-verde);

    color: #082f54;

    padding: 15px 25px;

    border-radius: 10px;

    text-decoration: none;

    font-weight: 800;

}



.catalogo-btn:hover {

    background: #94df61;

}



/* =========================================
   ESPACIO DE JORGE
========================================= */


.catalogo-hero-visual {

    display: flex;

    justify-content: center;

    align-items: center;

}



.catalogo-jorge-placeholder {

    width: 330px;

    height: 380px;

    border: 2px dashed rgba(255,255,255,.35);

    border-radius: 24px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: rgba(255,255,255,.6);

    font-weight: 800;

}



/* =========================================
   BUSCADOR
========================================= */


.catalogo-tools {

    background: white;

    padding: 42px 0;

    border-bottom: 1px solid #e6edf2;

}



.catalogo-search {

    height: 58px;

    background: white;

    border: 1px solid #d8e1e8;

    border-radius: 12px;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 0 20px;

    box-shadow: 0 8px 24px rgba(0,0,0,.05);

}



.catalogo-search span {

    font-size: 28px;

    color: var(--catalogo-gris);

}



.catalogo-search input {

    width: 100%;

    border: 0;

    outline: none;

    font-size: 16px;

    font-family: inherit;

}



.catalogo-categorias {

    display: flex;

    gap: 10px;

    flex-wrap: wrap;

    margin-top: 24px;

}



.categoria-btn {

    background: white;

    border: 1px solid #bfd0dc;

    border-radius: 50px;

    padding: 10px 18px;

    cursor: pointer;

    font-weight: 700;

    color: #264663;

}



.categoria-btn:hover,
.categoria-btn.active {

    background: var(--avanza-azul);

    border-color: var(--avanza-azul);

    color: white;

}



/* =========================================
   PRODUCTOS
========================================= */


.catalogo-productos {

    padding: 80px 0;

}



.catalogo-section-header {

    text-align: center;

    max-width: 720px;

    margin: 0 auto 45px;

}



.catalogo-section-label {

    color: var(--avanza-verde-oscuro);

    font-weight: 800;

    font-size: 13px;

    letter-spacing: 2px;

}



.catalogo-section-header h2 {

    font-size: 40px;

    margin: 12px 0;

    color: var(--avanza-azul);

}



.catalogo-section-header p {

    color: var(--catalogo-gris);

    font-size: 17px;

}


/* =========================================
   GRID DE PRODUCTOS
========================================= */

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    justify-content: center;
    gap: 28px;
    width: 100%;
}


/* =========================================
   TARJETA MAESTRA
========================================= */

.producto-card {
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e0e7ed;
    box-shadow: 0 8px 30px rgba(11,46,77,.07);
    transition: .25s ease;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(11,46,77,.13);
}


/* FOTOGRAFÍA */

.producto-imagen {
    width: 100%;
    height: 260px;
    background: #edf2f5;
    overflow: hidden;
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    padding: 18px;
    box-sizing: border-box;
}

.producto-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8797a4;
    font-weight: 700;
}


/* INFORMACIÓN */

.producto-info {
    padding: 24px;
}

.producto-categoria {
    display: inline-block;
    background: rgba(123, 209, 63, 0.12);
    color: #63b72e;
    border: 1px solid rgba(123, 209, 63, 0.35);
    border-radius: 50px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.producto-info h3 {
    color: var(--avanza-azul);
    font-size: 21px;
    margin: 10px 0;
}

.producto-info p {
    color: var(--catalogo-gris);
    line-height: 1.6;
}

.producto-codigo {
    display: block;
    font-size: 12px;
    color: #8493a0;
    margin: 18px 0;
}


/* BOTONES */

.producto-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.producto-btn-secundario,
.producto-btn-principal {
    text-align: center;
    text-decoration: none;
    padding: 11px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
}

.producto-btn-secundario {
    border: 1px solid var(--avanza-azul);
    color: var(--avanza-azul);
}

.producto-btn-principal {
    background: var(--avanza-verde);
    color: var(--avanza-azul);
}
/* =========================================
   TARJETA MAESTRA
========================================= */


.producto-card {

    background: white;

    border-radius: 16px;

    overflow: hidden;

    border: 1px solid #e0e7ed;

    box-shadow:
        0 8px 30px rgba(11,46,77,.07);

    transition: .25s ease;

}



.producto-card:hover {

    transform: translateY(-5px);

    box-shadow:
        0 18px 40px rgba(11,46,77,.13);

}



.producto-imagen {

    height: 260px;

    background: #edf2f5;

    overflow: hidden;

}



.producto-placeholder {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #8797a4;

    font-weight: 700;

}



.producto-info {

    padding: 24px;

}



.producto-categoria {

    color: var(--avanza-verde-oscuro);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1px;

}
/* ===== CONTENIDO DE LA TARJETA ===== */

.producto-info h3 {
    color: var(--avanza-azul);
    font-size: 21px;
    margin: 10px 0;
}

.producto-info p {
    color: var(--catalogo-gris);
    line-height: 1.6;
}

.producto-codigo {
    display: block;
    font-size: 12px;
    color: #8493a0;
    margin: 18px 0;
}

.producto-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.producto-btn-secundario,
.producto-btn-principal {
    text-align: center;
    text-decoration: none;
    padding: 11px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
}

.producto-btn-secundario {
    border: 1px solid var(--avanza-azul);
    color: var(--avanza-azul);
}

.producto-btn-principal {
    background: var(--avanza-verde);
    color: var(--avanza-azul);
}


.producto-info h3 {

    color: var(--avanza-azul);

    font-size: 21px;

    margin: 10px 0;

}



.producto-info p {

    color: var(--catalogo-gris);

    line-height: 1.6;

}



.producto-codigo {

    display: block;

    font-size: 12px;

    color: #8493a0;

    margin: 18px 0;

}



.producto-actions {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

}



.producto-btn-secundario,
.producto-btn-principal {

    text-align: center;

    text-decoration: none;

    padding: 11px;

    border-radius: 8px;

    font-size: 13px;

    font-weight: 800;

}



.producto-btn-secundario {

    border: 1px solid var(--avanza-azul);

    color: var(--avanza-azul);

}



.producto-btn-principal {

    background: var(--avanza-verde);

    color: var(--avanza-azul);

}



/* =========================================
   CTA FINAL
========================================= */


.catalogo-cta {

    background: var(--avanza-azul);

    padding: 65px 0;

    color: white;

}



.catalogo-cta .catalogo-container {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 50px;

}



.catalogo-cta h2 {

    font-size: 34px;

    max-width: 650px;

    margin: 5px 0 12px;

}



.catalogo-cta p {

    color: rgba(255,255,255,.78);

    max-width: 650px;

}



/* =========================================
   RESPONSIVE
========================================= */


@media (max-width: 900px) {

    .catalogo-hero-grid {

        grid-template-columns: 1fr;

        padding: 70px 0;

    }


    .catalogo-hero h1 {

        font-size: 46px;

    }


    .catalogo-hero-visual {

        display: none;

    }


    .productos-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}



@media (max-width: 600px) {

    .productos-grid {

        grid-template-columns: 1fr;

    }


    .catalogo-hero h1 {

        font-size: 38px;

    }


    .catalogo-cta .catalogo-container {

        flex-direction: column;

        align-items: flex-start;

    }
}

/* =========================================
   MENU SUPERIOR DEL CATALOGO
========================================= */

/* Letras blancas sobre el encabezado azul */
.catalogo-productos-page .navbar:not(.scrolled) .navbar-links > a,
.catalogo-productos-page .navbar:not(.scrolled) .navbar-links .nav-link {
    color: #ffffff !important;
}

/* Productos activo y efectos al pasar el cursor */
.catalogo-productos-page .navbar:not(.scrolled) .navbar-links > a:hover,
.catalogo-productos-page .navbar:not(.scrolled) .navbar-links .nav-link:hover,
.catalogo-productos-page .navbar:not(.scrolled) .navbar-links > a.active {
    color: #7bd13f !important;
}

/* Letras oscuras cuando el menú se vuelve blanco */
.catalogo-productos-page .navbar.scrolled .navbar-links > a,
.catalogo-productos-page .navbar.scrolled .navbar-links .nav-link {
    color: #111111 !important;
}

/* Productos activo al bajar */
.catalogo-productos-page .navbar.scrolled .navbar-links > a.active {
    color: #075ca8 !important;
}

/* Opciones del desplegable: siempre visibles */
.catalogo-productos-page .navbar .nav-dropdown-menu .nav-dropdown-item {
    color: #0d1b2a !important;
}

.catalogo-productos-page .navbar .nav-dropdown-menu .nav-dropdown-item:hover {
    color: #075ca8 !important;
    background-color: #f3f6f8;
}



/* =========================================
   JORGE - CATALOGO DE PRODUCTOS
========================================= */

.catalogo-productos-page .catalogo-hero-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 40px;
}

.catalogo-productos-page .catalogo-hero-visual {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 390px;
}

.catalogo-productos-page .catalogo-jorge-img {
    width: 100%;
    max-width: 430px;
    height: auto;
    display: block;
    filter: drop-shadow(0 18px 35px rgba(0,0,0,0.22));
    transform: translateY(15px);
}



/* =========================================
   AJUSTES PARA TABLET Y CELULAR
========================================= */

@media (max-width: 900px) {

    .catalogo-productos-page .catalogo-hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .catalogo-productos-page .catalogo-hero-visual {
        display: flex;
        min-height: 0;
    }

    .catalogo-productos-page .catalogo-jorge-img {
        max-width: 300px;
        transform: translateY(15px);
    }

}

@media (max-width: 600px) {

    .catalogo-productos-page .catalogo-jorge-img {
        max-width: 240px;
    }

}
