/* =====================================================
   DISADEC
   ESTILOS PRINCIPALES
===================================================== */


/* =====================================================
   VARIABLES
===================================================== */

:root {

    --verde-musgo: #395121;
    --verde-manzana: #8EA532;
    --bistre: #2F1C12;

    --blanco: #FFFFFF;
    --gris: #666666;
    --gris-claro: #F3F4F0;
    --gris-borde: #E5E7E1;

    --titulo: 'Poppins', sans-serif;
    --texto: 'Montserrat', sans-serif;

    --container: 1400px;

    --transition: .35s ease;

    --shadow: 0 15px 40px rgba(0,0,0,.10);
}


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--texto);
    font-weight: 300;
    color: var(--bistre);
    background: var(--blanco);
    overflow-x: hidden;
}

img {
    display: block;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

ul {
    list-style: none;
}


/* =====================================================
   CONTENEDOR
===================================================== */

.container {
    width: min(92%, var(--container));
    margin-inline: auto;
}


/* =====================================================
   TIPOGRAFÍA
===================================================== */

h1,
h2,
h3,
h4 {
    font-family: var(--titulo);
    font-weight: 600;
}

p {
    font-family: var(--texto);
    font-weight: 300;
    line-height: 1.8;
}


/* =====================================================
   HEADER
===================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 110px;

    background: rgba(255,255,255,.97);

    z-index: 9999;

    box-shadow: 0 3px 20px rgba(0,0,0,.06);
}

.header-container {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* LOGO */

.logo {
    width: 190px;
    flex-shrink: 0;
}

.logo img {
    width: 100%;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    margin-inline: auto;
}

.menu {
    display: flex;
    align-items: center;
    gap: 42px;
}

.menu > li {
    position: relative;
}

.menu > li > a {
    height: 106px;

    display: flex;
    align-items: center;
    gap: 8px;

    font-family: var(--titulo);
    font-size: 15px;
    font-weight: 600;

    color: var(--verde-musgo);

    transition: var(--transition);
}

.menu > li > a:hover {
    color: var(--verde-manzana);
}

.dropdown-link i {
    font-size: 10px;

    transition: var(--transition);
}

.dropdown:hover .dropdown-link i {
    transform: rotate(180deg);
}


/* =====================================================
   DROPDOWN
===================================================== */

.dropdown-menu {
    position: absolute;

    top: 100%;
    left: 0;

    width: 270px;

    background: var(--blanco);

    border-top: 3px solid var(--verde-manzana);

    box-shadow: var(--shadow);

    opacity: 0;
    visibility: hidden;

    transform: translateY(15px);

    transition: var(--transition);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid var(--gris-borde);
}

.dropdown-menu li:last-child {
    border-bottom: 0;
}

.dropdown-menu a {
    display: block;

    padding: 16px 20px;

    font-family: var(--texto);
    font-size: 14px;
    font-weight: 300;

    color: var(--bistre);

    transition: var(--transition);
}

.dropdown-menu a:hover {
    color: var(--blanco);
    background: var(--verde-musgo);
    padding-left: 28px;
}


/* =====================================================
   HEADER ACTIONS
===================================================== */

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-cta {
    padding: 13px 22px;

    font-family: var(--titulo);
    font-size: 12px;
    font-weight: 600;

    color: var(--blanco);
    background: var(--verde-musgo);

    transition: var(--transition);
}

.header-cta:hover {
    background: var(--verde-manzana);
}

.menu-button {
    display: none;

    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;

    color: var(--verde-musgo);

    font-size: 22px;
}

/* =========================================================
   HERO BLOG
========================================================= */

.blog-hero {

    position: relative;

    width: 100%;

    min-height: 500px;

    margin-top: 88px;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        var(--bistre);

}


/* =========================================================
   IMAGEN DEL HERO
========================================================= */

.blog-hero-image {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    background-image:
        url("../img/de2596b7-72cb-442e-afa5-7962953f4059.png");

    background-position:
        center center;

    background-repeat:
        no-repeat;

    background-size:
        cover;

    transform:
        scale(1.02);

}


/* =========================================================
   OVERLAY
========================================================= */

.blog-hero-overlay {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            rgba(47, 28, 18, .68),
            rgba(47, 28, 18, .30)
        );

}


/* =========================================================
   CONTENIDO
========================================================= */

.blog-hero-content {

    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 900px;

    padding:
        40px 24px;

    text-align: center;

    color:
        var(--blanco);

}


.blog-hero-content .hero-tag {

    display: inline-block;

    margin-bottom:
        18px;

    color:
        var(--blanco);

}


.blog-hero-content h1 {

    margin:
        0;

    color:
        var(--blanco);

    font-size:
        clamp(
            3rem,
            7vw,
            5.2rem
        );

    line-height:
        1.05;

    letter-spacing:
        1px;

}


.blog-hero-content p {

    max-width:
        600px;

    margin:
        15px auto 0;

    color:
        rgba(255,255,255,.88);

    font-size:
        20px;

    line-height:
        1.6;

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

    .blog-hero {

        min-height:
            380px;

        margin-top:
            80px;

    }

    .blog-hero-content h1 {

        font-size:
            clamp(
                2.5rem,
                10vw,
                4rem
            );

    }

    .blog-hero-content p {

        font-size:
            16px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 480px) {

    .blog-hero {

        min-height:
            340px;

        margin-top:
            75px;

    }

    .blog-hero-content {

        padding:
            30px 18px;

    }

    .blog-hero-content h1 {

        font-size:
            2.5rem;

    }

    .blog-hero-content p {

        font-size:
            15px;

    }

}


/* =========================================================
   BLOG SECTION
========================================================= */

.blog-section {

    padding:
        var(--space-xxl) 0;

    background:
        var(--blanco);
}


/* =========================================================
   SECTION HEADER
========================================================= */

.section-header {

    max-width:
        720px;

    margin:
        0 auto 55px;

    text-align:
        center;
}

.section-header h1 {

    margin-top: 25px;

}


.section-header h2 {

    margin-top:
        12px;

    font-size:
        clamp(
            2rem,
            4vw,
            3rem
        );
}


.section-header p {

    margin-top:
        15px;

    color:
        var(--gris-texto);

    font-size:
        20px;
}



/* =========================================================
   BLOG GRID
========================================================= */

.blog-grid {

    display:
        grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap:
        45px 25px;
}


/* =========================================================
   BLOG CARD
========================================================= */

.blog-card {

    background:
        var(--blanco);

    border:
        1px solid var(--gris-borde);

    transition:
        var(--transition);
}


.blog-card:hover {

    transform:
        translateY(-7px);

    box-shadow:
        var(--shadow-hover);
}


/* =========================================================
   IMAGEN BLOG
========================================================= */

.blog-image {

    position:
        relative;

    display:
        block;

    width:
        100%;

    height:
        220px;

    overflow:
        hidden;

    background:
        var(--gris-fondo);
}


.blog-image img {

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    transition:
        transform .6s ease;
}


.blog-card:hover
.blog-image img {

    transform:
        scale(1.06);
}


/* =========================================================
   CONTENIDO CARD
========================================================= */

.blog-content {

    padding:
        25px 24px 28px;
}


.blog-category {

    display:
        inline-block;

    margin-bottom:
        10px;

    font-family:
        var(--font-heading);

    font-size:
        .61rem;

    font-weight:
        600;

    letter-spacing:
        1.1px;

    text-transform:
        uppercase;

    color:
        var(--verde-manzana);
}


.blog-content h3 {

    font-size:
        1.12rem;

    line-height:
        1.4;
}


.blog-content h3 a {

    transition:
        var(--transition);
}


.blog-content h3 a:hover {

    color:
        var(--verde-musgo);
}


.blog-content p {

    margin-top:
        13px;

    color:
        var(--gris-texto);

    font-size:
        .82rem;

    line-height:
        1.8;
}


/* =========================================================
   LEER MÁS
========================================================= */

.read-more {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        9px;

    margin-top:
        20px;

    font-family:
        var(--font-heading);

    font-size:
        .63rem;

    font-weight:
        600;

    letter-spacing:
        .9px;

    color:
        var(--verde-musgo);

    transition:
        var(--transition);
}


.read-more i {

    font-size:
        .65rem;

    transition:
        var(--transition);
}


.read-more:hover {

    color:
        var(--verde-manzana);
}


.read-more:hover i {

    transform:
        translateX(5px);
}


/* =========================================================
   CTA BLOG
========================================================= */

.blog-cta {

    position: relative;

    width: 100%;

    min-height: 500px;

    display: flex;

    align-items: center;

    overflow: hidden;

    background:
        url("../img/portada4.png")
        center center / cover
        no-repeat;

}


/* =========================================================
   OVERLAY
========================================================= */

.blog-cta-overlay {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            rgba(47, 28, 18, .72) 0%,
            rgba(47, 28, 18, .50) 55%,
            rgba(47, 28, 18, .30) 100%
        );

}


/* =========================================================
   CONTENIDO
========================================================= */

.blog-cta-content {

    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 700px;

    padding: 80px 0;

}


/* =========================================================
   TITULO
========================================================= */

.blog-cta-content h2 {

    margin:
        12px 0 0;

    color:
        var(--blanco);

    font-family:
        var(--font-heading);

    font-size:
        clamp(
            2rem,
            4vw,
            3.4rem
        );

    line-height:
        1.1;

}


/* =========================================================
   TEXTO
========================================================= */

.blog-cta-content p {

    max-width:
        580px;

    margin:
        18px 0 0;

    color:
        rgba(255, 255, 255, .88);

    font-size:
        .92rem;

    line-height:
        1.8;

}


/* =========================================================
   BOTÓN
========================================================= */

.blog-cta-content .btn {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        50px;

    margin-top:
        28px;

    padding:
        0 28px;

    font-family:
        var(--font-heading);

    font-size:
        .65rem;

    font-weight:
        600;

    letter-spacing:
        .8px;

    color:
        var(--blanco);

    background:
        var(--verde-manzana);

    border-radius:
        var(--radius-sm);

    transition:
        background .3s ease,
        color .3s ease,
        transform .3s ease;

}


/* =========================================================
   HOVER
========================================================= */

.blog-cta-content .btn:hover {

    background:
        var(--blanco);

    color:
        var(--verde-musgo);

    transform:
        translateY(-3px);

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

    .blog-cta {

        min-height:
            450px;

    }

    .blog-cta-content {

        padding:
            70px 24px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 480px) {

    .blog-cta {

        min-height:
            420px;

    }

    .blog-cta-content {

        padding:
            60px 20px;

    }

    .blog-cta-content h2 {

        font-size:
            2rem;

    }

    .blog-cta-content p {

        font-size:
            .88rem;

    }

}


/* =========================================================
   WHATSAPP
========================================================= */

.whatsapp {

    position:
        fixed;

    right:
        25px;

    bottom:
        25px;

    z-index:
        900;

    width:
        56px;

    height:
        56px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    color:
        var(--blanco);

    background:
        #25D366;

    font-size:
        1.55rem;

    box-shadow:
        0 8px 25px rgba(0,0,0,.18);

    transition:
        var(--transition);
}


.whatsapp:hover {

    transform:
        translateY(-5px) scale(1.05);
}


/* =====================================================
   FOOTER
===================================================== */

.footer {

    width: 100%;

    padding:
        70px 0 0;

    background:
        var(--blanco);

    border-top:
        1px solid var(--gris-borde);
}


/* =====================================================
   FOOTER GRID
===================================================== */

.footer-grid {

    display: grid;

    grid-template-columns:
        1.5fr
        1fr
        1fr
        1fr;

    gap: 70px;

    padding-bottom: 60px;
}


/* =====================================================
   FOOTER BRAND
===================================================== */

.footer-brand img {

    width: 220px;

    margin-bottom: 20px;
}


.footer-brand p {

    max-width: 370px;

    color:
        var(--bistre);

    font-size: 18px;

    line-height: 1.7;
}


/* =====================================================
   FOOTER COLUMN
===================================================== */

.footer-column {

    display: flex;

    flex-direction: column;

    align-items: flex-start;
}


.footer-column h3 {

    margin-bottom: 25px;

    font-family: var(--titulo);

    font-size: 18px;

    font-weight: 600;

    color:
        var(--verde-musgo);
}


.footer-column a {

    margin-bottom: 11px;

    font-family: var(--texto);

    font-size: 18px;

    font-weight: 300;

    color:
        var(--bistre);

    transition:
        color var(--transition),
        transform var(--transition);
}


.footer-column a:hover {

    color:
        var(--verde-manzana);

    transform:
        translateX(6px);
}


.footer-column p {

    margin-bottom: 12px;

    font-size: 18px;

    color:
        var(--bistre);
}


/* =====================================================
   REDES SOCIALES
===================================================== */

.social-links {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 18px;
}


.social-links a {

    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0;

    border-radius: 50%;

    background:
        var(--verde-manzana);

    color:
        var(--blanco);

    font-size: 17px;

    transition:
        background var(--transition),
        transform var(--transition);
}


.social-links a:hover {

    background:
        var(--verde-musgo);

    color:
        var(--blanco);

    transform:
        translateY(-4px);
}


/* =====================================================
   FOOTER BOTTOM
===================================================== */

.footer-bottom {

    padding:
        23px 0;

    border-top:
        1px solid var(--gris-borde);

    text-align: center;
}


.footer-bottom p {

    font-family:
        var(--titulo);

    font-size: 13px;

    font-weight: 600;

    color:
        var(--verde-musgo);
}


/* =====================================================
   SCROLLBAR
===================================================== */

::-webkit-scrollbar {
    width: 9px;
}


::-webkit-scrollbar-track {

    background:
        #eeeeee;
}


::-webkit-scrollbar-thumb {

    background:
        var(--verde-musgo);

    border-radius:
        20px;
}


::-webkit-scrollbar-thumb:hover {

    background:
        var(--verde-manzana);
}


/* =====================================================
   SELECCIÓN
===================================================== */

::selection {

    background:
        var(--verde-musgo);

    color:
        var(--blanco);
}


/* =====================================================
   TABLET GRANDE
===================================================== */

@media (max-width: 1200px) {

    .menu {
        gap: 25px;
    }


    .menu > li > a {
        font-size: 14px;
    }


    .logo {
        width: 170px;
    }


    .productos-grid {

        grid-template-columns:
            repeat(3, 1fr);
    }


    .footer-grid {
        gap: 40px;
    }

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 992px) {

    .header {
        height: 95px;
    }


    .logo {
        width: 175px;
    }


    /* HEADER MOBILE */

    .menu-button {
        display: flex;
    }


    .header-cta {

        padding:
            11px 17px;

        font-size: 11px;
    }


    .navbar {

        position: fixed;

        top: 95px;
        left: -100%;

        width: 300px;

        height:
            calc(100vh - 95px);

        padding:
            25px;

        margin: 0;

        background:
            var(--blanco);

        box-shadow:
            10px 0 30px
            rgba(0, 0, 0, .10);

        transition:
            left var(--transition);

        overflow-y: auto;
    }


    .navbar.active {
        left: 0;
    }


    .menu {

        width: 100%;

        flex-direction: column;

        align-items: flex-start;

        gap: 0;
    }


    .menu > li {
        width: 100%;
    }


    .menu > li > a {

        width: 100%;

        height: auto;

        min-height: 55px;

        justify-content:
            space-between;

        border-bottom:
            1px solid var(--gris-borde);
    }


    /* DROPDOWN MOBILE */

    .dropdown-menu {

        position: static;

        width: 100%;

        border-top: 0;

        box-shadow: none;

        opacity: 1;

        visibility: visible;

        transform: none;

        display: none;
    }


    .dropdown:hover
    .dropdown-menu {

        display: none;
    }


    .dropdown.active
    .dropdown-menu {

        display: block;
    }


    .dropdown-menu a {

        padding:
            13px 15px;

        background:
            var(--gris-claro);
    }


    .dropdown-menu a:hover {

        padding-left:
            20px;
    }


    /* PRODUCTOS */

    .productos-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }


    /* FOOTER */

    .footer-grid {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 50px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .header {
        height: 85px;
    }


    .logo {
        width: 155px;
    }


    .header-cta {
        display: none;
    }


    .navbar {

        top: 85px;

        height:
            calc(100vh - 85px);
    }


    /* CATEGORY */

    .category-header {

        padding-top: 85px;

        min-height: 280px;
    }


    .category-header-content {

        padding:
            55px 0;
    }


    .category-header h1 {
        font-size: 38px;
    }


    .category-header p {
        font-size: 15px;
    }


    /* PRODUCTOS */

    .productos-section {

        padding-top: 55px;
    }


    .productos-grid {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 18px;
    }


    .producto-image {

        height: 220px;

        padding: 18px;
    }


    .producto-info {

        padding:
            18px 14px 20px;
    }


    .producto-info h2 {

        font-size: 15px;
    }


    /* FOOTER */

    .footer {
        padding-top: 55px;
    }


    .footer-grid {

        grid-template-columns:
            1fr;

        gap: 40px;

        padding-bottom: 45px;
    }


    .footer-brand img {
        width: 200px;
    }


    .footer-brand p {
        max-width: 100%;
    }

}


/* =====================================================
   MOBILE PEQUEÑO
===================================================== */

@media (max-width: 480px) {

    .container {
        width: 92%;
    }


    .category-header h1 {
        font-size: 32px;
    }


    .category-header p {
        font-size: 14px;
    }


    .productos-grid {

        grid-template-columns:
            1fr;

        gap: 20px;
    }


    .producto-image {
        height: 260px;
    }


    .producto-info h2 {
        font-size: 17px;
    }


    .pagination {
        padding-bottom: 55px;
    }


    .whatsapp {

        width: 50px;
        height: 50px;

        right: 18px;
        bottom: 18px;

        font-size: 25px;
    }


    .footer-bottom p {
        font-size: 11px;
    }

}


/* =====================================================
   ANIMACIÓN PRODUCTOS
===================================================== */

@keyframes productFade {

    from {

        opacity: 0;

        transform:
            translateY(20px);
    }

    to {

        opacity: 1;

        transform:
            translateY(0);
    }
}


.producto-card {

    animation:
        productFade .6s ease both;
}


.producto-card:nth-child(2) {
    animation-delay: .05s;
}


.producto-card:nth-child(3) {
    animation-delay: .10s;
}


.producto-card:nth-child(4) {
    animation-delay: .15s;
}


.producto-card:nth-child(5) {
    animation-delay: .20s;
}


.producto-card:nth-child(6) {
    animation-delay: .25s;
}


.producto-card:nth-child(7) {
    animation-delay: .30s;
}


.producto-card:nth-child(8) {
    animation-delay: .35s;
}


.producto-card:nth-child(9) {
    animation-delay: .40s;
}


.producto-card:nth-child(10) {
    animation-delay: .45s;
}


.producto-card:nth-child(11) {
    animation-delay: .50s;
}


.producto-card:nth-child(12) {
    animation-delay: .55s;
}