/* ==================== LEÑA QUITEÑA LA RONDA ==================== */
/* "Sabores auténticos de Quito" */
/* Colores: Verde Musgo #4A6741, Rojo Ladrillo #8B3A2A, Crema #F5ECD7 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Oswald:wght@300;400;500;600;700&family=Lato:wght@300;400;700;900&display=swap');

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

:root {
    --verde: #4A6741;
    --verde-claro: #5E7F55;
    --verde-oscuro: #354D2E;
    --rojo: #8B3A2A;
    --rojo-oscuro: #6D2C1F;
    --negro: #1A1208;
    --negro-suave: #221A0E;
    --gris-oscuro: #2E2418;
    --gris: #3D3020;
    --blanco: #F5ECD7;
    --crema: #EDE0C4;
    --crema-oscura: #D4C4A0;
    --verde-wa: #25D366;
    --sombra: rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Lato', sans-serif;
    background: #1A1208;
    min-height: 100vh;
    color: var(--blanco);
    line-height: 1.6;
    background-image:
        linear-gradient(rgba(12, 8, 4, 0.7), rgba(12, 8, 4, 0.7)),
        url('https://www.toptal.com/designers/subtlepatterns/uploads/dark_wood.png');
    background-attachment: fixed;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    background: transparent;
}

/* ==================== HEADER ==================== */
header {
    background: linear-gradient(180deg, rgba(26, 18, 8, 0.97) 0%, rgba(35, 26, 14, 0.93) 100%);
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--verde);
    box-shadow: 0 4px 30px rgba(74, 103, 65, 0.4);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(74, 103, 65, 0.6));
    animation: leafGlow 3s ease-in-out infinite;
    border-radius: 50%;
    border: 2px solid var(--verde);
}

@keyframes leafGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(74, 103, 65, 0.4));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 18px rgba(139, 58, 42, 0.5));
        transform: scale(1.02);
    }
}

.logo-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.9em;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1;
    text-transform: uppercase;
}

.nombre-lena {
    color: var(--blanco);
}

.nombre-q {
    color: var(--verde-claro);
    text-shadow: 0 0 12px rgba(74, 103, 65, 0.5);
}

.subtitulo {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95em;
    color: var(--rojo);
    letter-spacing: 6px;
    font-weight: 400;
    margin-top: 4px;
    font-style: italic;
}

.slogan {
    font-family: 'Lato', sans-serif;
    font-size: 0.72em;
    color: rgba(245, 236, 215, 0.55);
    font-style: italic;
    letter-spacing: 1.5px;
    margin-top: 5px;
}

.direccion {
    text-align: center;
    font-size: 0.85em;
    color: rgba(245, 236, 215, 0.65);
    margin-top: 15px;
    font-weight: 400;
}

/* ==================== REDES SOCIALES ==================== */
.redes-sociales {
    display: flex;
    gap: 12px;
}

.red-social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gris-oscuro);
    border: 2px solid var(--gris);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanco);
    transition: all 0.3s ease;
}

.red-social svg {
    width: 20px;
    height: 20px;
}

.red-social:hover {
    transform: translateY(-3px);
    border-color: var(--verde);
    color: var(--verde-claro);
    box-shadow: 0 5px 20px rgba(74, 103, 65, 0.4);
}

/* Botón Ayuda */
.btn-ayuda {
    background: linear-gradient(135deg, var(--verde-wa) 0%, #128C7E 100%);
    color: var(--blanco);
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 0.9em;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-ayuda:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

/* ==================== BUSCADOR ==================== */
.search-box {
    background: rgba(26, 18, 8, 0.92);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(74, 103, 65, 0.4);
    position: sticky;
    top: 138px;
    z-index: 99;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: var(--gris-oscuro);
    border: 1px solid var(--gris);
    border-radius: 25px;
    padding: 0 15px;
    gap: 10px;
    transition: all 0.3s ease;
}

.search-wrapper:focus-within {
    border-color: var(--verde);
    box-shadow: 0 0 15px rgba(74, 103, 65, 0.3);
}

.search-icon {
    font-size: 1em;
    opacity: 0.6;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 0;
    font-family: 'Lato', sans-serif;
    font-size: 0.95em;
    color: var(--blanco);
    outline: none;
}

.search-box input::placeholder {
    color: rgba(245, 236, 215, 0.4);
}

/* ==================== CATEGORÍAS ==================== */
.categorias-nav {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    overflow-x: auto;
    background: rgba(22, 15, 8, 0.92);
    border-bottom: 2px solid rgba(74, 103, 65, 0.4);
    position: sticky;
    top: 193px;
    z-index: 98;
}

.categorias-nav::-webkit-scrollbar {
    height: 4px;
}

.categorias-nav::-webkit-scrollbar-thumb {
    background: var(--verde);
    border-radius: 10px;
}

.cat-btn {
    padding: 10px 24px;
    background: transparent;
    border: 2px solid var(--gris);
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-size: 0.95em;
    font-weight: 500;
    color: var(--blanco);
    white-space: nowrap;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cat-btn:hover {
    border-color: var(--verde);
    color: var(--verde-claro);
}

.cat-btn.active {
    background: var(--verde);
    color: var(--blanco);
    border-color: var(--verde);
    box-shadow: 0 4px 15px rgba(74, 103, 65, 0.5);
}

/* ==================== SUBCATEGORÍAS ==================== */
.subcategorias-wrapper {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    overflow-x: auto;
    background: linear-gradient(180deg, rgba(40, 30, 18, 0.9) 0%, rgba(28, 20, 12, 0.9) 100%);
    position: sticky;
    top: 248px;
    z-index: 97;
    border-bottom: 1px solid rgba(74, 103, 65, 0.3);
}

.subcat-btn {
    padding: 8px 18px;
    background: transparent;
    border: 1px solid var(--rojo);
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85em;
    font-weight: 400;
    color: var(--rojo);
    white-space: nowrap;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subcat-btn:hover {
    background: rgba(139, 58, 42, 0.2);
}

.subcat-btn.active {
    background: var(--rojo);
    color: var(--blanco);
    box-shadow: 0 3px 12px rgba(139, 58, 42, 0.5);
}

/* ==================== PRODUCTOS - GRID ==================== */
#contenedorSecciones {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    padding: 20px;
    min-height: 300px;
}

/* Loading State */
.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.fire-loader {
    font-size: 3.5em;
    animation: fireFlicker 0.8s ease-in-out infinite alternate;
}

@keyframes fireFlicker {
    0% { transform: scale(1) rotate(-2deg); opacity: 1; }
    100% { transform: scale(1.1) rotate(2deg); opacity: 0.8; }
}

.loading-state p {
    margin-top: 15px;
    color: var(--verde-claro);
    font-family: 'Oswald', sans-serif;
    font-size: 1.2em;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.no-productos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: rgba(245, 236, 215, 0.6);
}

/* ==================== TARJETA DE PRODUCTO ==================== */
.producto-card {
    background: linear-gradient(180deg, rgba(46, 36, 24, 0.9) 0%, rgba(30, 22, 12, 0.95) 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(74, 103, 65, 0.4);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.producto-card:hover {
    transform: translateY(-5px);
    border-color: var(--verde-claro);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(74, 103, 65, 0.25);
}

.producto-imagen-wrapper {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: var(--negro);
}

.producto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.producto-card:hover .producto-img {
    transform: scale(1.1);
}

.producto-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--rojo);
    color: var(--blanco);
    padding: 3px 8px;
    border-radius: 12px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.6em;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.producto-contenido {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.producto-nombre {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95em;
    font-weight: 500;
    color: var(--blanco);
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-transform: uppercase;
}

.producto-descripcion {
    font-size: 0.7em;
    color: rgba(245, 236, 215, 0.6);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.producto-precio {
    font-family: 'Playfair Display', serif;
    font-size: 1.35em;
    font-weight: 700;
    color: var(--crema);
    margin-top: auto;
    text-shadow: 0 0 10px rgba(74, 103, 65, 0.3);
}

/* ==================== SELECTOR ACOMPAÑANTE ==================== */
.selector-acompanante {
    margin-top: 8px;
    padding: 10px;
    background: rgba(74, 103, 65, 0.12);
    border-radius: 8px;
    border: 1px solid var(--verde);
}

.selector-acompanante label {
    display: block;
    font-size: 0.7em;
    color: var(--verde-claro);
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.selector-acompanante select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--gris);
    border-radius: 5px;
    font-size: 0.8em;
    font-family: 'Lato', sans-serif;
    background: var(--gris-oscuro);
    color: var(--blanco);
    cursor: pointer;
}

.selector-acompanante select:focus {
    outline: none;
    border-color: var(--verde);
}

/* Controles de Cantidad */
.cantidad-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.btn-qty {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--verde);
    color: var(--blanco);
    font-size: 1.2em;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(74, 103, 65, 0.4);
}

.btn-qty:hover {
    transform: scale(1.1);
    background: var(--verde-claro);
}

.btn-qty:active {
    transform: scale(0.95);
}

.cantidad-num {
    width: 30px;
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.1em;
    color: var(--blanco);
}

/* ==================== OPCIONES MÚLTIPLES ==================== */
.opciones-lista {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.opcion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid var(--gris);
}

.opcion-info {
    display: flex;
    flex-direction: column;
}

.opcion-nombre {
    font-size: 0.75em;
    font-weight: 600;
    color: var(--blanco);
}

.opcion-precio {
    font-family: 'Playfair Display', serif;
    font-size: 1em;
    color: var(--crema);
    font-weight: 700;
}

.opcion-item .cantidad-box {
    margin-top: 0;
    gap: 5px;
}

.opcion-item .btn-qty {
    width: 26px;
    height: 26px;
    font-size: 1em;
}

.opcion-item .cantidad-num {
    width: 22px;
    font-size: 0.9em;
}

/* ==================== RESUMEN DE ORDEN ==================== */
.orden-resumen {
    background: linear-gradient(180deg, rgba(46, 36, 24, 0.95) 0%, rgba(28, 20, 10, 0.98) 100%);
    margin: 20px;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--verde);
    box-shadow: 0 0 30px rgba(74, 103, 65, 0.2);
}

.resumen-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4em;
    font-weight: 700;
    color: var(--crema);
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--gris);
}

.comentarios-box {
    margin-bottom: 20px;
}

.comentarios-box label {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9em;
    font-weight: 500;
    color: var(--blanco);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.comentarios-box textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gris);
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 0.9em;
    resize: vertical;
    background: var(--gris-oscuro);
    color: var(--blanco);
    transition: all 0.3s ease;
}

.comentarios-box textarea:focus {
    outline: none;
    border-color: var(--verde);
}

.totales {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1em;
    color: rgba(245, 236, 215, 0.8);
}

.total-row.total-final {
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid var(--verde);
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--crema);
    text-shadow: 0 0 15px rgba(74, 103, 65, 0.4);
}

.envio-pendiente {
    color: var(--rojo);
    font-style: italic;
    font-size: 0.85em;
}

/* ==================== FORMULARIO ==================== */
.form-pedido {
    background: linear-gradient(180deg, rgba(28, 20, 10, 0.97) 0%, rgba(18, 12, 6, 0.99) 100%);
    padding: 30px 20px;
    border-top: 3px solid var(--rojo);
}

.form-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6em;
    font-weight: 700;
    color: var(--crema);
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 25px;
}

.campo {
    margin-bottom: 18px;
}

.campo label {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9em;
    font-weight: 500;
    color: var(--verde-claro);
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.campo input,
.campo select,
.campo textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gris);
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 1em;
    background: var(--gris-oscuro);
    color: var(--blanco);
    transition: all 0.3s ease;
}

.campo input::placeholder,
.campo textarea::placeholder {
    color: rgba(245, 236, 215, 0.35);
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    outline: none;
    border-color: var(--verde);
    box-shadow: 0 0 15px rgba(74, 103, 65, 0.2);
}

.campo select option {
    background: var(--negro);
    color: var(--blanco);
}

.campo-ayuda {
    font-size: 0.8em;
    color: rgba(245, 236, 215, 0.45);
    margin-top: 6px;
}

/* Checkbox */
.checkbox-campo {
    margin-bottom: 18px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    color: var(--blanco);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--verde);
}

/* Geo Box */
.geo-box {
    background: rgba(74, 103, 65, 0.12);
    border: 1px solid var(--verde);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 18px;
}

.geo-box h4 {
    font-family: 'Oswald', sans-serif;
    color: var(--verde-claro);
    font-size: 1.1em;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.geo-descripcion {
    font-size: 0.85em;
    color: rgba(245, 236, 215, 0.65);
    margin-bottom: 15px;
}

.btn-ubicacion {
    width: 100%;
    padding: 14px;
    background: var(--verde);
    color: var(--blanco);
    border: none;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 1em;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 103, 65, 0.4);
}

.btn-ubicacion:hover {
    transform: translateY(-2px);
    background: var(--verde-claro);
    box-shadow: 0 6px 25px rgba(74, 103, 65, 0.5);
}

.btn-ubicacion:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.ubicacion-capturada {
    margin-top: 15px;
    padding: 15px;
    background: rgba(16, 185, 129, 0.15);
    border-left: 4px solid #10b981;
    border-radius: 8px;
}

.ubicacion-capturada p {
    color: #10b981;
    font-weight: 600;
    margin-bottom: 8px;
}

.ubicacion-capturada .distancia-info,
.ubicacion-capturada .envio-info {
    color: var(--blanco);
    font-weight: 400;
    margin-bottom: 5px;
}

.ubicacion-capturada strong {
    color: var(--crema);
}

.ubicacion-capturada a {
    color: var(--verde-claro);
    text-decoration: none;
    font-weight: 600;
}

/* Mensaje Pago */
.mensaje-pago {
    margin-bottom: 18px;
}

.pago-efectivo {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.pago-icon {
    font-size: 2em;
    display: block;
    margin-bottom: 10px;
}

.pago-efectivo strong {
    color: #10b981;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1em;
    letter-spacing: 1px;
}

.pago-detalle {
    font-size: 0.9em;
    color: rgba(245, 236, 215, 0.65);
    margin-top: 8px;
}

/* Transferencia Box */
.transferencia-box {
    background: rgba(74, 103, 65, 0.12);
    border: 1px solid var(--verde);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 18px;
}

.transferencia-box h4 {
    font-family: 'Oswald', sans-serif;
    color: var(--verde-claro);
    font-size: 1.1em;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.datos-banco {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.banco-item {
    padding: 10px 0;
    border-bottom: 1px dashed var(--gris);
}

.banco-item:last-of-type {
    border-bottom: none;
}

.banco-nombre {
    font-size: 0.9em;
    margin-bottom: 5px;
}

.banco-numero {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3em;
    color: var(--crema);
    letter-spacing: 2px;
}

.banco-titular {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--gris);
}

.banco-titular p {
    font-size: 0.9em;
    margin-bottom: 5px;
}

.preview-comprobante {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    margin-top: 10px;
}

.preview-comprobante p {
    color: #10b981;
    font-weight: 600;
    margin-bottom: 10px;
}

.preview-comprobante img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
}

/* Factura Box */
.factura-box {
    background: rgba(74, 103, 65, 0.12);
    border: 1px solid var(--verde);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 18px;
}

/* Botón Enviar */
.btn-enviar {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--rojo) 0%, var(--rojo-oscuro) 100%);
    color: var(--blanco);
    border: none;
    border-radius: 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2em;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(139, 58, 42, 0.5);
    margin-top: 10px;
}

.btn-enviar:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(139, 58, 42, 0.6);
}

.btn-icon {
    font-size: 1.3em;
}

.alerta-exito {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    border-radius: 10px;
    padding: 18px;
    margin-top: 15px;
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    color: #10b981;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== FOOTER ==================== */
footer {
    background: rgba(18, 12, 6, 0.99);
    padding: 30px 20px;
    text-align: center;
    border-top: 3px solid var(--verde);
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.footer-lena {
    color: var(--blanco);
}

.footer-q {
    color: var(--verde-claro);
    text-shadow: 0 0 15px rgba(74, 103, 65, 0.5);
}

.footer-ronda {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 0.4em;
    font-weight: 300;
    color: var(--rojo);
    letter-spacing: 8px;
    font-style: italic;
    margin-top: 2px;
}

.footer-desde {
    font-family: 'Lato', sans-serif;
    font-size: 0.8em;
    font-style: italic;
    color: rgba(245, 236, 215, 0.45);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.footer-direccion, .footer-telefono {
    font-size: 0.9em;
    color: rgba(245, 236, 215, 0.65);
    margin: 8px 0;
}

.footer-telefono a {
    color: var(--verde-claro);
    text-decoration: none;
    font-weight: 700;
}

.footer-telefono a:hover {
    color: var(--blanco);
}

.footer-redes {
    margin: 20px 0;
    font-size: 0.9em;
}

.footer-redes a {
    color: var(--verde-claro);
    text-decoration: none;
    margin: 0 5px;
}

.footer-redes a:hover {
    color: var(--blanco);
}

.footer-copy {
    font-size: 0.75em;
    color: rgba(245, 236, 215, 0.35);
    margin-top: 20px;
}

.footer-dev {
    font-size: 0.75em;
    color: rgba(245, 236, 215, 0.45);
    margin-top: 8px;
}

.footer-dev a {
    color: var(--verde-claro);
    text-decoration: none;
    font-weight: 600;
}

/* ==================== CARRITO FLOTANTE ==================== */
.carrito-flotante {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--rojo) 0%, var(--rojo-oscuro) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: var(--blanco);
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(139, 58, 42, 0.6);
    z-index: 1000;
    transition: all 0.3s ease;
    border: 2px solid var(--verde);
}

.carrito-flotante:hover {
    transform: scale(1.1);
}

.carrito-flotante span {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--verde);
    color: var(--blanco);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-family: 'Oswald', sans-serif;
    font-size: 0.5em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--negro);
}

/* ==================== WHATSAPP FLOTANTE ==================== */
.whatsapp-flotante {
    position: fixed;
    bottom: 25px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--verde-wa) 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-flotante svg {
    width: 32px;
    height: 32px;
    fill: var(--blanco);
}

.whatsapp-flotante:hover {
    transform: scale(1.1);
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 35px rgba(37, 211, 102, 0.7);
    }
}

/* ==================== UTILIDADES ==================== */
.oculto {
    display: none !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    header {
        padding: 10px 15px;
    }

    .header-top {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .logo-container {
        flex-direction: row;
        gap: 10px;
    }

    .logo {
        width: 50px;
        height: 50px;
    }

    .logo-text h1 {
        font-size: 1.3em;
    }

    .subtitulo {
        font-size: 0.7em;
        letter-spacing: 3px;
    }

    .slogan {
        display: none;
    }

    .direccion {
        margin-top: 5px;
        font-size: 0.7em;
    }

    .redes-sociales {
        order: 2;
    }

    .btn-ayuda {
        order: 3;
        width: 100%;
        justify-content: center;
        padding: 8px 15px;
        font-size: 0.8em;
    }

    .search-box {
        top: 115px;
    }

    .categorias-nav {
        top: 165px;
    }

    .subcategorias-wrapper {
        top: 220px;
    }

    #contenedorSecciones {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 15px;
    }

    .producto-imagen-wrapper {
        height: 100px;
    }

    .producto-contenido {
        padding: 10px;
    }

    .producto-nombre {
        font-size: 0.85em;
    }

    .producto-precio {
        font-size: 1.2em;
    }
}

@media (max-width: 400px) {
    #contenedorSecciones {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .producto-imagen-wrapper {
        height: 90px;
    }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--negro);
}

::-webkit-scrollbar-thumb {
    background: var(--verde);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--verde-claro);
}
