/* =========================================
   HEADER
========================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: var(--color-bg-dark);
    box-shadow: 0 4px 15px rgba(0,0,0,.12);
}


/* =========================================
   PÁGINA INTERNA
========================================= */

.internal-page{
    min-height:100vh;
    background:#f5f7fb;
}

.internal-header{
    padding:125px 5% 40px;
}

.internal-header__content {
    margin-top: 25px;
    width: 90%;
    max-width: 1400px;
}

.back-link{
    display:inline-block;
    margin-bottom:28px;

    color:#6b7280;
    text-decoration:none;
    font-size:15px;
    font-weight:500;

    transition:.2s;
}

.back-link:hover{
    color:var(--color-primary);
}

.internal-header__eyebrow{
    display:block;
    margin-bottom:10px;

    color:var(--color-primary);
    font-size:13px;
    font-weight:700;
    letter-spacing:2px;
}

.internal-header h1{
    margin:0 0 14px;

    color:#17365d;
    font-size:52px;
    font-weight:800;
}

.internal-header p{
    max-width:700px;

    color:#667085;
    font-size:18px;
    line-height:1.6;
}


/* =========================================
   CATÁLOGO
========================================= */

.catalogo{
    width:100%;
    background:#fff;
    padding:15px 0 90px;
}

.maquinas-grid{
    width:90%;
    max-width:1400px;
    margin:auto;

    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}


/* =========================================
   TARJETAS
========================================= */

.maquinas-card{
    display:flex;
    flex-direction:column;

    background:#fff;

    border:1px solid #e8ebf0;
    border-radius:16px;

    overflow:hidden;

    box-shadow:0 6px 18px rgba(0,0,0,.06);

    transition:.3s;
}

.maquinas-card:hover{
    transform:translateY(-6px);

    border-color:rgba(10,93,184,.25);

    box-shadow:0 16px 35px rgba(0,0,0,.10);
}

.maquinas-card__imagen {
    height: 190px;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:20px;

    background:#f8f9fb;
}

.maquinas-card__imagen img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}

.maquinas-card__contenido{
    flex:1;

    display:flex;
    flex-direction:column;

    padding:20px;
}

.maquinas-card__contenido h3{
    margin-bottom:10px;

    color:#17365d;
    font-size:20px;
}

.maquinas-card__contenido p {
    margin-bottom: 20px;

    color: #667085;
    font-size: 15px;
    line-height: 1.5;
}

.maquinas-card__contenido .btn{
    margin-top:auto;
}


/* =========================================
   BOTONES
========================================= */

.btn {
    width: 100%;
    padding: 13px 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
            background-color 0.3s ease,
            transform 0.3s ease,
            box-shadow 0.3s ease;
}

.btn--primary {
    border: none;
    background-color: var(--color-primary);
    color: #ffffff;
}

.btn--primary:hover {
    background-color: #003c82;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(10, 93, 184, 0.2);
}

.btn:hover{
    background:#003c82;
    transform:translateY(-2px);
}


/* =========================================
   POPUP
========================================= */

.popup{
    position:fixed;
    inset:0;

    display:none;

    justify-content:center;
    align-items:center;

    background:rgba(0,0,0,.55);

    z-index:9999;

    padding:30px;
}

.popup.activo{
    display:flex;
}

.popup__box{
    position:relative;

    width:100%;
    max-width:1050px;

    display:grid;
    grid-template-columns:42% 58%;

    overflow:hidden;

    background:#fff;

    border-radius:22px;

    box-shadow:0 25px 60px rgba(0,0,0,.25);

    animation: mostrarPopup 0.3s ease;
}

@keyframes mostrarPopup {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup__imagen{
    display:flex;
    justify-content:center;
    align-items:center;

    padding:40px;

    background:#f5f7fb;
}

.popup__imagen img{
    width:100%;
    max-height:420px;
    object-fit:contain;
}

.popup__contenido{
    padding:50px;
}

.popup__categoria{
    color:#0A5DB8;

    font-size:13px;
    font-weight:700;

    letter-spacing:2px;
}

.popup__contenido h2{
    margin-top:15px;

    color:#17365d;

    font-size:40px;
}

.popup__contenido p{
    margin-top:25px;

    color:#667085;

    font-size:18px;
    line-height:1.8;
}

.popup__botones{
    margin-top:40px;

    display:flex;
    gap:15px;
}

.popup__cerrar{
    position:absolute;

    top:18px;
    right:18px;

    width:45px;
    height:45px;

    border:none;
    border-radius:50%;

    background:#0A5DB8;
    color:#fff;

    cursor:pointer;
}

.popup__cerrar:hover{
    background:#003c82;
}

.btn--secondary{
    background:#6c757d;
}

.btn--secondary:hover{
    background:#565e64;
}
.catalogo__actions {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto 32px;

    display: flex;
    justify-content: flex-end;
}


/* BOTÓN */

.btn-download-catalog {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 13px 20px;

    background-color: #ffffff;

    color: var(--color-text-blue);

    border: 1px solid rgba(59, 122, 224, 0.25);
    border-radius: 9px;

    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 650;

    text-decoration: none;

    cursor: pointer;

    box-shadow:
            0 4px 14px rgba(15, 23, 42, 0.04);

    transition:
            background-color 0.25s ease,
            color 0.25s ease,
            border-color 0.25s ease,
            transform 0.25s ease,
            box-shadow 0.25s ease;
}


/* ICONO */

.btn-download-catalog svg {
    width: 18px;
    height: 18px;

    stroke-width: 2;

    transition: transform 0.25s ease;
}


/* HOVER */

.btn-download-catalog:hover {
    background-color: var(--color-text-blue);

    color: #ffffff;

    border-color: var(--color-text-blue);

    transform: translateY(-2px);

    box-shadow:
            0 8px 22px rgba(59, 122, 224, 0.18);
}


.btn-download-catalog:hover svg {
    transform: translateY(2px);
}


/* CLICK */

.btn-download-catalog:active {
    transform: translateY(0);
}


/* FOCUS */

.btn-download-catalog:focus-visible {
    outline: 3px solid rgba(59, 122, 224, 0.20);
    outline-offset: 3px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 650px) {

    .catalogo__actions {
        justify-content: stretch;

        margin-bottom: 24px;
    }

    .btn-download-catalog {
        width: 100%;
    }
}


@media(max-width:1100px){

    .maquinas-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:900px){

    .internal-header{
        padding:110px 5% 35px;
    }

    .internal-header h1{
        font-size:44px;
    }

    .maquinas-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .popup__box{
        grid-template-columns:1fr;
    }

}

@media(max-width:600px){

    .catalogo{
        padding:15px 20px 70px;
    }

    .maquinas-grid{
        width:100%;
        grid-template-columns:1fr;
    }

    .internal-header{
        padding:100px 20px 30px;
    }

    .internal-header h1{
        font-size:38px;
    }

}