/* =========================================================
   RESET Y ESTILOS GENERALES
========================================================= */

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

body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}


/* =========================================================
   BARRA DE NAVEGACIÓN
========================================================= */

nav {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;

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

    padding: 0 8%;

    background: #111;

    box-sizing: border-box;
    z-index: 1001;
}

.logo img {
    max-height: 60px;
    width: auto;
}


/* =========================================================
   MENÚ
========================================================= */

.menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.menu a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    position: relative;
    font-size: 1rem;
}

.menu a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -5px;

    width: 0%;
    height: 2px;

    background: #d4af37;

    transition: 0.3s;
}

.menu a:hover::after {
    width: 100%;
}


/* =========================================================
   ENLACES ESPECIALES
========================================================= */

.perfil-link {
    font-weight: bold;
    color: #d4af37 !important;
}

.perfil-link:hover {
    color: #fff !important;
    text-decoration: underline;
}

.btn-ingresar-nav {
    background-color: #d4af37;
    color: #111 !important;

    padding: 8px 16px;

    border-radius: 5px;

    font-weight: bold;
}


/* =========================================================
   CONTENEDOR NAV DERECHO
========================================================= */

.right-nav-mobile {
    display: flex;
    align-items: center;
    gap: 15px;
}


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

.carrito-dropdown-container {
    position: relative;
    display: inline-block;
}


/* =========================================================
   BOTÓN DEL CARRITO
========================================================= */

.carrito-link {
    position: relative;

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

    width: 42px;
    height: 42px;

    color: #ffffff;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

.carrito-link:hover {
    color: #d4af37;

    transform: translateY(-1px);
}


/* =========================================================
   ICONO SVG DEL CARRITO
========================================================= */

.mc-cart-icon {
    width: 26px;
    height: 26px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   CÍRCULO DEL CONTADOR
========================================================= */

.mc-cart-count {
    position: absolute;

    top: 1px;
    right: 0;

    width: 17px;
    height: 17px;

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

    background: #d4af37;

    color: #111;

    border-radius: 50%;

    font-size: 9px;
    font-weight: 700;
    line-height: 1;

    border: 2px solid #111;

    box-sizing: border-box;

    z-index: 5;

    pointer-events: none;
}


/* =========================================================
   MENÚ DESPLEGABLE DEL CARRITO
========================================================= */

.carrito-menu-flotante {
    display: none;

    position: absolute;

    right: 0;
    top: 100%;

    width: 300px;

    background-color: #ffffff !important;
    color: #333333 !important;

    box-shadow:
        0px 10px 25px rgba(0, 0, 0, 0.2);

    border-radius: 8px;

    padding: 15px;

    z-index: 9999;

    border: 1px solid #e0e0e0;
}

.carrito-dropdown-container:hover
.carrito-menu-flotante {
    display: block !important;
}


/* =========================================================
   TÍTULO DEL DROPDOWN
========================================================= */

.carrito-menu-flotante h4 {
    margin: 0 0 10px 0;

    font-size: 16px;

    border-bottom: 1px solid #eee;

    padding-bottom: 8px;

    color: #111;

    font-weight: bold;
}


/* =========================================================
   LISTA DE PRODUCTOS
========================================================= */

.carrito-items-lista {
    max-height: 240px;
    overflow-y: auto;
}


/* =========================================================
   ITEM FLOTANTE
========================================================= */

.item-flotante {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 10px;

    border-bottom: 1px solid #f2f2f2;

    padding: 10px 0;
}


/* =========================================================
   IMAGEN DEL ITEM
========================================================= */

.item-imagen {
    width: 55px;
    height: 55px;

    min-width: 55px;

    border-radius: 8px;

    overflow: hidden;

    background: #f5f5f5;

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

.item-imagen img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


/* =========================================================
   INFORMACIÓN DEL ITEM
========================================================= */

.item-info {
    flex: 1;
    min-width: 0;
}

.item-nombre {
    margin: 0 0 4px;

    font-weight: 600;

    color: #222;

    line-height: 1.2;
}

.item-precio {
    margin: 0;

    font-size: 13px;

    color: #666;
}


/* =========================================================
   CARRITO VACÍO
========================================================= */

.carrito-vacio {
    text-align: center;

    color: #777;

    font-size: 13px;

    padding: 15px 0;

    margin: 0;
}


/* =========================================================
   FOOTER DEL DROPDOWN
========================================================= */

.carrito-footer {
    border-top: 1px solid #eee;

    padding-top: 10px;

    margin-top: 5px;

    text-align: center;
}

.carrito-footer p {
    margin: 0 0 10px 0;

    font-size: 14px;

    color: #111;
}


/* =========================================================
   BOTÓN VER CARRITO
========================================================= */

.btn-ver-carrito {
    display: block;

    background-color: #d4af37;

    color: #fff !important;

    padding: 10px;

    border-radius: 6px;

    text-decoration: none;

    font-size: 13px;

    font-weight: bold;

    transition:
        background 0.3s ease;

    text-align: center;
}

.btn-ver-carrito:hover {
    background-color: #b89728;
}


/* =========================================================
   BOTÓN HAMBURGUESA
========================================================= */

.hamburguesa {
    display: none;

    flex-direction: column;

    justify-content: space-between;

    width: 30px;
    height: 21px;

    cursor: pointer;
}

.hamburguesa span {
    display: block;

    height: 3px;
    width: 100%;

    background-color: #d4af37;

    border-radius: 3px;

    transition: 0.3s;
}


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

.whatsapp-float {
    position: fixed;

    bottom: 30px;
    right: 30px;

    background-color: #25d366;

    color: white;

    width: 60px;
    height: 60px;

    border-radius: 50%;

    display: flex;

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

    box-shadow:
        0 5px 20px rgba(37, 211, 102, 0.4);

    z-index: 1000;

    transition: all 0.3s ease;

    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);

    background-color: #20ba5a;
}

@keyframes pulse-whatsapp {

    0% {
        box-shadow:
            0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow:
            0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(37, 211, 102, 0);
    }
}


/* =========================================================
   SISTEMA DE ALERTAS / TOAST
========================================================= */

.alert-container {
    position: fixed;

    top: 90px;
    right: 20px;

    z-index: 9999;

    display: flex;

    flex-direction: column;

    gap: 10px;

    max-width: 350px;
}

.alert-toast {
    background-color: #111111;

    color: #d4af37;

    padding: 15px 20px;

    border-radius: 8px;

    border-left: 4px solid #d4af37;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.3);

    font-size: 14px;

    font-weight: 500;

    animation:
        slideInRight 0.4s ease,
        fadeOut 0.4s ease 2.6s forwards;
}

@keyframes slideInRight {

    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}


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

.footer {
    background-color: #0b0b0b;

    color: #f1f1f1;

    padding-top: 60px;

    border-top: 4px solid #d4af37;

    font-family: inherit;
}

.footer-container {
    max-width: 1200px;

    margin: 0 auto;

    padding: 0 20px 40px 20px;

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(250px, 1fr)
        );

    gap: 40px;
}


/* =========================================================
   TÍTULOS FOOTER
========================================================= */

.footer-col h3 {
    color: #d4af37;

    font-size: 1.5rem;

    margin-bottom: 15px;
}

.footer-col h4 {
    color: #ffffff;

    font-size: 1.2rem;

    margin-bottom: 20px;

    position: relative;

    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';

    position: absolute;

    left: 0;
    bottom: 0;

    width: 35px;
    height: 2px;

    background-color: #d4af37;
}


/* =========================================================
   TEXTO FOOTER
========================================================= */

.footer-col p {
    color: #aaa;

    font-size: 0.95rem;

    line-height: 1.6;

    margin-bottom: 20px;
}


/* =========================================================
   LISTAS FOOTER
========================================================= */

.footer-col ul {
    list-style: none;

    padding: 0;

    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #bbb;

    text-decoration: none;

    transition:
        color 0.3s ease,
        padding-left 0.3s ease;
}

.footer-col ul li a:hover {
    color: #d4af37;

    padding-left: 5px;
}


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

.footer-contact-list li {
    display: flex;

    align-items: center;

    gap: 10px;

    color: #bbb;

    font-size: 0.95rem;
}

.footer-contact-list i {
    color: #d4af37;
}


/* =========================================================
   REDES SOCIALES
========================================================= */

.footer-socials {
    display: flex;

    gap: 12px;

    margin-top: 20px;
}

.social-icon {
    display: flex;

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

    width: 40px;
    height: 40px;

    background: #1a1a1a;

    color: #fff;

    border-radius: 50%;

    font-size: 1.1rem;

    transition: all 0.3s ease;

    text-decoration: none;

    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.3);
}

.social-icon.facebook:hover {
    background: #1877f2;
    transform: translateY(-3px);
}

.social-icon.instagram:hover {
    background:
        radial-gradient(
            circle at 30% 107%,
            #fdf497 0%,
            #df5914 45%,
            #c62984 60%,
            #833ab4 90%
        );

    transform: translateY(-3px);
}

.social-icon.tiktok:hover {
    background: #000000;

    border: 1px solid #fe2f75;

    transform: translateY(-3px);
}

.social-icon.whatsapp:hover {
    background: #25d366;

    transform: translateY(-3px);
}


/* =========================================================
   BOTÓN WHATSAPP FOOTER
========================================================= */

.btn-whatsapp-footer {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    background-color: #25d366;

    color: white !important;

    padding: 10px 18px;

    border-radius: 30px;

    font-weight: bold;

    text-decoration: none;

    transition:
        background 0.3s ease,
        transform 0.2s ease;

    box-shadow:
        0 4px 12px rgba(37, 211, 102, 0.3);

    margin-top: 5px;
}

.btn-whatsapp-footer:hover {
    background-color: #1ebd59 !important;

    transform: translateY(-2px);

    padding-left: 18px !important;
}


/* =========================================================
   COPYRIGHT
========================================================= */

.footer-bottom {
    background-color: #050505;

    text-align: center;

    padding: 20px 0;

    color: #666;

    font-size: 0.85rem;

    border-top: 1px solid #1f1f1f;
}


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

.footer-brand-col {
    max-width: 600px !important;
}

.footer-brand-header {
    display: flex;

    align-items: flex-start;

    gap: 15px;

    margin-bottom: 15px;
}

.footer-logo {
    width: 200px;

    height: auto;

    object-fit: contain;

    flex-shrink: 0;

    margin-top: 4px;
}

.footer-brand-header h3 {
    margin-bottom: 5px;

    font-size: 1.4rem;
}

.footer-brand-header p {
    margin-bottom: 0;

    font-size: 0.9rem;
}


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

@media (max-width: 900px) {

    .menu {
        gap: 20px;
    }
}


@media (max-width: 768px) {

    .logo img {
        height: 50px;
    }

    .hamburguesa {
        display: flex;
    }

    .menu {
        position: fixed;

        top: 0;
        right: -100%;

        width: 75%;
        height: 100vh;

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

        flex-direction: column !important;

        align-items: center;

        justify-content: center;

        gap: 25px !important;

        margin: 0 !important;

        transition:
            0.4s
            cubic-bezier(
                0.175,
                0.885,
                0.32,
                1.275
            );

        z-index: 999;

        box-shadow:
            -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .menu.active {
        right: 0;
    }

    .menu a {
        font-size: 20px;

        margin: 0 !important;
    }
}


/* =========================================================
   NAVBAR MÓVIL
========================================================= */

@media (max-width: 768px) {

    .hamburguesa {
        position: relative;

        z-index: 1101;
    }

    .hamburguesa.active span:nth-child(1) {
        transform:
            translateY(9px)
            rotate(45deg);
    }

    .hamburguesa.active span:nth-child(2) {
        opacity: 0;

        transform: scale(0);
    }

    .hamburguesa.active span:nth-child(3) {
        transform:
            translateY(-9px)
            rotate(-45deg);
    }

    .menu-overlay {
        position: fixed;

        inset: 0;

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

        opacity: 0;

        visibility: hidden;

        pointer-events: none;

        transition:
            opacity 0.3s ease,
            visibility 0.3s ease;

        z-index: 998;
    }

    .menu-overlay.active {
        opacity: 1;

        visibility: visible;

        pointer-events: auto;
    }

    .menu {
        z-index: 999;
    }

    body.menu-abierto {
        overflow: hidden;
    }
}


@media (min-width: 769px) {

    .menu-overlay {
        display: none !important;
    }
}


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

@media (max-width: 768px) {

    .footer {
        text-align: center;
    }

    .footer-container {
        width: 100%;

        grid-template-columns: 1fr;

        gap: 35px;

        padding:
            40px
            20px
            35px;

        margin: 0 auto;
    }

    .footer-col {
        width: 100%;

        max-width: 100%;

        margin: 0 auto;

        display: flex;

        flex-direction: column;

        align-items: center;
    }

    .footer-brand-col {
        max-width: 100% !important;
    }

    .footer-brand-header {
        width: 100%;

        justify-content: center;

        align-items: center;

        margin-bottom: 0;
    }

    .footer-logo {
        width: 180px;

        height: auto;

        margin: 0 auto;
    }

    .footer-col h3,
    .footer-col h4 {
        text-align: center;
    }

    .footer-col h3 {
        margin-bottom: 12px;
    }

    .footer-col h4 {
        margin-bottom: 18px;
    }

    .footer-col h4::after {
        left: 50%;

        transform:
            translateX(-50%);
    }

    .footer-col p {
        text-align: center;

        max-width: 400px;

        margin-left: auto;
        margin-right: auto;
    }

    .footer-socials {
        justify-content: center;

        align-items: center;

        width: 100%;

        margin-top: 15px;
    }

    .footer-col ul {
        width: 100%;

        text-align: center;
    }

    .footer-col ul li {
        text-align: center;
    }

    .footer-col ul li a {
        display: inline-block;
    }

    .footer-contact-list {
        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 12px;
    }

    .footer-contact-list li {
        justify-content: center;

        text-align: center;

        flex-wrap: wrap;
    }

    .btn-whatsapp-footer {
        margin-left: auto;

        margin-right: auto;
    }

    .footer-bottom {
        padding: 18px 15px;

        text-align: center;
    }

    .footer-bottom p {
        width: 100%;

        margin: 0;

        text-align: center;
    }
}


/* =========================================================
   CELULARES PEQUEÑOS
========================================================= */

@media (max-width: 480px) {

    .footer-container {
        padding:
            35px
            15px
            30px;

        gap: 30px;
    }

    .footer-logo {
        width: 165px;
    }

    .footer-col h3 {
        font-size: 1.3rem;
    }

    .footer-col h4 {
        font-size: 1.1rem;
    }

    .footer-col p {
        font-size: 0.9rem;

        line-height: 1.5;
    }

    .footer-contact-list li {
        font-size: 0.9rem;
    }

    .footer-socials {
        gap: 10px;
    }

    .social-icon {
        width: 38px;
        height: 38px;

        font-size: 1rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }
}