/* =====================================================
   WILFORT V2
   CSS PRINCIPAL
===================================================== */


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #080808;

    color: #ffffff;

    overflow-x: hidden;

}


a {

    text-decoration: none;

    color: inherit;

}


button,
input {

    font-family: inherit;

}


button {

    cursor: pointer;

}


img {

    max-width: 100%;

}


/* =====================================================
   COLORES WILFORT
===================================================== */

:root {

    --orange: #ff6500;

    --orange-light: #ff7b20;

    --orange-dark: #d95000;

    --black: #080808;

    --black-2: #0d0d0d;

    --black-3: #141414;

    --card: #151515;

    --border: #292929;

    --white: #ffffff;

    --gray: #a7a7a7;

    --gray-dark: #707070;

}


/* =====================================================
   CONTENEDOR GENERAL
===================================================== */

.page-container {

    width: 92%;

    max-width: 1450px;

    margin: 0 auto;

}


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

.header {

    width: 100%;

    height: 88px;

    background:
        rgba(5, 5, 5, 0.98);

    border-bottom:
        1px solid #202020;

    position: relative;

    z-index: 1000;

}


.header-container {

    width: 94%;

    max-width: 1550px;

    height: 100%;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 28px;

}


/* =====================================================
   LOGO
===================================================== */

.logo {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

}


.logo img {

    display: block;

    height: 130px;

    width: auto;

    object-fit: contain;

    transition:
        transform 0.25s ease,
        filter 0.25s ease;

}


.logo:hover img {

    transform: scale(1.03);

    filter:
        brightness(1.08);

}


/* =====================================================
   NAVEGACIÓN
===================================================== */

.nav {

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 30px;

}


.nav a {

    height: 100%;

    position: relative;

    display: flex;

    align-items: center;

    color: #d4d4d4;

    font-size: 14px;

    font-weight: 600;

    transition:
        color 0.2s ease;

}


.nav a:hover {

    color: #ffffff;

}


.nav a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: 0;

    width: 0;

    height: 3px;

    background:
        var(--orange);

    transition:
        width 0.25s ease;

}


.nav a:hover::after,
.nav a.active::after {

    width: 100%;

}


.nav a.active {

    color: #ffffff;

}


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

.header-actions {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 12px;

    flex-shrink: 0;

}


/* =====================================================
   BUSCADOR
===================================================== */

.search {

    width: 245px;

    height: 43px;

    display: flex;

    align-items: center;

    border:

        1px solid #313131;

    border-radius: 6px;

    background:

        #151515;

    overflow: hidden;

    transition:
        border-color 0.2s ease;

}


.search:focus-within {

    border-color:
        var(--orange);

}


.search input {

    flex: 1;

    min-width: 0;

    height: 100%;

    border: none;

    outline: none;

    background:
        transparent;

    color: #ffffff;

    padding:
        0 14px;

    font-size: 13px;

}


.search input::placeholder {

    color: #737373;

}


.search button {

    width: 45px;

    height: 100%;

    border: none;

    background:
        transparent;

    color: #ffffff;

    font-size: 15px;

    transition:
        color 0.2s ease;

}


.search button:hover {

    color:
        var(--orange);

}


/* =====================================================
   CARRITO
===================================================== */

.cart {

    width: 43px;

    height: 43px;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    border:

        1px solid #353535;

    border-radius: 6px;

    color:
        var(--orange);

    font-size: 17px;

    transition:
        0.2s ease;

}


.cart:hover {

    border-color:
        var(--orange);

    background:

        rgba(255, 101, 0, 0.08);

}


.cart span {

    width: 18px;

    height: 18px;

    position: absolute;

    top: -7px;

    right: -7px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        var(--orange);

    color: #ffffff;

    font-size: 10px;

    font-weight: 700;

}


/* =====================================================
   WHATSAPP
===================================================== */

.whatsapp {

    height: 43px;

    padding:
        0 17px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    border-radius: 6px;

    background:
        var(--orange);

    color: #ffffff;

    font-size: 13px;

    font-weight: 700;

    transition:
        0.2s ease;

}


.whatsapp i {

    font-size: 18px;

}


.whatsapp:hover {

    background:
        var(--orange-light);

    transform:
        translateY(-1px);

}


/* =====================================================
   BOTÓN MENÚ MOBILE
===================================================== */

.menu-toggle {

    width: 43px;

    height: 43px;

    display: none;

    align-items: center;

    justify-content: center;

    border:

        1px solid #353535;

    border-radius: 6px;

    background:
        transparent;

    color: #ffffff;

    font-size: 21px;

}


.menu-toggle:hover {

    border-color:
        var(--orange);

    color:
        var(--orange);

}




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

.btn-primary,
.btn-secondary {

    min-height: 51px;

    padding:
        0 25px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    border-radius: 5px;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 0.3px;

    transition:
        0.25s ease;

}


.btn-primary {

    background:
        var(--orange);

    color:
        #ffffff;

    border:

        1px solid var(--orange);

}


.btn-primary:hover {

    background:
        var(--orange-light);

    border-color:
        var(--orange-light);

    transform:
        translateY(-2px);

}


.btn-secondary {

    background:
        rgba(0, 0, 0, 0.4);

    color:
        #ffffff;

    border:

        1px solid #707070;

}


.btn-secondary:hover {

    color:
        var(--orange);

    border-color:
        var(--orange);

}




/* =====================================================
   FOOTER WILFORT
===================================================== */

.footer {

    width: 100%;

    background:
        linear-gradient(
            180deg,
            #080808 0%,
            #050505 100%
        );

    border-top:
        1px solid #252525;

}


/* CONTENEDOR PRINCIPAL */

.footer-container {

    width: 92%;

    max-width: 1450px;

    margin: auto;

    padding:
        65px 0 55px;

    display: grid;

    grid-template-columns:
        1.6fr 1fr 1.2fr 1.5fr 1fr;

    gap: 50px;

}


/* =====================================================
   LOGO / MARCA
===================================================== */

.footer-brand {

    max-width: 300px;

}


.footer-logo {

    display: inline-block;

    margin-bottom: 20px;

}


.footer-logo img {

    height: 65px;

    width: auto;

    display: block;

}


.footer-brand p {

    color:
        #8f8f8f;

    font-size: 13px;

    line-height: 1.7;

}


/* REDES */

.footer-social {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 22px;

}


.footer-social a {

    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid #333333;

    border-radius: 50%;

    color:
        #bdbdbd;

    font-size: 15px;

    transition:
        0.25s ease;

}


.footer-social a:hover {

    color:
        #ffffff;

    border-color:
        var(--orange);

    background:
        var(--orange);

    transform:
        translateY(-2px);

}


/* =====================================================
   COLUMNAS
===================================================== */

.footer-column h4 {

    color:
        #ffffff;

    font-size: 15px;

    margin-bottom: 22px;

    position: relative;

}


.footer-column h4::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -8px;

    width: 30px;

    height: 2px;

    background:
        var(--orange);

}


.footer-column ul {

    list-style: none;

}


.footer-column ul li {

    margin-bottom: 12px;

    color:
        #8f8f8f;

    font-size: 13px;

}


.footer-column ul li a {

    color:
        #8f8f8f;

    transition:
        color 0.2s ease,
        padding-left 0.2s ease;

}


.footer-column ul li a:hover {

    color:
        var(--orange);

    padding-left: 4px;

}


/* =====================================================
   CONTACTO
===================================================== */

.footer-contact ul li {

    display: flex;

    align-items: flex-start;

    gap: 11px;

}


.footer-contact ul li i {

    width: 17px;

    color:
        var(--orange);

    font-size: 14px;

    margin-top: 2px;

}


.footer-contact ul li span,
.footer-contact ul li a {

    line-height: 1.5;

}


/* =====================================================
   MÉTODOS DE PAGO CON LOGOS
===================================================== */

.payment-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* CAJA DE CADA MÉTODO */

.payment-logo-item {
    min-height: 68px;
    padding: 10px;

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

    background: #111111;
    border: 1px solid #292929;
    border-radius: 8px;

    overflow: hidden;

    transition: 0.25s ease;
}

.payment-logo-item:hover {
    border-color: var(--orange);
    transform: translateY(-2px);
    background: #161616;
}

/* CONFIGURACIÓN GENERAL DE LAS IMÁGENES */

.payment-logo-item img {
    display: block;
    width: auto;
    height: auto;

    object-fit: contain;
}

/* =====================================================
   TAMAÑO INDIVIDUAL DE CADA LOGO
===================================================== */

/* VISA */
.logo-visa {
    max-width: 58px;
    max-height: 34px;
}

/* MASTERCARD */
.logo-mastercard {
    max-width: 120px;
    max-height: 36px;
}

/* YAPE */
.logo-yape {
    max-width: 120px;
    max-height: 42px;
}

/* PLIN */
.logo-plin {
    max-width: 120px;
    max-height: 42px;
}
/* =====================================================
   FOOTER INFERIOR
===================================================== */

.footer-bottom {

    border-top:
        1px solid #1d1d1d;

    background:
        #030303;

}


.footer-bottom-container {

    width: 92%;

    max-width: 1450px;

    min-height: 65px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

}


.footer-bottom p {

    color:
        #666666;

    font-size: 11px;

}


.footer-bottom-links {

    display: flex;

    align-items: center;

    gap: 23px;

}


.footer-bottom-links a {

    color:
        #666666;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    transition:
        color 0.2s ease;

}


.footer-bottom-links a:hover {

    color:
        var(--orange);

}


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

@media (max-width: 1200px) {

    .footer-container {

        grid-template-columns:
            1.5fr 1fr 1fr 1.3fr;

    }


    .footer-container .footer-column:last-child {

        grid-column:
            2 / 4;

    }


    .payment-methods {

        grid-template-columns:
            repeat(4, 1fr);

    }

}


@media (max-width: 850px) {

    .footer-container {

        grid-template-columns:
            repeat(2, 1fr);

        gap:
            40px 30px;

    }


    .footer-brand {

        max-width: none;

    }


    .footer-container .footer-column:last-child {

        grid-column:
            auto;

    }


    .payment-methods {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


@media (max-width: 550px) {

    .footer-container {

        grid-template-columns:
            1fr;

        padding:
            50px 0 40px;

        gap:
            35px;

    }


    .footer-logo img {

        height: 55px;

    }


    .footer-column h4 {

        margin-bottom: 18px;

    }


    .payment-methods {

        grid-template-columns:
            repeat(4, 1fr);

    }


    .footer-bottom-container {

        min-height: auto;

        padding:
            20px 0;

        flex-direction: column;

        align-items: flex-start;

        gap:
            15px;

    }


    .footer-bottom-links {

        gap:
            15px;

        flex-wrap: wrap;

    }

}


@media (max-width: 400px) {

    .payment-methods {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


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

@media (max-width: 1200px) {
    .header-container {
        width: 96%;
        gap: 18px;
    }

    .nav {
        gap: 19px;
    }

    .search {
        width: 190px;
    }

    .logo img {
        height: 58px;
    }
}

@media (max-width: 950px) {
    .header {
        height: 72px;
    }

    .logo img {
        height: 53px;
    }

    .search {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        width: 100%;
        height: auto;
        position: absolute;
        top: 72px;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 15px 5% 25px;
        background: rgba(7, 7, 7, 0.99);
        border-top: 1px solid #232323;
        border-bottom: 1px solid #232323;
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        width: 100%;
        height: auto;
        padding: 15px 0;
        border-bottom: 1px solid #1c1c1c;
    }

    .nav a:last-child {
        border-bottom: none;
    }

    .nav a::after {
        display: none;
    }

    .nav a.active {
        color: var(--orange);
    }
}

@media (max-width: 600px) {
    .header {
        height: 66px;
    }

    .header-container {
        width: 94%;
    }

    .logo img {
        height: 45px;
    }

    .nav {
        top: 66px;
    }

    .whatsapp {
        width: 42px;
        height: 42px;
        padding: 0;
    }

    .whatsapp span {
        display: none;
    }

    .cart,
    .menu-toggle {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 400px) {
    .logo img {
        height: 39px;
    }

    .header-actions {
        gap: 7px;
    }

    .cart,
    .menu-toggle,
    .whatsapp {
        width: 38px;
        height: 38px;
    }
}



/* =====================================================
   WHATSAPP FLOTANTE
===================================================== */

.whatsapp-float {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 58px;
    height: 58px;

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

    background: #25D366;

    color: #ffffff;

    border-radius: 50%;

    font-size: 30px;

    z-index: 9999;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.35);

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


/* EFECTO HOVER */

.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.05);

    box-shadow:
        0 12px 30px rgba(37, 211, 102, 0.35);
}


/* =====================================================
   MENSAJE AL LADO
===================================================== */

.whatsapp-tooltip {
    position: absolute;

    right: 70px;

    width: max-content;

    padding: 9px 13px;

    background: #111111;

    color: #ffffff;

    border: 1px solid #333333;

    border-radius: 6px;

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

    opacity: 0;

    visibility: hidden;

    transform: translateX(8px);

    transition: 0.25s ease;

    pointer-events: none;
}


.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;

    visibility: visible;

    transform: translateX(0);
}


/* =====================================================
   ANIMACIÓN SUAVE
===================================================== */

.whatsapp-float::before {
    content: "";

    position: absolute;

    width: 100%;
    height: 100%;

    border-radius: 50%;

    background: rgba(37, 211, 102, 0.35);

    z-index: -1;

    animation: whatsappPulse 2s infinite;
}


@keyframes whatsappPulse {

    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.45);
        opacity: 0;
    }

    100% {
        transform: scale(1.45);
        opacity: 0;
    }

}


/* =====================================================
   CELULAR
===================================================== */

@media (max-width: 600px) {

    .whatsapp-float {
        right: 18px;
        bottom: 18px;

        width: 54px;
        height: 54px;

        font-size: 27px;
    }

    .whatsapp-tooltip {
        display: none;
    }

}
