/* ===============================
   RESET
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===============================
   BODY BASE
================================ */
body {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    background: #f2f2f2;
    color: #333;
}

/* ===============================
   HEADER
================================ */
.header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.header-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;  /* centra visualmente */
    padding: 30px 40px;
    min-height: 160px;
}

.logo {
    position: absolute;
    left: 40px;
    width: 170px; /* antes 200 */
}

.logo img {
    width: 100%;
    max-height: 140px;
    object-fit: contain;
}


.titulo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 48px;          /* antes 56px */
    font-weight: 600;         /* antes 700 */
    color: #b30000;
    letter-spacing: 1.5px;    /* más elegante */
    white-space: nowrap;
    text-transform: uppercase;
}


/* ===============================
   MENÚ
================================ */
.menu {
    background: linear-gradient(135deg, #8b0000, #b30000);
    text-align: center;
    padding: 10px 0; /* antes 12px */
}
.menu a {
    color: #fff;
    margin: 0 20px;
    text-decoration: none;
    font-weight: 600;   /* antes bold */
    font-size: 15px;    /* antes 16 */
    letter-spacing: .5px;
}
.menu a:hover {
    color: #ffd700;
}
/* ===============================
   FOOTER
================================ */
.footer{
    background:#fff;
    padding:85px 60px 35px;
    font-family:'Open Sans', sans-serif;
}

/* ===============================
   CONTENEDOR
================================ */
.footer-container{
    max-width:1300px;
    margin:auto;
    display:grid;
    grid-template-columns:2.2fr 2fr 1.5fr 1.5fr 1.5fr;
    gap:55px;
}

/* ===============================
   COLUMNA LOGO
================================ */
.footer-logo{
    max-width:480px;   /* 🔥 MÁS ANCHO COMO GRAN FÁBRICA */
}

.footer-logo img{
    max-width:185px;
}

/* ===============================
   TEXTO LOGO (LIMPIO Y NATURAL)
================================ */
.footer-logo{
    max-width: 480px;
}

.footer-logo p{
    font-size:16px;
    line-height:1.7;
    color:#666;

    /* JUSTIFICADO */
    text-align: justify;

    /* ANCHO CONTROLADO */
    max-width: 440px;

    /* 🔥 CLAVE: QUITA LO “ESTIRADO” */
    word-spacing: -0.5px;      /* junta un poco palabras */
    letter-spacing: -0.1px;   /* micro ajuste fino */

    /* EVITA CORTES FEOS */
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;

    margin-top:14px;
}

.footer-logo p strong{
    font-weight:600;
}

/* ===============================
   TÍTULOS
================================ */
.footer-col h4{
    font-size:26px;
    font-weight:700;
    color:#000;
    margin-bottom:18px;
    letter-spacing:.3px;
}

/* ===============================
   LISTAS
================================ */
.footer-col ul{
    list-style:none;
    padding:0;
    margin:0;
}

.footer-col li{
    margin-bottom:8px;
}

/* ===============================
   TEXTO GENERAL
================================ */
.footer-col p,
.footer-col li,
.footer-col a{
    font-size:17px;
    line-height:1.8;
    color:#555;
}

.footer a{
    text-decoration:none;
    transition:color .25s ease;
}

.footer a:hover{
    color:#b30000;
}

/* ===============================
   REDES SOCIALES FOOTER
================================ */
.footer-redes{
    display:flex;
    gap:14px;
    margin-top:22px;
}

/* BOTÓN */
.footer-redes a{
    width:46px;
    height:46px;
    background:#000;
    border-radius:8px;

    display:flex;
    align-items:center;
    justify-content:center;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

/* ICONO */
.footer-redes a i{
    color:#fff;
    font-size:18px;
}

/* EFECTO GENERAL */
.footer-redes a:hover{
    transform:translateY(-4px);
    box-shadow:0 8px 18px rgba(0,0,0,.3);
}

/* FACEBOOK */
.footer-redes a:nth-child(1):hover{
    background:#1877f2;
}

/* INSTAGRAM */
.footer-redes a:nth-child(2):hover{
    background:linear-gradient(45deg,#f58529,#dd2a7b,#8134af);
}

/* CARRITO / TIENDA */
.footer-redes a:nth-child(3):hover{
    background:#000;
}

/* ===============================
   COPYRIGHT
================================ */

.footer-copy{
    text-align:center;
    margin-top:22px;
    padding-top:10px;
    font-size:14.5px;
    color:#888;               /* TODO gris */
}

/* SOLO el nombre en rojo */
.footer-copy .footer-marca{
    color:#b30000;            /* Rojo elegante */
    font-weight:600;
}


/* RESPONSIVE */
@media(max-width:600px){
    .footer-redes{
        justify-content:center;
    }
}

/* ===============================
   MÉTODOS DE PAGO
================================ */
.footer-pagos{
    max-width:1300px;
    margin:30px auto 0;
    padding-top:14px;
    border-top:1px solid #e5e5e5;

    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:24px;
}

/* CONTENEDOR INVISIBLE (MISMO TAMAÑO) */
.footer-pagos .pago-item{
    width:95px;
    height:42px;

    display:flex;
    align-items:center;
    justify-content:center;
}

/* IMÁGENES NORMALIZADAS */
.footer-pagos .pago-item img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    display:block;
    opacity:.95;
}

/* ===============================
   RESPONSIVE
================================ */
@media(max-width:600px){
    .footer-pagos{
        justify-content:center;
        flex-wrap:wrap;
        gap:18px;
    }

    .footer-pagos .pago-item{
        width:85px;
        height:36px;
    }
}

/* ===============================
   BOTÓN WHATSAPP FLOTANTE
================================ */
.whatsapp-float{
    position: fixed;
    bottom: 25px;
    right: 25px;

    width: 58px;
    height: 58px;

    background: #25d366;
    color: #fff;

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;
    text-decoration: none;

    box-shadow: 0 8px 20px rgba(0,0,0,.35);
    z-index: 9999;

    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}

/* Quitar línea del enlace */
.whatsapp-float,
.whatsapp-float:hover,
.whatsapp-float:visited,
.whatsapp-float:active{
    text-decoration: none !important;
}

/* Ícono */
.whatsapp-float i{
    color: #fff;
    line-height: 1;
}

/* Hover elegante */
.whatsapp-float:hover{
    background: #1ebe5d;
    transform: scale(1.12);
    box-shadow: 0 14px 28px rgba(0,0,0,.45);
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 1000px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .titulo {
        font-size: 42px;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .header-top {
        justify-content: center;
    }

    .titulo {
        position: static;
        transform: none;
        margin-top: 15px;
        font-size: 32px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float i {
        font-size: 24px;
    }
}

/* ===============================
   ICONOS HEADER – DISEÑO PRO
================================ */
.iconos{
    position:absolute;
    right:40px;
    display:flex;
    align-items:center;
    gap:14px;
}

/* Caja del icono */
.iconos a{
    width:40px;
    height:40px;
    border-radius:50%;
    background:#f5f5f5;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#333;
    font-size:16px;
    text-decoration:none;
    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease,
        color .25s ease;
}

/* Hover elegante */
.iconos a:hover{
    background:#b30000;
    color:#fff;
    transform:translateY(-2px);
    box-shadow:0 6px 14px rgba(0,0,0,.25);
}

/* ===============================
   CARRITO – CONTADOR
================================ */
.iconos .carrito{
    position:relative;
}

.iconos .carrito span{
    position:absolute;
    top:-5px;
    right:-5px;
    width:18px;
    height:18px;
    background:#b30000;
    color:#fff;
    font-size:11px;
    font-weight:600;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    border:2px solid #fff;
}

/* ===============================
   RESPONSIVE
================================ */
@media(max-width:900px){
    .iconos{
        right:20px;
    }

    .iconos a{
        width:36px;
        height:36px;
        font-size:15px;
    }
}

/* ===============================
   LOGIN HOVER HEADER (PRO)
================================ */

.login-hover{
    position: relative;
    display: inline-block;
}

/* Ícono */
.login-hover i{
    font-size: 18px;
    cursor: pointer;
}

/* Caja flotante */
.login-dropdown{
    position: absolute;
    top: 42px;
    right: 0;
    width: 300px;
    background: #fff;
    padding: 22px;
    border-radius: 6px;
    box-shadow: 0 15px 40px rgba(0,0,0,.25);

    /* Animación real */
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all .25s ease;

    z-index: 9999;
}

/* Mostrar (hover en icono O en la caja) */
.login-hover:hover .login-dropdown,
.login-dropdown:hover{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Título */
.login-dropdown h3{
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Labels */
.login-dropdown label{
    font-size: 13px;
    display: block;
    margin-bottom: 5px;
}

/* Inputs */
.login-dropdown input{
    width: 100%;
    padding: 9px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 14px;
    font-size: 14px;
}

/* Botón */
.login-dropdown button{
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 11px;
    font-weight: 600;
    cursor: pointer;
}

/* Recordarme */
.login-remember{
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-top: 10px;
}

/* ===============================
   ICONO LOGIN – MISMA ANIMACIÓN
================================ */

.icon-login{
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease, transform .25s ease;
    color: #111;
    text-decoration: none;
}

.icon-login:hover{
    background: #a40000;   /* mismo rojo */
    color: #fff;
    transform: scale(1.05);
}

/* ===============================
   LOGIN HOVER CON ANIMACIÓN SUAVE
================================ */

.login-hover{
    position: relative;
}

.login-dropdown{
    position: absolute;
    top: 45px;
    right: 0;
    width: 300px;
    background: #fff;
    padding: 22px;
    border-radius: 6px;
    box-shadow: 0 15px 40px rgba(0,0,0,.25);

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;

    z-index: 9999;
}
/* MINI CARRITO */

.mini-cart{
    position:fixed;
    top:90px;
    right:-420px;
    width:400px;
    background:white;
    box-shadow:0 25px 50px rgba(0,0,0,.2);
    transition:.35s ease;
    z-index:9999;
    border-radius:12px;
}

.mini-cart.show{
    right:20px;
}

.mini-cart-box{
    padding:22px;
}

.mini-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.mini-clear{
    font-size:13px;
    color:#888;
    text-decoration:none;
}

.mini-clear:hover{
    color:#b30000;
}

.mini-empty{
    text-align:center;
    padding:25px 0;
    color:#777;
}

.mini-item{
    display:flex;
    gap:15px;
    margin-bottom:18px;
    position:relative;
}

.mini-item img{
    width:75px;
    height:75px;
    object-fit:cover;
    border-radius:10px;
}

.mini-info{
    flex:1;
}

.mini-info strong{
    display:block;
    margin-bottom:6px;
    font-size:14px;
}

.mini-price{
    font-weight:bold;
    margin-bottom:8px;
}

.mini-controls{
    display:flex;
    align-items:center;
    gap:10px;
}

.mini-controls button{
    width:28px;
    height:28px;
    border:none;
    background:#eee;
    cursor:pointer;
    font-weight:bold;
    border-radius:6px;
}

.mini-remove{
    background:none;
    border:none;
    cursor:pointer;
    font-size:18px;
    color:#999;
}

.mini-remove:hover{
    color:#b30000;
}

.mini-total{
    display:flex;
    justify-content:space-between;
    margin:20px 0;
    font-size:17px;
}

.mini-total-precio{
    color:#b30000;
    font-weight:bold;
}

.mini-btn{
    display:block;
    text-align:center;
    padding:14px;
    margin-bottom:10px;
    text-decoration:none;
    font-weight:bold;
    border-radius:10px;
    transition:.3s;
}

.mini-btn.black{
    background:#111;
    color:white;
}

.mini-btn.red{
    background:#b30000;
    color:white;
}

.mini-btn:hover{
    opacity:.9;
}