/* ==========================================================================
   1. VARIABLES Y BASE
   ========================================================================== */
:root {
    --burgundy: #6b1414;
    --gold: #b8935a;
    --cream: #f8f6f2;
    --white: #ffffff;
    --text: #333333;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--cream);
    color: var(--text);
    line-height: 1.6;
}

/* ==========================================================================
   2. HEADER (CORREGIDO: image_ba6377)
   ========================================================================== */
.navbar {
    background: var(--white);
    height: 90px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.main-logo {
    height: 60px !important;
    /* Tamaño fijo para evitar desproporción */
    width: auto;
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--burgundy);
    font-weight: 900;
    line-height: 1;
}

.slogan {
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 700;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--gold);
}

.wa-pill {
    background: #25D366;
    color: white !important;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wa-pill img {
    height: 18px;
    filter: brightness(0) invert(1);
}

/* ==========================================
   MENU HAMBURGUESA - SIN JAVASCRIPT (LUMARA)
   ========================================== */

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 100;
}

.hamburger .bar {
    display: block;
    width: 22px;
    /* Más corta para ser minimalista */
    height: 2px;
    /* Más delgada */
    margin: 5px auto;
    background-color: #d4af37;
    transition: all 0.3s ease;
} 

/* --- MEDIA QUERY PARA CELULARES (DISEÑO MINIMALISTA Y SUAVE) --- */
@media screen and (max-width: 768px) {

    .main-slogan {
        display: none !important;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        right: 5%;
        width: 90%;

        /* Efecto Vidrio Premium (Glassmorphism) */
        background-color: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);

        border-radius: 20px;
        border: 1px solid rgba(212, 175, 55, 0.2);
        box-shadow: 0 10px 30px rgba(139, 90, 43, 0.15);

        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        gap: 25px;

        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 90;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* --- ARREGLO DE TIPOGRAFÍA (A SERIF) --- */
    .nav-links a {
        /* Esta es la clave: cambia 'uppercase' por 'capitalize' */
        text-transform: capitalize;

        /* También asegúrate de que el peso de la letra sea ligero */
        font-weight: 400;
    }



    /* Animación del botón hamburguesa */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}


/* ==========================================================================
   SECCION LUZ Y AROMA
   ========================================================================== */
.hero {
    background-image: url('imagenes/fondo.jpeg');
    /* 1. Esto soluciona el espacio blanco: obliga a la imagen a cubrir TODO el contenedor */
    background-size: cover;

    /* 2. Asegura que la imagen no se repita si el contenedor es más grande */
    background-repeat: no-repeat;

    /* 3. Centra la imagen para que lo más importante (la copa y flores) se mantenga a la vista */
    background-position: center center;

    min-height: 80vh;
    width: 100%;
    /* Asegura que el contenedor use todo el ancho */
    display: flex;
    align-items: center;
    padding: 60px 10%;
    color: var(--white);
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    color: #271904;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;


}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

/* ==========================================================================
   BOTONES  DE EXPLORAR TIENDA Y VER COLECCIÓN 
   ========================================================================== */

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: 0.3s;
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
}

.catalog .btn-gold {
    display: block;
    /* Lo vuelve bloque para poder centrarlo */
    width: fit-content;
    /* Ajusta el ancho al texto */
    margin: 50px auto 0;
    /* CENTRA solo este botón */
    padding: 10px 100px;
    /* Tamaño grande como en la imagen */
}



.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* IMÁGENES FLOTANTES (CORREGIDO: image_bb57b9) */
.hero-visual {
    flex: 1;
    position: relative;
    height: 450px;
    display: flex;
    justify-content: center;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.main-img {
    width: 300px;
    z-index: 2;
    top: 20px;
    right: 10%;
    transform: rotate(-3deg);
}

.sub-img {
    width: 200px;
    z-index: 3;
    bottom: 20px;
    left: 10%;
    transform: rotate(5deg);
}

.floating-card img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

/* ==========================================================================
   4. COLECCIONES / CATÁLOGO
   ========================================================================== */
.catalog {
    padding: 100px 5%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--burgundy);
    margin-bottom: 50px;
}

.categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.cat-img {
    height: 280px;
    background-size: cover;
    background-position: center;
}

.cat-info {
    padding: 30px;
}

.cat-info h3 {
    font-family: 'Playfair Display', serif;
    color: var(--burgundy);
    margin-bottom: 10px;
}

.btn-cat {
    display: inline-block;
    margin-top: 15px;
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid var(--gold);

}

.btn-vertodo {
    display: block;
    margin: 5px auto 30px auto;
    background: none;
    color: #BE9F64;
    padding: 5px 0;
    border: none;
    border-bottom: 2px solid #BE9F64;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s ease;
    width: fit-content;
    text-decoration: none;
}


/* ==========================================================================
   5. PEDIDO PERSONALIZADO
   ========================================================================== */
/* Asegura que el contenedor principal no corte el contenido */
.pedido {
    background: var(--white);
    padding: 80px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: auto;
    /* Permite que crezca según el contenido */
}

.formulario-personalizado {
    max-width: 600px;
    width: 100%;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    /* Espacio uniforme entre elementos */
}

.textarea-container {
    width: 100%;
    display: block;
}

#observaciones {
    width: 100%;
    min-height: 150px;
    /* Altura mínima para que no se vea a medias */
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
    resize: vertical;
    /* Solo permite estirar hacia abajo para no romper el layout */
    box-sizing: border-box;
    /* Asegura que el padding no agrande el ancho */
}

/* Estilo del botón de contacto */
.btn-contactanos {
    display: inline-block;
    background: #5E150F;
    /* Color vino de Lumara */
    color: white;
    padding: 15px 60px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.3s ease;
    margin-top: 10px;
}

.btn-contactanos:hover {
    background: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   6. FOOTER (image_b9f680)
   ========================================================================== */
.footer-lumara {
    background: var(--white);
    padding: 80px 5% 30px;
    border-top: 1px solid #eee;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    font-family: 'Playfair Display', serif;
    color: var(--burgundy);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
}

.social-row {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-item {
    width: 40px;
    height: 40px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-item img {
    width: 20px;
    filter: brightness(0) invert(1);
}

.footer-credits {
    text-align: center;
    margin-top: 60px;
    font-size: 0.8rem;
    color: #999;
}

/* ==========================================================================
   SOLUCIÓN DEFINITIVA PARA MÓVIL (LUMARA)
   ========================================================================== */
@media (max-width: 768px) {


    @media (max-width: 768px) {

        .category-selector-grid {
            grid-template-columns: 1fr !important;
            /* Una tarjeta por fila */
        }

        /* ESTO ES LO QUE PONE UNO SOBRE OTRO */
        .subcategoria-item div[style*="grid-template-columns"] {
            display: flex !important;
            flex-direction: column !important;
            /* Cambia de horizontal a vertical */
            gap: 12px !important;
            /* Espacio entre los desplegables */
        }

        /* Ajustamos los selects e inputs para que ocupen todo el ancho */
        .subcategoria-item select,
        .subcategoria-item input {
            width: 100% !important;
            /* Así el texto "¿Qué vela deseas?" ya no se corta */
            display: block !important;
            height: 45px !important;
            /* Más fácil de tocar en el celular */
        }

        /* Opcional: Centrar el número de cantidad */
        .subcategoria-item input[type="number"] {
            text-align: center;
        }
    }

    /* RETIRO DE IMAGENES PRINCIPALES RESPONSIVO*/
    .sub-img {
        width: 8px !important;
        height: 8px !important;
        background-color: rgba(184, 147, 90, 0.5) !important;
        /* Dorado suave */
        border-radius: 50% !important;
        border: none !important;
        box-shadow: none !important;
        position: relative !important;
        left: 15px !important;
        bottom: 0 !important;
        transform: none !important;
    }

    .floating-card img {
        display: none !important;
    }

    .floating-card {
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    /* --- COLECCIONES UNA SOBRE LA OTRA -- */
    .categories-container {
        grid-template-columns: 1fr !important;
        /* Una tarjeta por fila */
        gap: 20px;
    }

    .cat-img {
        height: 220px !important;
        /* Reduce la altura de la imagen de la vela */
    }

    .section-title {
        font-size: 2rem !important;
    }
}

/* RESET PARA EL SIDEBAR */
.sidebar-lumara {
    position: fixed !important;
    top: 0 !important;
    right: -450px !important;
    /* Escondido a la derecha */
    width: 400px !important;
    height: 100vh !important;
    background-color: #ffffff !important;
    z-index: 9999999 !important;
    /* Valor extremo para estar sobre todo */
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2) !important;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* --- CARRITO --- */

/* Contenedor de cada producto en el carrito */
.item-carrito {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}

.item-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    /* Bordes redondeados como la foto */
    background-color: #f9f9f9;
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.item-info h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    max-width: 180px;
}

.btn-eliminar {
    background: none;
    border: none;
    color: #ccc;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

/* Selector de aroma */
.select-aroma {
    width: 100%;
    padding: 8px;
    border: 1px solid #eee;
    border-radius: 5px;
    color: #666;
    font-size: 0.85rem;
    margin: 5px 0;
    outline: none;
}

.item-precio {
    color: #710909;
    /* Rojo Lumara */
    font-weight: 700;
    font-size: 1rem;
    margin: 5px 0;
}

.item-pie {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.label-cantidad {
    font-size: 0.85rem;
    color: #888;
}

/* Controles de cantidad exactos a la referencia */
.control-cantidad {
    display: flex;
    align-items: center;
    border: 1px solid #333;
    /* Borde oscuro fino */
    border-radius: 20px;
    padding: 2px 10px;
    gap: 15px;
}

.control-cantidad button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #710909;
    padding: 0;
    font-weight: 300;
}

.control-cantidad span {
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 15px;
    text-align: center;
}

.btn-pagar {
    width: 100%;
    background-color: #710909;
    /* Tu color vino */
    color: white;
    border: none;
    padding: 18px;
    border-radius: 35px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn-pagar:hover {
    background-color: #5a0707;
}

.sidebar-lumara-final {
    position: fixed;
    right: -400px;
    /* Escondido por defecto */
    top: 0;
    width: 380px;
    height: 100%;
    background: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    font-family: 'Segoe UI', sans-serif;
}

.sidebar-lumara-final.active {
    right: 0;
}

.header-carrito {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f2f2f2;
}

.header-carrito h2 {
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin: 0;
    color: #444;
}

#lista-carrito {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Estilo de cada Item */
.item-carrito {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #f8f8f8;
}

.img-carrito {
    width: 85px;
    height: 85px;
    border-radius: 12px;
    object-fit: cover;
}

/* Asegura que el contenedor info-item sea relativo */
.info-item {
    flex: 1;
    position: relative; /* Clave para posicionar la X */
    padding-right: 25px; /* Espacio para que el texto no choque con la X */
}

/* Título del producto */
.nombre-item {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

/* ESTILO DE LA X (Ubicar en esquina superior derecha) */
.eliminar-x {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.3rem; /* Tamaño de la X */
    color: #bbb; /* Color gris claro según la imagen */
    cursor: default; /* Clave: cursor de flecha predeterminada, no manito */
    line-height: 1;
}

/* El resto de estilos se mantienen igual para la armonía de la imagen */
.select-aroma {
    width: 100%;
    margin-bottom: 10px;
    padding: 6px;
    border: 1px solid #eee;
    border-radius: 5px;
    color: #666;
    font-size: 0.9rem;
}

.fila-inferior {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.precio-vino {
    color: #631414;
    font-weight: bold;
}

.capsula-cantidad {
    display: flex;
    align-items: center;
    border: 1px solid #d4b5b5;
    border-radius: 20px;
    padding: 2px 8px;
}

.capsula-cantidad button {
    background: none;
    border: none;
    color: #631414;
    font-weight: bold;
    cursor: pointer;
    padding: 0 5px;
}

.capsula-cantidad input {
    width: 25px;
    text-align: center;
    border: none;
    outline: none;
    font-weight: 600;
}
/* Footer */
.footer-sidebar {
    padding: 25px;
    border-top: 1px solid #f2f2f2;
}

.fila-subtotal {
    display: flex;
    justify-content: space-between;
    color: #999;
    margin-bottom: 10px;
}

.fila-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.btn-pagar {
    width: 100%;
    background: #631414;
    color: white;
    border: none;
    padding: 18px;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 1px;
}