* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: #f2f2f2;
    color: #1a1a1a;
}

/* NAVBAR */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img img {
    height: 42px;
}

.nav-links a {
    margin: 0 12px;
    text-decoration: none;
    font-weight: 600;
    color: #0a1f44;
}

.btn-consulta {
    background: #0a7c12;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

/* LAYOUT */
.layout {
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 30px;
}

/* SIDEBAR */
.sidebar {
    background: #9ac232;
    border-radius: 18px;
    padding: 15px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;

    position: sticky;
    top: 40px;
    height: fit-content;
}

.side-btn {
    width: 100%;
    background: #E8F0F9;
    border-radius: 6px;
    padding: 2px 2px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: 0.25s;
}

.side-btn img {
    width: 48px;
}

/*.side-btn span {
    font-size: 11px;
    font-weight: 600;
    color: #0a1f44;
}
*/
/*.side-btn:hover {
    background: #0a1f44;
}

/*.side-btn:hover span {
    color: #ffffff;
}

.side-btn:hover img {
    filter: brightness(0) invert(1);
}
*/
/* PRODUCTS */
.products h1 {
    font-size: 28px;
    color: #0a1f44;
    margin-bottom: 30px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.card {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    text-align: center;
}

.card img {
    width: 140px;
    margin-bottom: 15px;
}

.card h2 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #0a1f44;
}

.card p {
    font-size: 13px;
    color: #333;
}

/* HOVER CARDS PRODUCTOS */
.card {
    transition: 
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}
/* LÍNEA DIVISORIA ENTRE IMAGEN Y TÍTULO */
.card img {
    width: 140px;
    margin-bottom: 18px;
    position: relative;
}

/* Línea */
.card img::after {
    content: "";
    display: block;
    width: 60%;
    height: 2px;
    background-color: #9ac232; /* verde Findling */
    margin: 14px auto 0 auto;
}


/* BOTÓN VOLVER ARRIBA */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #0a1f44;
    padding: 12px;
    border-radius: 50%;
    z-index: 999;
}

.back-to-top img {
    width: 28px;
}

/* FOOTER */

.footer-catalogo {
    background: #061B49;
    color: #eee;
    padding: 20px 20px 30px;
    margin-top: 80px;
    font-family: 'Montserrat', sans-serif;
}

.footer-catalogo-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.footer-catalogo-content h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 700;
}

.footer-catalogo-content p {
    font-size: 18px;
    line-height: 1.5;
    color: #cccccc;
    margin-bottom: 15px;
}

.footer-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 30px;
    background: #25D366;
    color: #111;
    font-weight: 700;
    text-decoration: none;
    border-radius: 30px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.footer-btn:hover {
    background: #1ebe5b;
    transform: translateY(-2px);
}

.footer-copy {
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
    color: #777;
}

/* MOBILE */
@media (max-width: 768px) {

    /* LAYOUT */
    .layout {
        grid-template-columns: 1fr;
        margin: 20px auto;
    }

    /* NAVBAR */
    .nav-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .nav-container h1 {
        font-size: 18px;
        line-height: 1.3;
        font-weight: 700;
    }

    .logo-img img {
        height: 36px;
    }

    .btn-consulta {
        font-size: 14px;
        padding: 8px 16px;
    }

    /* SIDEBAR */
    .sidebar {
        position: relative;
        flex-direction: row;
        overflow-x: auto;
        width: 100%;
        padding: 10px;
        gap: 10px;
    }

    .side-btn {
        min-width: 70px;
    }

    .side-btn img {
        width: 40px;
    }

    /* PRODUCTOS */
    .products h1 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        padding: 16px;
    }

    .card img {
        width: 110px;
        margin-bottom: 14px;
    }

    .card h2 {
        font-size: 15px;
        line-height: 1.3;
    }

    .card p {
        font-size: 12px;
    }

    /* FOOTER */
    .footer-catalogo-content h3 {
        font-size: 20px;
    }

    .footer-catalogo-content p {
        font-size: 15px;
        line-height: 1.5;
    }

    .footer-btn {
        font-size: 15px;
        padding: 12px 26px;
    }

    .footer-copy {
        font-size: 12px;
    }
}
