/* ==========================================================
   HEADER
========================================================== */

#header {

    transform:
        translateY(0);

}


#header.header-scrolled {

    background:
        rgba(255,255,255,.96);

    backdrop-filter:
        blur(20px);

    box-shadow:
        0 10px 40px rgba(0,0,0,.10);

    border-bottom-color:
        rgba(5,173,35,.20);

}


/* ==========================================================
   HEADER OCULTO AL BAJAR
========================================================== */

#header.header-hidden {

    transform:
        translateY(-100%);

}


/* ==========================================================
   LOGO
========================================================== */

.logo-wrapper {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

}


.logo-glow {

    position: absolute;

    width: 75%;
    height: 75%;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(5,173,35,.30),
            transparent 70%
        );

    filter:
        blur(15px);

    opacity:
        .65;

    animation:
        logoGlow
        3s ease-in-out infinite;

}


@keyframes logoGlow {

    0%,100% {

        transform:
            scale(.9);

        opacity:
            .45;

    }

    50% {

        transform:
            scale(1.2);

        opacity:
            .8;

    }

}


#main-logo {

    filter:
        drop-shadow(
            0 5px 8px rgba(0,0,0,.12)
        );

}


#main-logo:hover {

    transform:
        translateY(-3px)
        scale(1.05)
        rotateY(5deg);

    filter:
        drop-shadow(
            0 10px 15px rgba(5,173,35,.25)
        );

}


/* ==========================================================
   LOGO SHINE
========================================================== */

.logo-shine {

    position: absolute;

    top: -20%;

    left: -100%;

    width: 45%;
    height: 140%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.8),
            transparent
        );

    transform:
        skewX(-20deg);

    animation:
        logoShine
        5s ease-in-out infinite;

    z-index:
        20;

    pointer-events:
        none;

}


@keyframes logoShine {

    0%,55% {
        left: -100%;
    }

    75%,100% {
        left: 150%;
    }

}


/* ==========================================================
   MENÚ
========================================================== */

.nav-3d-link {

    font-size:
        25px;

}


/* ==========================================================
   BUSCADOR DESKTOP
========================================================== */

.header-search {

    width:
        235px;

    height:
        46px;

    margin-left:
        4px;

    margin-right:
        0;

    display:
        flex;

    align-items:
        center;

    background:
        rgba(255,255,255,.92);

    border:
        1px solid
        rgba(5,173,35,.18);

    border-radius:
        14px;

    box-shadow:
        0 5px 18px rgba(0,0,0,.06);

    overflow:
        visible !important;

    transition:
        width .35s ease,
        border-color .3s ease,
        box-shadow .3s ease,
        transform .3s ease;

    z-index:
        5000;

}


.header-search:focus-within {

    width:
        270px;

    border-color:
        rgba(5,173,35,.45);

    box-shadow:
        0 8px 25px rgba(5,173,35,.12);

    transform:
        translateY(-1px);

}


.header-search-input-wrapper {

    position:
        relative;

    flex:
        1;

    height:
        100%;

    min-width:
        0;

    display:
        flex;

    align-items:
        center;

}


.header-search-icon {

    position:
        absolute;

    left:
        14px;

    color:
        #8b948e;

    font-size:
        12px;

    pointer-events:
        none;

    z-index:
        2;

}


.header-search-input {

    flex:
        1;

    width:
        100%;

    height:
        100%;

    border:
        none;

    outline:
        none;

    background:
        transparent;

    padding:
        0 38px 0 36px;

    color:
        #374151;

    font-size:
        13px;

    font-weight:
        600;

}


.header-search-input::placeholder {

    color:
        #9ca3af;

    font-weight:
        500;

}


.header-search-input::-webkit-search-cancel-button {

    display:
        none;

}


/* ==========================================================
   BOTÓN LIMPIAR DESKTOP
========================================================== */

.header-search-clear {

    position:
        absolute;

    right:
        7px;

    top:
        50%;

    transform:
        translateY(-50%);

    width:
        24px;

    height:
        24px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        none;

    border-radius:
        50%;

    background:
        rgba(5,173,35,.08);

    color:
        #7b857e;

    cursor:
        pointer;

    z-index:
        5;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;

}


.header-search-clear:hover {

    background:
        rgba(5,173,35,.15);

    color:
        #047d1b;

    transform:
        translateY(-50%)
        scale(1.08);

}


.header-search-clear i {

    font-size:
        9px;

}


/* ==========================================================
   BOTÓN BUSCAR DESKTOP
========================================================== */

.header-search-button {

    width:
        44px;

    height:
        100%;

    flex-shrink:
        0;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        none;

    background:
        linear-gradient(
            135deg,
            #05ad23,
            #047d1b
        );

    color:
        white;

    cursor:
        pointer;

    transition:
        background .25s ease,
        transform .25s ease;

}


.header-search-button:hover {

    background:
        linear-gradient(
            135deg,
            #047d1b,
            #05ad23
        );

}


.header-search-button i {

    font-size:
        14px;

    transition:
        transform .25s ease;

}


.header-search-button:hover i {

    transform:
        scale(1.12)
        rotate(-8deg);

}


/* ==========================================================
   SUGERENCIAS DESKTOP
========================================================== */

.header-search-suggestions {

    position:
        absolute;

    top:
        calc(100% + 10px);

    left:
        0;

    width:
        100%;

    min-width:
        330px;

    background:
        rgba(255,255,255,.98);

    border:
        1px solid
        rgba(5,173,35,.13);

    border-radius:
        16px;

    overflow:
        hidden;

    box-shadow:
        0 20px 50px rgba(0,0,0,.13),
        0 5px 18px rgba(5,173,35,.06);

    backdrop-filter:
        blur(18px);

    z-index:
        99999;

    animation:
        headerSearchSuggestionsIn
        .18s ease;

}


@keyframes headerSearchSuggestionsIn {

    from {

        opacity:
            0;

        transform:
            translateY(-6px);

    }

    to {

        opacity:
            1;

        transform:
            translateY(0);

    }

}


.header-search-suggestions-content {

    padding:
        7px;

}


/* ==========================================================
   SUGERENCIA
========================================================== */

.header-search-suggestion {

    width:
        100%;

    display:
        flex;

    align-items:
        center;

    gap:
        10px;

    padding:
        9px;

    border:
        none;

    border-radius:
        11px;

    background:
        transparent;

    text-align:
        left;

    cursor:
        pointer;

    transition:
        background .2s ease,
        transform .2s ease;

}


.header-search-suggestion:hover,
.header-search-suggestion.active {

    background:
        rgba(5,173,35,.065);

}


.header-search-suggestion:hover {

    transform:
        translateX(2px);

}


/* ==========================================================
   IMAGEN
========================================================== */

.header-search-suggestion-image {

    width:
        44px;

    height:
        44px;

    min-width:
        44px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    overflow:
        hidden;

    border-radius:
        9px;

    background:
        linear-gradient(
            135deg,
            #f5faf5,
            #edf5ef
        );

    border:
        1px solid
        rgba(5,173,35,.08);

}


.header-search-suggestion-image img {

    width:
        100%;

    height:
        100%;

    object-fit:
        contain;

    transition:
        transform .25s ease;

}


.header-search-suggestion:hover
.header-search-suggestion-image img {

    transform:
        scale(1.07);

}


.header-search-suggestion-image i {

    color:
        #aab3ad;

    font-size:
        16px;

}


/* ==========================================================
   INFORMACIÓN
========================================================== */

.header-search-suggestion-info {

    flex:
        1;

    min-width:
        0;

}


.header-search-suggestion-name {

    color:
        #374151;

    font-size:
        12px;

    font-weight:
        800;

    line-height:
        1.3;

    white-space:
        nowrap;

    overflow:
        hidden;

    text-overflow:
        ellipsis;

}


.header-search-suggestion-name mark {

    background:
        rgba(5,173,35,.13);

    color:
        #047d1b;

    border-radius:
        3px;

    padding:
        1px 2px;

}


.header-search-suggestion-subtitle {

    margin-top:
        3px;

    color:
        #9ca3af;

    font-size:
        9px;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        .04em;

}


/* ==========================================================
   FLECHA
========================================================== */

.header-search-suggestion-arrow {

    color:
        #b0b8b3;

    font-size:
        9px;

    transition:
        color .2s ease,
        transform .2s ease;

}


.header-search-suggestion:hover
.header-search-suggestion-arrow,
.header-search-suggestion.active
.header-search-suggestion-arrow {

    color:
        #05ad23;

    transform:
        translateX(3px);

}


/* ==========================================================
   LOADING
========================================================== */

.header-search-loading {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        9px;

    padding:
        18px;

    color:
        #7b857e;

    font-size:
        11px;

    font-weight:
        700;

}


.header-search-spinner {

    width:
        15px;

    height:
        15px;

    border:
        2px solid
        rgba(5,173,35,.14);

    border-top-color:
        #05ad23;

    border-radius:
        50%;

    animation:
        headerSearchSpin
        .7s linear infinite;

}


@keyframes headerSearchSpin {

    to {
        transform:
            rotate(360deg);
    }

}


/* ==========================================================
   SIN RESULTADOS
========================================================== */

.header-search-empty {

    padding:
        18px 12px;

    text-align:
        center;

    color:
        #8c958f;

    font-size:
        11px;

    font-weight:
        600;

}


.header-search-empty i {

    display:
        block;

    margin-bottom:
        7px;

    color:
        #b7c0ba;

    font-size:
        17px;

}


/* ==========================================================
   VER TODOS
========================================================== */

.header-search-all {

    width:
        100%;

    padding:
        11px 9px;

    border:
        none;

    border-top:
        1px solid
        rgba(5,173,35,.08);

    background:
        transparent;

    color:
        #047d1b;

    font-size:
        10px;

    font-weight:
        800;

    text-align:
        center;

    cursor:
        pointer;

    transition:
        background .2s ease,
        color .2s ease;

}


.header-search-all:hover {

    background:
        rgba(5,173,35,.05);

    color:
        #05ad23;

}


/* ==========================================================
   DROPDOWN NOSOTROS
========================================================== */

#desktop-nosotros-container:hover
#desktop-nosotros-dropdown {

    opacity:
        1;

    visibility:
        visible;

    transform:
        translateY(0);

}


#desktop-nosotros-container:hover
#desktop-nosotros-arrow {

    transform:
        rotate(180deg);

}


.dropdown-item {

    display:
        flex;

    align-items:
        center;

    gap:
        12px;

    padding:
        11px;

    border-radius:
        13px;

    transition:
        transform .25s ease,
        background .25s ease;

}


.dropdown-item:hover {

    background:
        linear-gradient(
            90deg,
            rgba(240,253,244,.95),
            rgba(255,247,237,.95)
        );

    transform:
        translateX(5px);

}


.dropdown-item strong {

    display:
        block;

    color:
        #374151;

    font-size:
        13px;

}


.dropdown-item small {

    display:
        block;

    color:
        #9ca3af;

    font-size:
        10px;

    margin-top:
        2px;

}


.dropdown-icon {

    width:
        38px;

    height:
        38px;

    border-radius:
        11px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    flex-shrink:
        0;

}


/* ==========================================================
   PARTÍCULAS
========================================================== */

.header-particle {

    position:
        absolute;

    opacity:
        .18;

    pointer-events:
        none;

    user-select:
        none;

}


.particle-1 {

    left:
        7%;

    top:
        10%;

    font-size:
        17px;

    animation:
        floatHeader1
        7s ease-in-out infinite;

}


.particle-2 {

    left:
        23%;

    top:
        60%;

    font-size:
        18px;

    color:
        #05ad23;

    animation:
        floatHeader2
        5s ease-in-out infinite;

}


.particle-3 {

    left:
        42%;

    top:
        15%;

    font-size:
        15px;

    animation:
        floatHeader3
        8s ease-in-out infinite;

}


.particle-4 {

    left:
        58%;

    top:
        65%;

    font-size:
        20px;

    color:
        #fe6b00;

    animation:
        floatHeader1
        6s ease-in-out infinite;

}


.particle-5 {

    left:
        70%;

    top:
        15%;

    font-size:
        16px;

    animation:
        floatHeader2
        7s ease-in-out infinite;

}


.particle-6 {

    left:
        81%;

    top:
        55%;

    font-size:
        17px;

    color:
        #05ad23;

    animation:
        floatHeader3
        6s ease-in-out infinite;

}


.particle-7 {

    left:
        91%;

    top:
        20%;

    font-size:
        14px;

    animation:
        floatHeader1
        8s ease-in-out infinite;

}


.particle-8 {

    left:
        35%;

    top:
        70%;

    font-size:
        15px;

    color:
        #fe6b00;

    animation:
        floatHeader2
        5s ease-in-out infinite;

}


@keyframes floatHeader1 {

    0%,100% {

        transform:
            translate3d(0,0,0)
            rotate(0deg);

    }

    50% {

        transform:
            translate3d(10px,-12px,0)
            rotate(12deg);

    }

}


@keyframes floatHeader2 {

    0%,100% {

        transform:
            translate3d(0,0,0);

    }

    50% {

        transform:
            translate3d(-12px,-8px,0)
            scale(1.15);

    }

}


@keyframes floatHeader3 {

    0%,100% {

        transform:
            translate3d(0,0,0)
            rotate(0deg);

    }

    50% {

        transform:
            translate3d(8px,10px,0)
            rotate(-15deg);

    }

}


/* ==========================================================
   MENÚ MÓVIL
========================================================== */

.mobile-nav-link {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    padding:
        13px 16px;

    border-radius:
        13px;

    background:
        rgba(255,255,255,.90);

    border:
        1px solid
        rgba(229,231,235,.7);

    color:
        #374151;

    font-weight:
        800;

    box-shadow:
        0 3px 8px rgba(0,0,0,.04);

    transition:
        all .25s ease;

}


.mobile-nav-link:hover {

    transform:
        translateX(5px);

    background:
        linear-gradient(
            90deg,
            #f0fdf4,
            #fff7ed
        );

    color:
        #05ad23;

    box-shadow:
        0 6px 15px rgba(5,173,35,.10);

}


.mobile-sub-link {

    display:
        block;

    padding:
        9px 12px;

    border-radius:
        9px;

    font-size:
        13px;

    font-weight:
        700;

    color:
        #6b7280;

    transition:
        all .25s ease;

}


.mobile-sub-link:hover {

    background:
        #fff7ed;

    color:
        #fe6b00;

    transform:
        translateX(4px);

}


.mobile-menu-cart-count {

    min-width:
        23px;

    height:
        23px;

    padding:
        0 6px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    background:
        #fe6b00;

    color:
        white;

    font-size:
        11px;

    font-weight:
        900;

}


/* ==========================================================
   BUSCADOR MÓVIL
========================================================== */

.mobile-search {

    position:
        relative;

    width:
        100%;

    padding:
        12px 0 10px;

}


.mobile-search-box {

    position:
        relative;

    display:
        flex;

    align-items:
        center;

    width:
        100%;

    height:
        48px;

    background:
        rgba(255,255,255,.95);

    border:
        1px solid
        rgba(5,173,35,.18);

    border-radius:
        14px;

    box-shadow:
        0 5px 15px rgba(0,0,0,.05);

    overflow:
        visible;

}


.mobile-search-icon {

    margin-left:
        15px;

    color:
        #05ad23;

    font-size:
        14px;

    flex-shrink:
        0;

}


.mobile-search-box input {

    flex:
        1;

    min-width:
        0;

    height:
        100%;

    border:
        none;

    outline:
        none;

    background:
        transparent;

    padding:
        0 45px 0 10px;

    color:
        #374151;

    font-size:
        14px;

    font-weight:
        600;

}


.mobile-search-box input::placeholder {

    color:
        #9ca3af;

}


.mobile-search-box
input::-webkit-search-cancel-button {

    display:
        none;

}


.mobile-search-submit {

    height:
        100%;

    padding:
        0 16px;

    border:
        none;

    background:
        linear-gradient(
            135deg,
            #05ad23,
            #047d1b
        );

    color:
        white;

    font-size:
        12px;

    font-weight:
        800;

    cursor:
        pointer;

    border-radius:
        0 13px 13px 0;

}


/* ==========================================================
   LIMPIAR MÓVIL
========================================================== */

.mobile-search-clear {

    position:
        absolute;

    right:
        72px;

    top:
        50%;

    transform:
        translateY(-50%);

    width:
        25px;

    height:
        25px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        none;

    border-radius:
        50%;

    background:
        rgba(5,173,35,.08);

    color:
        #78827b;

    cursor:
        pointer;

    z-index:
        5;

}


.mobile-search-clear:hover {

    background:
        rgba(5,173,35,.15);

    color:
        #047d1b;

}


/* ==========================================================
   SUGERENCIAS MÓVILES
========================================================== */

.mobile-search-suggestions {

    position:
        absolute;

    top:
        calc(100% - 2px);

    left:
        0;

    right:
        0;

    background:
        rgba(255,255,255,.98);

    border:
        1px solid
        rgba(5,173,35,.12);

    border-radius:
        14px;

    overflow:
        hidden;

    box-shadow:
        0 18px 40px rgba(0,0,0,.12);

    z-index:
        99999;

}


.mobile-search-suggestions > div {

    padding:
        6px;

}


.mobile-search-suggestions
.header-search-suggestion {

    padding:
        8px;

}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1200px) {

    .header-search {

        width:
            210px;

    }

    .header-search:focus-within {

        width:
            235px;

    }

}


@media (max-width: 1023px) {

    .header-search {

        display:
            none !important;

    }

}


@media (max-width: 768px) {

    .header-particle {

        opacity:
            .10;

    }

    #company-name {

        font-size:
            1.7rem;

    }

    #company-tagline {

        display:
            none;

    }

    #main-logo {

        height:
            3.5rem;

    }

}


@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;

    }

}
