/* ======================================================= */
/* 1. REINICIO BÁSICO Y CANDADO MAESTRO (Cero espacios blancos) */
/* ======================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100vw;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f6;
    color: #000000;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

/* ======================================================= */
/* 2. CINTILLO PROMOCIONAL SUPERIOR */
/* ======================================================= */
.top-promo-bar {
    background-color: #A68A36;
    color: #000000;
    padding: 12px 0;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 1000;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.promo-texto {
    display: inline-block;
    animation: moverIzquierdaDerecha 20s linear infinite;
}

@keyframes moverIzquierdaDerecha {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100vw); }
}

.top-promo-bar:hover .promo-texto {
    animation-play-state: paused;
}

/* ======================================================= */
/* 3. ENCABEZADO Y NAVEGACIÓN */
/* ======================================================= */
header {
    background-color: #000000;
    color: #f4f4f6;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-texto {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
    color: #ffffff;
}

.firma-logo {
    display: block;
    font-size: 0.4em;
    letter-spacing: 5px;
    font-weight: 300;
    color: #aaaaaa;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #aaaaaa;
}

.dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #000000;
    list-style: none;
    top: 100%;
    left: 0;
    min-width: 180px;
    padding: 10px 0;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li { margin: 0; padding: 10px 20px; }
.dropdown-menu a { font-size: 0.8rem; color: #888; }
.dropdown-menu a:hover { color: #ffffff; }

/* ======================================================= */
/* 4. SECCIÓN HERO (Presentación Vicente) */
/* ======================================================= */
.hero-sobre-mi {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    background-color: #f8f8f8;
    min-height: 80vh;
}

.caja-negra {
    background-color: #000000;
    color: #ffffff;
    max-width: 900px;
    padding: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

@keyframes latido {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

.logo-hero {
    max-width: 130px;
    margin-bottom: 40px;
    animation: latido 3s ease-in-out infinite;
}

.texto-sobre-mi p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #dddddd;
    text-align: justify;
}

.texto-sobre-mi strong {
    color: #ffffff;
    font-weight: bold;
    letter-spacing: 1px;
}

.btn-hero-blanco {
    display: inline-block;
    margin-top: 40px;
    padding: 15px 40px;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-hero-blanco:hover {
    background-color: #cccccc;
    transform: scale(1.05);
}

/* ======================================================= */
/* 5. CATÁLOGO DE PRODUCTOS */
/* ======================================================= */
.catalogo-seccion {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.encabezado-categoria {
    text-align: center;
    margin-bottom: 50px;
}

.encabezado-categoria h2 {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid #000;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.encabezado-categoria p {
    color: #666;
    font-style: italic;
}

.grid-catalogo {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 40px;
}

.producto-card {
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.producto-card:hover {
    transform: translateY(-10px);
}

.imagen-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f5f5f5;
    margin-bottom: 15px;
}

.imagen-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.producto-card:hover .imagen-container img {
    transform: scale(1.08); 
}

.info-producto h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.precio {
    color: #555;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.btn-agregar {
    background-color: transparent;
    color: #000;
    border: 1px solid #000;
    padding: 10px 30px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-agregar:hover {
    background-color: #000;
    color: #fff;
}

/* Estrellas de calificación */
.estrellas-container {
    margin: 5px 0 10px 0;
    font-size: 1.3rem;
    color: #cccccc;
    cursor: pointer;
}
.estrella { transition: color 0.2s; margin-right: 2px; }
.estrella:hover, .estrella.activa { color: #D4AF37; }

/* ======================================================= */
/* 6. MODALES, CARRITO Y CHECKOUT */
/* ======================================================= */
#overlay-carrito {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1999;
}
#overlay-carrito.oculto { display: none; }

#sidebar-carrito {
    position: fixed; top: 0; right: -400px;
    width: 400px; max-width: 100%; height: 100vh;
    background: #fff; z-index: 2000;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    display: flex; flex-direction: column;
    transition: right 0.4s ease;
}
#sidebar-carrito.abierto { right: 0; }

.carrito-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px; border-bottom: 1px solid #eee; background: #000; color: #fff;
}
#cerrar-carrito, #cerrar-checkout { font-size: 28px; cursor: pointer; }
#cerrar-carrito:hover, #cerrar-checkout:hover { color: #aaa; }

.carrito-body { flex-grow: 1; padding: 20px; overflow-y: auto; }

.item-sidebar {
    display: flex; align-items: center; margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0; padding-bottom: 15px;
}
.item-sidebar img { width: 70px; height: 70px; object-fit: cover; border-radius: 5px; margin-right: 15px; }
.item-detalles { flex-grow: 1; }
.item-detalles h4 { font-size: 0.9rem; margin-bottom: 5px; text-transform: uppercase;}
.item-detalles p { font-size: 0.9rem; color: #666; font-weight: bold; }

.controles-cantidad { display: flex; align-items: center; margin-top: 8px; }
.btn-cant { background: #eee; border: none; width: 25px; height: 25px; cursor: pointer; font-weight: bold; border-radius: 3px; }
.btn-cant:hover { background: #ccc; }
.num-cant { margin: 0 10px; font-size: 0.9rem; }

.carrito-footer { padding: 20px; border-top: 1px solid #eee; background: #fafafa; }
.totales { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.totales h3 { font-size: 1.2rem; }

.btn-principal { width: 100%; padding: 15px; background: #000; color: #fff; border: none; text-transform: uppercase; font-weight: bold; cursor: pointer; transition: 0.3s; letter-spacing: 1px;}
.btn-principal:hover { background: #333; }
.btn-secundario { width: 100%; padding: 12px; background: transparent; color: #000; border: 1px solid #000; text-transform: uppercase; cursor: pointer; margin-bottom: 10px; transition: 0.3s;}
.btn-secundario:hover { background: #f0f0f0; }
.btn-verde { background: #25D366; } .btn-verde:hover { background: #1ebe57; }
.mt-20 { margin-top: 20px; }

/* Modal Checkout */
#checkout-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 2500; display: flex; justify-content: center; align-items: center; }
#checkout-modal.checkout-oculto { display: none; }
.checkout-container { background: #fff; width: 90%; max-width: 500px; padding: 30px; border-radius: 8px; position: relative; max-height: 90vh; overflow-y: auto;}
.checkout-header { border-bottom: 2px solid #000; padding-bottom: 15px; margin-bottom: 20px; }
#cerrar-checkout { position: absolute; top: 15px; right: 20px; color: #000; }
.checkout-step { display: none; }
.checkout-step.activa { display: block; animation: latido 0.3s ease-out; }
.input-form { width: 100%; padding: 12px; margin-bottom: 12px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; }
.txt-ayuda { font-size: 0.85rem; color: #666; margin-bottom: 15px; }
.radio-label { display: block; margin-bottom: 10px; cursor: pointer; font-weight: bold;}
.select-pago { background: #f9f9f9; cursor: pointer; font-weight: bold; }

/* Toast Notificación Agregado */
#notificacion-toast {
    visibility: hidden; 
    min-width: 250px;
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    border-radius: 5px;
    padding: 15px 20px;
    position: fixed; 
    z-index: 3000; 
    left: 50%;
    bottom: 20px; 
    transform: translateX(-50%); 
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.4s, bottom 0.4s; 
}
#notificacion-toast.mostrar {
    visibility: visible;
    opacity: 1;
    bottom: 50px; 
}

/* Modal Compra Exitosa Minimalista */
#modal-exito {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 3000;
    display: flex; justify-content: center; align-items: center;
}
#modal-exito.modal-exito-oculto { display: none; }
.modal-exito-contenido {
    background: #ffffff; padding: 40px; border-radius: 4px;
    text-align: center; max-width: 400px; width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: deslizarArriba 0.4s ease-out;
}
.modal-exito-contenido h2 { color: #000; }
@keyframes deslizarArriba {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ======================================================= */
/* 7. MAPA, NEWSLETTER Y PIE DE PÁGINA (FOOTER) */
/* ======================================================= */
.mapa-container {
    max-width: 1000px;
    margin: 80px auto; 
    padding: 0 20px;
    text-align: center;
}

.mapa-container h2 {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.mapa-container p {
    color: #555;
    margin-bottom: 30px;
}

.mapa-responsive {
    overflow: hidden;
    position: relative;
    border: 2px solid #000; 
    border-radius: 8px; 
    box-shadow: 0px 10px 20px rgba(0,0,0,0.1); 
}

.newsletter-seccion {
    background-color: #111111;
    color: #ffffff;
    padding: 70px 20px;
    text-align: center;
    margin-top: 60px;
}

.newsletter-contenido { max-width: 600px; margin: 0 auto; }
.newsletter-contenido h2 { font-size: 2rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; color: #D4AF37; }
.newsletter-contenido p { color: #cccccc; margin-bottom: 30px; }
.form-newsletter { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.input-newsletter { padding: 15px 20px; flex-grow: 1; max-width: 350px; border: 1px solid #333; border-radius: 4px; background: #222; color: #ffffff; }
.btn-newsletter { padding: 15px 35px; background-color: #D4AF37; color: #000000; font-weight: bold; border: none; border-radius: 4px; cursor: pointer; text-transform: uppercase; transition: 0.3s; }
.btn-newsletter:hover { background-color: #b5952f; }

footer {
    background-color: #000000;
    color: #ffffff;
    padding: 60px 20px 20px;
    margin-top: 80px;
    border-top: 3px solid #333; 
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

footer h4 { font-size: 1.2rem; letter-spacing: 2px; margin-bottom: 20px; text-transform: uppercase; }
footer p { color: #aaaaaa; font-size: 0.95rem; line-height: 1.8; margin-bottom: 10px; }

.link-contacto { color: #ffffff; text-decoration: none; transition: color 0.3s ease; }
.link-contacto:hover { text-decoration: underline; color: #cccccc; }
.link-whatsapp { color: #25D366; text-decoration: none; font-weight: bold; transition: transform 0.3s ease, color 0.3s ease; display: inline-block; }
.link-whatsapp:hover { color: #1ebe57; transform: scale(1.05); }

.redes-sociales { display: flex; flex-direction: column; gap: 10px; }
.redes-sociales a { color: #ffffff; text-decoration: none; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; display: inline-block; width: fit-content; }
.redes-sociales a:hover { color: #aaaaaa; padding-left: 5px; }

.footer-bottom { text-align: center; margin-top: 60px; padding-top: 20px; border-top: 1px solid #222; }
.footer-bottom p { font-size: 0.75rem; letter-spacing: 1px; margin: 0; }

/* ======================================================= */
/* 8. BOTONES FLOTANTES ALINEADOS (WHATSAPP, CARRITO, SUBIR) */
/* ======================================================= */

/* Base: El botón verde de WhatsApp */
.whatsapp-flotante {
    position: fixed;
    bottom: 30px;
    right: 30px; /* Aquí nace la alineación */
    background-color: #25D366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 2000;
    transition: transform 0.3s ease;
}

.whatsapp-flotante:hover { transform: scale(1.1); }

/* Los botones negros flotantes */
.btn-flotante-extra {
    position: fixed;
    right: 37px; /* Alineación milimétrica exacta al centro del WhatsApp */
    width: 50px;
    height: 50px;
    background-color: #000;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-flotante-extra:hover {
    background-color: #333;
    transform: scale(1.1); 
}

.flotante-carrito { bottom: 115px; }
.flotante-subir { bottom: 180px; }

.badge-flotante {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #fff;
    color: #000;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 6px;
    border: 1px solid #000;
}

/* ======================================================= */
/* 9. ADAPTACIÓN PARA CELULARES (¡Limpio y Único!) */
/* ======================================================= */
@media screen and (max-width: 850px) {
    /* Menú y Encabezado */
    header { padding: 10px 5px; }
    nav { flex-direction: column; align-items: center; gap: 8px; }
    .logo-texto { font-size: 1.5rem; text-align: center; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; width: 100%; }
    .nav-links li { margin-left: 0; }
    .nav-links li a { font-size: 0.75rem; padding: 5px; }
    .promo-texto { font-size: 0.65rem; }

    /* Caja de "Sobre mí" */
    .hero-sobre-mi { padding: 20px 10px; }
    .caja-negra { width: 100%; padding: 20px 15px; }
    .logo-hero { max-width: 100px; margin-bottom: 15px; }
    .texto-sobre-mi p { font-size: 0.85rem; line-height: 1.4; }
    .btn-hero-blanco { font-size: 0.8rem; padding: 10px 15px; width: 100%; }

    /* Catálogo en 2 columnas */
    .catalogo-seccion { padding: 30px 10px; }
    .grid-catalogo { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0; }
    .info-producto h3 { font-size: 0.8rem; margin-bottom: 5px; }
    .precio { font-size: 0.85rem; }
    .btn-agregar { font-size: 0.75rem; padding: 8px 5px; }

    /* Modales adaptados */
    #sidebar-carrito { width: 100%; }
    .checkout-container { width: 100%; height: 100vh; border-radius: 0; overflow-y: auto; }
    .checkout-step h3 { font-size: 1.1rem; }

    /* Footer vertical y Newsletter */
    .footer-container { flex-direction: column !important; align-items: center; text-align: center; gap: 30px; padding: 20px 15px; }
    .footer-container .columna { width: 100%; padding: 0; margin: 0; }
    .form-newsletter { flex-direction: column; gap: 15px; width: 100%; padding: 0 15px; box-sizing: border-box; }
    .input-newsletter, .btn-newsletter { width: 100%; box-sizing: border-box; }

    /* Botones flotantes (Alineación para móvil) */
    .whatsapp-flotante { width: 55px; height: 55px; right: 15px; bottom: 20px; }
    .btn-flotante-extra { width: 45px; height: 45px; right: 20px; }
    .flotante-carrito { bottom: 90px; }
    .flotante-subir { bottom: 145px; }
}
/* --- REDES SOCIALES (VERSIÓN COLORES OFICIALES) --- */
.redes-official-colors {
    display: flex;
    flex-direction: column; /* Apila el título sobre los iconos */
    align-items: center; /* Centra todo horizontalmente */
    text-align: center;
}

.titulo-social {
    color: #ffffff; /* Color del título "Síguenos en" */
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300; /* Aesthetic minimalista */
    margin-bottom: 25px; /* Espacio antes de los iconos */
}

.lista-iconos {
    display: flex;
    justify-content: center;
    gap: 30px; /* Separación entre iconos */
}

.icono-social {
    display: inline-block;
    width: 28px; /* Un poco más grandes para que luzcan los colores */
    height: 28px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.icono-social svg {
    width: 100%;
    height: 100%;
    /* No usamos 'fill: currentColor' aquí, ya que los colores están en el SVG */
}

.icono-social:hover {
    transform: translateY(-5px); /* Pequeño salto aesthetic */
    filter: brightness(110%); /* Brillo sutil para interacción de lujo */
}