:root {
    --bg-dark: #121a14;
    --card-bg: #1b261e;
    --accent-green: #4ade80;
    --accent-hover: #22c55e;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* BURBUJA FLOTANTE (TOAST NOTIFICATION) */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--accent-green);
    color: #000;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 1000;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Header con la foto de fondo de la carpa */
.hero-header {
    background: linear-gradient(rgba(18, 26, 20, 0.82), rgba(18, 26, 20, 0.90)), url('carpa.jpg') center/cover no-repeat;
    padding: 20px 15px 35px 15px;
    text-align: center;
    border-bottom: 2px solid var(--accent-green);
}

/* Barra superior del carrito flotante */
.top-cart-bar {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    padding: 0 15px 15px 15px;
}

.cart-icon-btn {
    background: rgba(27, 38, 30, 0.9);
    border: 1px solid var(--accent-green);
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}

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

#cart-counter-badge {
    background: #ef4444;
    color: white;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Modal del Carrito */
.cart-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.cart-modal-content {
    background: #1b261e;
    border: 1px solid var(--accent-green);
    width: 100%;
    max-width: 480px;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    position: relative;
    color: #f3f4f6;
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.cart-modal-header h3 {
    font-family: 'Playfair Display', serif;
    color: var(--accent-green);
    font-size: 1.2rem;
    margin: 0;
}

.close-modal-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 1.2rem;
    cursor: pointer;
}

#cart-items {
    list-style: none;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.empty-cart {
    color: #cbd5e1;
    padding: 10px 0;
    text-align: center;
    font-style: italic;
}

.cart-total-container {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.05rem;
    margin-bottom: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 12px;
}

.btn-whatsapp-cart {
    width: 100%;
    padding: 12px;
    background-color: #25d366;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.btn-whatsapp-cart:hover {
    background: #1ebe5d;
}

.logo-container {
    max-width: 1700px;
    margin: 0 auto;
}

.site-logo {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-green);
    margin-bottom: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hero-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--accent-green);
    letter-spacing: 2px;
}

.hero-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.tagline {
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px;
    border-radius: 6px;
    display: inline-block;
}

.tagline h2 {
    font-size: 1rem;
    color: var(--text-main);
}

/* Layout Principal */
.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 10px 10px;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    align-items: start;
}

.content-column {
    min-width: 0;
}

/* Filtros */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent-green);
    color: #000;
    border-color: var(--accent-green);
}

/* Tarjetas de Categoría / Banner */
.category-group {
    margin-bottom: 30px;
}

.category-banner-card {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.microgreens-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.78)), url('empaque.jpg');
}

.hortalizas-bg {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('lechuga-crespa.jpg');
}

.info-banner-bg {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('info-banner.jpg');
}

.banner-overlay {
    padding: 20px;
}

.badge-pill {
    background: var(--accent-green);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.banner-overlay h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #fff;
    margin: 8px 0 4px 0;
}

.banner-overlay p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Panel de Mixes */
.mixes-order-panel {
    margin-top: 20px;
    background: rgba(0,0,0,0.75);
    padding: 18px;
    border-radius: 8px;
    text-align: left;
}

.mixes-order-panel h3 {
    color: var(--accent-green);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.mixes-grid-container {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}

.mix-card-item {
    background: rgba(255,255,255,0.07);
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-green);
}

.mix-card-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}

.mix-card-text {
    flex: 1;
    min-width: 260px;
}

.mix-card-text strong {
    font-size: 1.05rem;
    color: #fff;
    display: block;
    margin-bottom: 2px;
}

.mix-card-text small {
    color: var(--accent-green);
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.mix-card-text p {
    font-size: 0.88rem;
    color: #e2e8f0;
    line-height: 1.4;
    margin: 0;
    display: block !important;
}

.mix-card-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: center;
}

.qty-input {
    width: 55px;
    padding: 6px;
    text-align: center;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.5);
    color: #fff;
}

.custom-mix-box {
    background: rgba(255,255,255,0.07);
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
    margin-top: 5px;
}

.custom-mix-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.custom-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

/* Chips interactivos de Mix Personalizado */
.mix-chip {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.mix-chip:hover, .mix-chip.active {
    border-color: var(--accent-green);
    background: var(--accent-green);
    color: #000;
}

/* Grilla de Productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
}

.product-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.product-item:hover {
    transform: translateY(-2px);
}

.product-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.product-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1rem;
    color: var(--accent-green);
    margin-bottom: 4px;
}

.short-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    flex-grow: 1;
}

/* Acordeón de Detalles */
.extra-details {
    display: none;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    border-left: 3px solid var(--accent-green);
}

.extra-details ul {
    margin-left: 15px;
    margin-top: 4px;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-more, .btn-add {
    padding: 6px 10px;
    font-size: 0.78rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    border: none;
}

.btn-more {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    width: 100%;
}

.btn-more:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-add {
    background: var(--accent-green);
    color: #000;
}

.btn-add:hover {
    background: var(--accent-hover);
}

/* Contacto y Redes Sociales */
.contact-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.contact-section h3 {
    font-family: 'Playfair Display', serif;
    color: var(--accent-green);
    margin-bottom: 15px;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.btn-social {
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-social:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.tiktok-social {
    background: #000;
    color: #fff;
    border: 1px solid #333;
}

.fb-social {
    background: #1877f2;
    color: #fff;
}

.wa-social {
    background: #25d366;
    color: #fff;
}

.location {
    color: var(--text-muted);
    font-size: 0.82rem;
}

footer {
    text-align: center;
    padding: 25px;
    background: #0b110e;
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 1px;
    border-top: 1px solid var(--border-color);
    margin-top: 30px;
}