/* estiloSARI.css - Minimalista para marca de ropa con colores: #5AB27C, #FAF6E9, #BF964A y tipografías Marcellus / Now */
/* Incluye estilos para menú, carrusel, tarjetas, modal, drawer lateral funcional y todos los componentes */

/* === IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Now:wght@300;400;500;600;700&display=swap');

/* === RESET Y BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Now', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #FAF6E9;
    color: #1a1a1a;
    min-height: 100vh;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.logo-text, .header-text h1, .modal-title, .product-title-mini,
.menu-titulo, .banner-titulo, .drawer-titulo {
    font-family: 'Marcellus', serif;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* === HEADER === */
.header {
    background: #FAF6E9;
    color: #1a1a1a;
    padding: 20px 40px;
    border-bottom: 1px solid rgba(191, 150, 74, 0.2);
    position: sticky;
    top: 0;
    z-index: 90;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header.hidden {
    transform: translateY(-100%);
}

.header.scrolled {
    box-shadow: 0 2px 12px rgba(90, 178, 124, 0.08);
}

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

.logo {
    max-height: 50px;
    max-width: 50px;
    border-radius: 0;
    object-fit: cover;
}

.header-text h1 {
    font-size: 1.8em;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.header-text p {
    font-size: 0.9em;
    color: #4a4a4a;
    font-weight: 300;
}

/* === BOTÓN HAMBURGUESA (solo visible en móviles) === */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: #1a1a1a;
    cursor: pointer;
    padding: 4px 8px;
    transition: transform 0.2s;
}

.hamburger-btn:hover {
    transform: scale(1.05);
}

/* === MENÚ DE NAVEGACIÓN HORIZONTAL (filtros) === */
.menu-navegacion {
    max-width: 1200px;
    margin: 20px auto 10px;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    border-bottom: 1px solid rgba(191, 150, 74, 0.15);
    padding-bottom: 15px;
}

.menu-item {
    padding: 8px 18px;
    background: transparent;
    border: none;
    color: #4a4a4a;
    font-family: 'Now', sans-serif;
    font-weight: 500;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 0;
    position: relative;
}

.menu-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #5AB27C;
    transition: all 0.3s;
    transform: translateX(-50%);
}

.menu-item:hover::after,
.menu-item.activo::after {
    width: 60%;
}

.menu-item.activo {
    color: #1a1a1a;
    font-weight: 600;
}

.menu-item:hover {
    color: #1a1a1a;
}

/* === FILTROS (alternativa para vista productos) === */
.filters {
    max-width: 1200px;
    margin: 30px auto 20px;
    padding: 0 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid rgba(191, 150, 74, 0.3);
    background: #FAF6E9;
    color: #1a1a1a;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9em;
    border-radius: 0;
    font-family: 'Now', sans-serif;
}

.filter-btn.active {
    background: #5AB27C;
    color: #FAF6E9;
    border-color: #5AB27C;
}

.filter-btn:hover:not(.active) {
    border-color: #BF964A;
}

/* === CARRUSEL (BANNERS) === */
.carrusel-container {
    grid-column: 1 / -1;
    margin: 30px 0;
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.carrusel-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FAF6E9;
    aspect-ratio: 16 / 6;
    border: 1px solid rgba(191, 150, 74, 0.1);
}

.carrusel-slide img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.carrusel-slide .banner-texto {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: #1a1a1a;
    max-width: 50%;
    padding: 20px;
    background: rgba(250, 246, 233, 0.85);
    border-left: 3px solid #BF964A;
}

.banner-texto h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.banner-texto p {
    font-size: 1rem;
    color: #4a4a4a;
    margin-bottom: 12px;
    font-family: 'Now', sans-serif;
}

.banner-texto .banner-boton {
    display: inline-block;
    padding: 8px 24px;
    background: #5AB27C;
    color: #FAF6E9;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: 'Now', sans-serif;
}

.banner-texto .banner-boton:hover {
    background: #4a9a6a;
    transform: translateY(-2px);
}

/* Controles del carrusel */
.carrusel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(250, 246, 233, 0.8);
    border: 1px solid rgba(191, 150, 74, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #1a1a1a;
    transition: all 0.2s;
    z-index: 10;
}

.carrusel-control:hover {
    background: #BF964A;
    color: #FAF6E9;
}

.carrusel-control.prev {
    left: 10px;
}

.carrusel-control.next {
    right: 10px;
}

/* Indicadores (puntos) */
.carrusel-indicadores {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.carrusel-punto {
    width: 10px;
    height: 10px;
    border-radius: 0;
    background: rgba(191, 150, 74, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.carrusel-punto.activo {
    background: #5AB27C;
    width: 30px;
}

/* === TARJETAS MINI === */
.products-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 45%), 1fr));
    gap: 30px;
}

.product-card-mini {
    background: #FAF6E9;
    border: 1px solid rgba(191, 150, 74, 0.15);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    position: relative;
}

.product-card-mini:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(90, 178, 124, 0.08);
    border-color: #BF964A;
}

.product-image-container-mini {
    width: 100%;
    height: 220px;
    background: #FAF6E9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-image-mini {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card-mini:hover .product-image-mini {
    transform: scale(1.03);
}

.product-info-mini {
    padding: 16px;
}

.product-title-mini {
    font-size: 1.1em;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.4;
    font-weight: 700 !important;
}

.product-price-mini {
    font-size: 1.3em;
    font-weight: 600;
    color: #5AB27C;
    margin: 8px 0 4px;
    font-family: 'Now', sans-serif;
}

.product-code-mini {
    font-size: 0.8em;
    color: #999;
}

.product-detalles-mini {
    font-weight: 400;
    color: #888888;
    font-size: 0.82em;
    line-height: 1.4;
    margin-top: 3px;
}

/* Botón agregar rápido en tarjeta */
.btn-agregar-unico {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    border-radius: 0;
    background: #5AB27C;
    border: 2px solid #BF964A;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 5;
}

.btn-agregar-unico:hover {
    background: #4a9a6a;
    transform: scale(1.05);
}

.btn-agregar-icono {
    font-size: 1.8rem;
    font-weight: bold;
    color: #FAF6E9;
    line-height: 1;
    margin-top: -2px;
}

/* === SEPARADORES === */
.separador-container {
    grid-column: 1 / -1;
    margin: 30px 0;
    width: 100%;
    display: block;
    position: relative;
}

.separador-container.separador-doble-columna {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    margin: 40px 0;
}

.separador-columna-texto {
    flex: 1;
    min-width: 200px;
}

.separador-columna-video {
    flex: 1;
    min-width: 280px;
}

.separador-texto-doble {
    background: #FAF6E9;
    padding: 24px;
    border-radius: 0;
    font-size: 1em;
    line-height: 1.6;
    color: #1a1a1a;
    border: 1px solid rgba(191, 150, 74, 0.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    text-align: left;
    font-family: 'Now', sans-serif;
}

.separador-texto-doble strong {
    color: #5AB27C;
}

.separador-imagen {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.separador-img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 0;
    border: 1px solid rgba(191, 150, 74, 0.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.separador-video,
.separador-iframe {
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid rgba(191, 150, 74, 0.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.separador-video-element {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
    background: #FAF6E9;
}

.separador-iframe-element {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
    background: #FAF6E9;
}

.separador-texto {
    text-align: center;
    padding: 20px 24px;
    background: #FAF6E9;
    border-radius: 0;
    font-size: 1em;
    font-weight: 500;
    color: #1a1a1a;
    border: 1px solid rgba(191, 150, 74, 0.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    margin: 10px 0;
    font-family: 'Marcellus', serif;
}

.separador-linea {
    height: 1px;
    background: linear-gradient(90deg, transparent, #BF964A, #BF964A, transparent);
    margin: 25px 0;
    border-radius: 0;
}

/* === TARJETA MODAL === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.product-card-modal {
    background: #FAF6E9;
    border-radius: 0;
    width: 90%;
    max-width: 1000px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 25px 50px rgba(90, 178, 124, 0.15);
}

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

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 0;
    background: #FAF6E9;
    border: 1px solid rgba(191, 150, 74, 0.2);
    color: #1a1a1a;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close-btn:hover {
    background: #BF964A;
    color: #FAF6E9;
}

.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 32px;
}

.modal-image-container {
    width: 100%;
    height: 400px;
    background: #FAF6E9;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid rgba(191, 150, 74, 0.1);
}

.product-image-modal {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-title {
    font-size: 1.8em;
    color: #1a1a1a;
    margin: 0;
}

.modal-price {
    font-size: 2em;
    font-weight: 600;
    color: #5AB27C;
    margin: 5px 0;
    font-family: 'Now', sans-serif;
}

.modal-agrupacion1,
.modal-agrupacion2 {
    margin: 5px 0;
    background: #FAF6E9;
    padding: 16px;
    border-radius: 0;
    border: 1px solid rgba(191, 150, 74, 0.1);
}

.modal-agrupacion-titulo {
    font-weight: 500;
    color: #4a4a4a;
    margin-bottom: 12px;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Now', sans-serif;
}

.modal-agrupacion-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-agrupacion-btn {
    padding: 8px 18px;
    border: 1px solid rgba(191, 150, 74, 0.3);
    background: #FAF6E9;
    color: #1a1a1a;
    border-radius: 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.9em;
    font-family: 'Now', sans-serif;
}

.modal-agrupacion-btn:hover {
    border-color: #5AB27C;
    background: rgba(90, 178, 124, 0.05);
}

.modal-agrupacion-btn.selected {
    background: #5AB27C;
    color: #FAF6E9;
    border-color: #5AB27C;
}

.modal-detalles-btn {
    background: #FAF6E9;
    color: #1a1a1a;
    border: 1px solid rgba(191, 150, 74, 0.2);
    padding: 12px 16px;
    border-radius: 0;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    transition: all 0.2s;
    font-family: 'Now', sans-serif;
}

.modal-detalles-btn:hover {
    background: #BF964A;
    color: #FAF6E9;
}

.modal-quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
}

.modal-quantity-selector label {
    font-weight: 500;
    color: #4a4a4a;
    font-size: 0.9em;
}

.modal-quantity-input {
    width: 70px;
    padding: 10px;
    border: 1px solid rgba(191, 150, 74, 0.3);
    border-radius: 0;
    font-size: 1em;
    text-align: center;
    background: #FAF6E9;
}

.modal-add-to-cart {
    width: 100%;
    padding: 14px;
    background: #5AB27C;
    color: #FAF6E9;
    border: none;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 0;
    margin-top: 10px;
    font-family: 'Now', sans-serif;
}

.modal-add-to-cart:hover:not(:disabled):not(.sin-stock) {
    background: #4a9a6a;
    transform: translateY(-1px);
}

.modal-add-to-cart.sin-stock,
.modal-add-to-cart:disabled {
    background: #e0e0e0 !important;
    cursor: not-allowed !important;
    opacity: 0.8;
    color: #999 !important;
}

/* === PROMO MODAL === */
.promo-modal .modal-info {
    gap: 16px;
}

.promo-cantidad-selector {
    background: #FAF6E9;
    padding: 12px 16px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border: 1px solid rgba(191, 150, 74, 0.1);
}

.promo-cantidad-selector label {
    font-weight: 500;
    color: #4a4a4a;
}

.promo-cantidad-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.promo-cantidad-btn-menos,
.promo-cantidad-btn-mas {
    width: 32px;
    height: 32px;
    border-radius: 0;
    border: 1px solid rgba(191, 150, 74, 0.3);
    background: #FAF6E9;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.2s;
}

.promo-cantidad-btn-menos:hover,
.promo-cantidad-btn-mas:hover {
    background: #BF964A;
    color: #FAF6E9;
}

.promo-cantidad-valor {
    font-size: 1.1em;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.promo-counter {
    background: #FAF6E9;
    padding: 12px 16px;
    border-radius: 0;
    text-align: center;
    font-size: 0.9em;
    color: #4a4a4a;
    border: 1px solid rgba(191, 150, 74, 0.1);
}

.promo-sabores-titulo {
    font-size: 1em;
    font-weight: 500;
    color: #1a1a1a;
    margin: 10px 0;
    font-family: 'Marcellus', serif;
}

.promo-sabores-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.promo-sabor-card {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    gap: 6px 12px !important;
    padding: 10px 14px !important;
    border-radius: 0 !important;
    min-height: unset !important;
    width: auto !important;
    text-align: left !important;
    background: #FAF6E9;
    border: 1px solid rgba(191, 150, 74, 0.1);
}

.promo-sabor-card:has(.promo-sabor-img) {
    grid-template-columns: 1fr auto !important;
    grid-template-rows: auto auto !important;
}

.promo-sabor-img {
    width: 100% !important;
    max-height: 80px !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
}

.promo-sabor-nombre {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow: visible !important;
    word-break: break-word !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-self: center !important;
    font-family: 'Now', sans-serif;
}

.promo-sabor-control {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    grid-column: 2 !important;
    grid-row: 2 !important;
}

.promo-sabor-card:not(:has(.promo-sabor-img)) .promo-sabor-control {
    grid-row: 1 !important;
}

.promo-sabor-control button {
    width: 32px !important;
    height: 32px !important;
    border-radius: 0 !important;
    font-size: 1.1rem !important;
    line-height: 1 !important;
    border: 1px solid rgba(191, 150, 74, 0.2);
    background: #FAF6E9;
    cursor: pointer;
    transition: all 0.2s;
}

.promo-sabor-control button:hover {
    background: #BF964A;
    color: #FAF6E9;
}

.promo-sabor-cantidad {
    min-width: 24px !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
}

.promo-sabor-card--fijo {
    opacity: 1 !important;
    border: 2px solid #5AB27C !important;
    position: relative;
}

.promo-sabor-fijo-badge {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 0;
    background: #BF964A;
    color: #FAF6E9;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.promo-resumen {
    background: #FAF6E9;
    padding: 12px;
    border-radius: 0;
    margin-top: 8px;
    border: 1px solid rgba(191, 150, 74, 0.1);
}

.promo-resumen h4 {
    font-size: 0.85em;
    color: #4a4a4a;
    margin-bottom: 8px;
}

.promo-resumen-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.promo-resumen-item {
    background: #BF964A;
    color: #FAF6E9;
    padding: 4px 10px;
    border-radius: 0;
    font-size: 0.8em;
    font-weight: 500;
}

/* === CARRITO === */
.cart-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 24px;
    background: #FAF6E9;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(90, 178, 124, 0.05);
    border: 1px solid rgba(191, 150, 74, 0.1);
}

.cart-container h2 {
    font-size: 1.5em;
    font-weight: 400;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(191, 150, 74, 0.15);
    font-family: 'Marcellus', serif;
}

.cart-items {
    list-style: none;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(191, 150, 74, 0.1);
}

.cart-item-title {
    font-weight: 500;
    margin-bottom: 4px;
    font-family: 'Now', sans-serif;
}

.cart-item-details {
    font-size: 0.85em;
    color: #999;
}

.cart-item-price {
    font-weight: 500;
    color: #5AB27C;
    margin: 0 16px;
}

.remove-item {
    background: transparent;
    color: #999;
    border: 1px solid rgba(191, 150, 74, 0.2);
    width: 32px;
    height: 32px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s;
}

.remove-item:hover {
    background: #BF964A;
    color: #FAF6E9;
    border-color: #BF964A;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3em;
    font-weight: 600;
    padding-top: 16px;
    border-top: 1px solid rgba(191, 150, 74, 0.15);
}

.whatsapp-btn {
    width: 100%;
    padding: 14px;
    background: #5AB27C;
    color: #FAF6E9;
    border: none;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    border-radius: 0;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Now', sans-serif;
}

.whatsapp-btn:hover:not(:disabled) {
    background: #4a9a6a;
    transform: translateY(-1px);
}

.whatsapp-multiple-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.whatsapp-btn-multiple {
    flex: 1;
    min-width: 140px;
    padding: 12px;
    background: #5AB27C;
    color: #FAF6E9;
    border: none;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.2s;
    font-family: 'Now', sans-serif;
}

.whatsapp-btn-multiple:hover {
    background: #4a9a6a;
}

/* === POPUP DE DETALLES === */
.detalles-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11000;
    animation: fadeIn 0.2s ease;
}

.detalles-popup-content {
    background: #FAF6E9;
    border-radius: 0;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    padding: 24px;
    animation: slideUp 0.3s ease;
    box-shadow: 0 25px 50px rgba(90, 178, 124, 0.1);
}

.detalles-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 0;
    background: #FAF6E9;
    border: 1px solid rgba(191, 150, 74, 0.2);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
}

.detalles-popup-close:hover {
    background: #BF964A;
    color: #FAF6E9;
}

.detalles-popup-body {
    color: #1a1a1a;
    font-size: 0.95em;
    line-height: 1.5;
    padding-right: 24px;
    font-family: 'Now', sans-serif;
}

.detalles-popup-body h1,
.detalles-popup-body h2,
.detalles-popup-body h3 {
    font-family: 'Marcellus', serif;
    margin: 16px 0 8px;
    font-weight: 400;
}

.detalles-popup-body ul,
.detalles-popup-body ol {
    margin-left: 20px;
    margin-bottom: 12px;
}

/* === NOTIFICACIONES === */
.notification {
    position: fixed;
    top: 20px;
    right: 90px;
    background: #5AB27C;
    color: #FAF6E9;
    padding: 12px 20px;
    border-radius: 0;
    transform: translateX(400px);
    transition: transform 0.3s;
    z-index: 1000;
    font-size: 0.9em;
    box-shadow: 0 4px 12px rgba(90, 178, 124, 0.15);
    font-family: 'Now', sans-serif;
}

.notification.show {
    transform: translateX(0);
}

/* === FOOTER === */
.footer {
    background: #FAF6E9;
    padding: 0;
    margin-top: 60px;
    border-top: 1px solid rgba(191, 150, 74, 0.15);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #4a4a4a;
    font-size: 0.85em;
}

.admin-footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #FAF6E9;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.2s;
    border: 1px solid rgba(191, 150, 74, 0.2);
}

.admin-footer-link:hover {
    background: #BF964A;
    color: #FAF6E9;
    transform: translateY(-2px);
}

/* === MESA INFO === */
.mesa-info {
    flex: 0 0 auto;
}

.mesa-badge {
    background: #FAF6E9;
    color: #1a1a1a;
    padding: 6px 16px;
    border-radius: 0;
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid #BF964A;
}

/* === BARRA SOCIAL === */
.social-bar-header {
    width: 100%;
    padding: 15px 0 5px;
    margin-top: 15px;
    border-top: 1px solid rgba(191, 150, 74, 0.2);
}

.social-bar-header > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 15px;
}

.whatsapp-multiple {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.whatsapp-label {
    color: #4a4a4a;
    font-weight: 500;
    font-size: 0.9em;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #5AB27C;
    color: #FAF6E9;
    padding: 6px 14px;
    border-radius: 0;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.2s;
}

.whatsapp-link:hover {
    background: #4a9a6a;
    transform: translateY(-1px);
}

.redes-sociales {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #FAF6E9;
    color: #1a1a1a;
    border-radius: 0;
    text-decoration: none;
    font-size: 1.2em;
    transition: all 0.2s;
    border: 1px solid rgba(191, 150, 74, 0.2);
}

.social-link:hover {
    background: #BF964A;
    color: #FAF6E9;
    transform: translateY(-2px);
}

/* === CARRITO FLOTANTE === */
.cart-floating {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    cursor: pointer;
    background: #5AB27C;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(90, 178, 124, 0.2);
    transition: all 0.2s;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-floating:hover {
    transform: scale(1.05);
    background: #4a9a6a;
}

.cart-floating .cart-icon {
    font-size: 1.5em;
    color: #FAF6E9;
}

.cart-floating .cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #BF964A;
    color: #FAF6E9;
    font-size: 0.7em;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid #FAF6E9;
    animation: badgePulse 0.3s ease-out;
}

.cart-floating .cart-badge:empty {
    display: none;
}

@keyframes badgePulse {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* === LOADING === */
.loading {
    text-align: center;
    padding: 60px;
    color: #999;
    font-size: 1em;
}

.error-message {
    background: #FAF6E9;
    color: #BF964A;
    padding: 16px;
    margin: 20px auto;
    max-width: 600px;
    border-radius: 0;
    text-align: center;
    border: 1px solid rgba(191, 150, 74, 0.2);
}

/* === PANEL ENVÍO Y PAGO === */
.panel-envio-pago {
    margin-bottom: 14px;
    padding: 14px;
    background: #FAF6E9;
    border-radius: 0;
    border: 1px solid rgba(191, 150, 74, 0.1);
}

.panel-envio-grupo { margin-bottom: 12px; }
.panel-envio-grupo:last-child { margin-bottom: 0; }

.panel-envio-titulo {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: 'Now', sans-serif;
}

.panel-envio-opciones { display: flex; gap: 8px; flex-wrap: wrap; }
.panel-envio-opciones--pago { flex-wrap: wrap; }

.panel-envio-label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: #FAF6E9;
    border: 2px solid rgba(191, 150, 74, 0.15);
    border-radius: 0;
    cursor: pointer;
    font-size: 0.88rem;
    transition: all 0.2s;
    color: #1a1a1a;
    font-family: 'Now', sans-serif;
}

.panel-envio-label input[type="radio"] {
    accent-color: #5AB27C;
    flex-shrink: 0;
}

.panel-envio-label--activo {
    border-color: #5AB27C !important;
    background: rgba(90, 178, 124, 0.05) !important;
}

/* ════════════════════════════════════════════════
   DRAWER DE SECCIONES — Menú lateral moderno (funcional)
   ════════════════════════════════════════════════ */

/* Botón flotante que abre el drawer */
.drawer-btn-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: flex-start;
    padding: 10px 16px 6px;
    max-width: 1200px;
    margin: 0 auto;
}

.drawer-btn-abrir {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 0;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(90, 178, 124, 0.2);
    background: #5AB27C;
    color: #FAF6E9;
    font-family: 'Now', sans-serif;
}
.drawer-btn-abrir:hover {
    background: #4a9a6a;
    transform: translateY(-2px);
}

.drawer-btn-icon { font-size: 1.1rem; }
.drawer-btn-label { flex: 1; text-align: left; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-btn-flecha { font-size: 1.3rem; font-weight: 900; opacity: 0.7; }

/* Overlay oscuro */
.drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 300;
    backdrop-filter: blur(2px);
}
.drawer-overlay--visible { display: block; }

/* Panel lateral */
.drawer-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    z-index: 301;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 4px 0 30px rgba(0,0,0,0.4);
    background: #FAF6E9;
    border-right: 1px solid rgba(191, 150, 74, 0.15);
}
.drawer-menu--abierto { left: 0; }

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(191, 150, 74, 0.2);
}

.drawer-titulo {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    font-family: 'Marcellus', serif;
    color: #1a1a1a;
}

.drawer-cerrar {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 0;
    line-height: 1;
    transition: background 0.2s;
    opacity: 0.7;
    color: #1a1a1a;
}
.drawer-cerrar:hover { opacity: 1; background: rgba(191, 150, 74, 0.1); }

.drawer-secciones {
    flex: 1;
    overflow-y: auto;
    padding: 0 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 0;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    transition: all 0.18s;
    width: 100%;
    background: transparent;
    color: #4a4a4a;
    font-family: 'Now', sans-serif;
}
.drawer-item:hover { background: rgba(90, 178, 124, 0.05); color: #1a1a1a; }
.drawer-item--activo {
    background: #5AB27C !important;
    color: #FAF6E9 !important;
}
.drawer-item-icono { font-size: 1.1rem; flex-shrink: 0; }
.drawer-item-texto { flex: 1; }
.drawer-item-linea {
    font-size: 0.9rem;
    font-weight: 900;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    opacity: 0.4;
    color: #BF964A;
}
.drawer-item-icono { display: none !important; }
.drawer-seccion-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    opacity: 0.4;
    padding: 10px 16px 4px;
    text-transform: uppercase;
    color: #1a1a1a;
    font-family: 'Now', sans-serif;
}
.drawer-search-wrap { padding: 4px 4px 8px; }
.drawer-search-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 0;
    border: 1px solid rgba(191, 150, 74, 0.2);
    font-size: 0.9rem;
    outline: none;
    box-sizing: border-box;
    background: #FAF6E9;
    color: #1a1a1a;
    font-family: 'Now', sans-serif;
}
.drawer-search-input::placeholder { opacity: 0.5; color: #4a4a4a; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .header {
        padding: 16px 20px;
    }
    
    .logo-container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .header-text h1 {
        font-size: 1.5em;
    }
    
    .social-bar-header > div {
        flex-direction: column;
        align-items: stretch;
    }
    
    .whatsapp-multiple {
        justify-content: center;
    }
    
    .redes-sociales {
        justify-content: center;
    }
    
    .hamburger-btn {
        display: block;
    }
    
    .menu-navegacion {
        display: none !important;
    }
    
    .drawer-btn-wrap {
        display: none;
    }
    
    .filters {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 6px 14px;
        font-size: 0.85em;
    }
    
    .products-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
    
    .product-image-container-mini {
        height: 180px;
    }
    
    .carrusel-slide {
        aspect-ratio: 16 / 8;
    }
    
    .carrusel-slide .banner-texto {
        left: 5%;
        max-width: 70%;
        padding: 12px 16px;
    }
    
    .banner-texto h2 {
        font-size: 1.2rem;
    }
    
    .banner-texto p {
        font-size: 0.8rem;
    }
    
    .carrusel-control {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .separador-container.separador-doble-columna {
        flex-direction: column;
        gap: 20px;
    }
    
    .separador-columna-texto,
    .separador-columna-video {
        width: 100%;
        min-width: auto;
    }
    
    .separador-texto-doble {
        padding: 20px;
        font-size: 0.9em;
        text-align: center;
    }
    
    .separador-img {
        max-height: 200px;
    }
    
    .separador-texto {
        padding: 16px 20px;
        font-size: 0.9em;
    }
    
    .modal-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .modal-image-container {
        height: 280px;
    }
    
    .modal-title {
        font-size: 1.5em;
    }
    
    .modal-price {
        font-size: 1.8em;
    }
    
    .promo-sabores-grid {
        grid-template-columns: 1fr !important;
    }
    
    .cart-floating {
        width: 44px;
        height: 44px;
        top: 12px;
        right: 12px;
    }
    
    .cart-floating .cart-icon {
        font-size: 1.3em;
    }
    
    .notification {
        top: 12px;
        right: 70px;
        font-size: 0.85em;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .modal-image-container {
        height: 220px;
    }
    
    .product-image-container-mini {
        height: 160px;
    }
    
    .products-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    
    .product-title-mini {
        font-size: 0.9em;
    }
    
    .product-price-mini {
        font-size: 1.2em;
    }
    
    .carrusel-slide {
        aspect-ratio: 16 / 10;
    }
    
    .carrusel-slide .banner-texto {
        left: 5%;
        max-width: 80%;
        padding: 10px 12px;
    }
    
    .banner-texto h2 {
        font-size: 1rem;
    }
    
    .banner-texto p {
        font-size: 0.7rem;
    }
    
    .banner-texto .banner-boton {
        padding: 4px 12px;
        font-size: 0.8rem;
    }
    
    .separador-container {
        margin: 15px 0;
    }
    
    .separador-img {
        max-height: 150px;
    }
    
    .separador-texto {
        padding: 12px 16px;
        font-size: 0.85em;
    }
    
    .btn-agregar-unico {
        width: 36px;
        height: 36px;
        bottom: 10px;
        right: 10px;
    }
    .btn-agregar-icono {
        font-size: 1.5rem;
    }
    
    .drawer-menu {
        width: 260px;
    }
}

/* ============================================ */
/* PARCHES GLOBALES                             */
/* ============================================ */

/* Sin foto: centrar verticalmente */
.product-card-mini:not(:has(.product-image-container-mini)) {
    display: flex;
    flex-direction: column;
    min-height: 200px;
}
.product-card-mini:not(:has(.product-image-container-mini)) .product-info-mini {
    flex: 1;
    display: flex;
    align-items: stretch;
    padding: 16px 16px 60px;
    width: 100%;
}
.product-card-mini:not(:has(.product-image-container-mini)) .product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Prevenir pull-to-refresh en móviles cuando hay modal abierto */
body.modal-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

.modal-overlay,
.detalles-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}