/* ==========================================================
   ESTILO MINIMALISTA & GOURMET - SÉ TU PROPIO CHEF
   ========================================================== */

:root {
    --bg-page: #fafbfa;
    --bg-surface: #ffffff;
    --bg-subtle: #f3f6f3;
    
    /* Verde fresco de huerta */
    --accent: #266b3b;
    --accent-hover: #1e562f;
    --accent-soft: #eaf3ec;
    --accent-border: #cbe0d1;
    
    /* Toque tostado gourmet */
    --gold: #b38428;
    --gold-soft: #fcf8ee;
    --gold-border: #f1dfb8;

    --text-main: #191f1b;
    --text-muted: #5e6b62;
    --text-light: #93a197;
    
    --border: #e4eae5;
    --border-light: #edf2ee;
    
    --whatsapp: #25D366;
    --whatsapp-dark: #1fb855;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 999px;
    
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ================= HEADER ================= */
.header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    max-width: 1060px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand-sub {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-settings {
    background: transparent;
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-settings:hover {
    color: var(--text-main);
    border-color: var(--text-muted);
}

.btn-cart {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 9px 18px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.btn-cart:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.cart-pill {
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 7px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
}

/* ================= HERO GOURMET-CASERO ================= */
.hero {
    padding: 42px 20px 24px;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 14px;
    border: 1px solid var(--accent-border);
}

.hero h1 {
    font-size: clamp(1.9rem, 4.4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.25;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.hero-badges span {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 5px 14px;
    border-radius: var(--radius-full);
}

/* ================= GRID DE PLATOS ================= */
.main-content {
    max-width: 1060px;
    margin: 0 auto;
    padding: 10px 20px 50px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
}
.section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
}
.section-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-border);
}

.card-img-wrap {
    width: 100%;
    height: 210px;
    position: relative;
    background: #f0f0f0;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}
.card:hover .card-img {
    transform: scale(1.04);
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--accent-border);
}

.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-portion {
    font-size: 0.74rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 6px;
}

.card-desc {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 12px;
    flex: 1;
}

.card-prep {
    font-size: 0.76rem;
    background: var(--bg-subtle);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.card-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
}

.btn-add {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent-border);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-add:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-subtle);
    border-radius: var(--radius-full);
    padding: 2px 4px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--text-main);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.qty-btn:hover {
    background: var(--accent);
    color: #fff;
}
.qty-val {
    font-size: 0.88rem;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

/* ================= SECCIÓN BANNER POLLITA LU (SÉ TU PROPIO CHEF) ================= */
.pollita-showcase {
    background: #ffffff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 50px 20px 60px;
}

.pollita-container {
    max-width: 1060px;
    margin: 0 auto;
}

.pollita-banner-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    background: #ffffff;
    margin-bottom: 30px;
}

.pollita-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.pollita-content-box {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
}

.pollita-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.pollita-head-left h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}
.pollita-head-left p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.btn-consult-flavors {
    background: var(--whatsapp);
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-consult-flavors:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-1px);
}

.flavors-pills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.flavor-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s;
}
.flavor-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.flavor-icon {
    font-size: 1.5rem;
    min-width: 34px;
    height: 34px;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.flavor-text strong {
    display: block;
    font-size: 0.92rem;
    color: var(--text-main);
    margin-bottom: 2px;
}
.flavor-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: block;
}

/* ================= BENEFICIOS SÉ TU PROPIO CHEF ================= */
.chef-tips-section {
    padding: 40px 20px;
    max-width: 1060px;
    margin: 0 auto;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.tip-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    text-align: center;
    transition: all 0.2s;
}
.tip-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-soft);
}
.tip-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}
.tip-card h4 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.tip-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ================= FOOTER ================= */
.footer {
    padding: 30px 20px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-light);
    border-top: 1px solid var(--border);
    background: #ffffff;
}

/* ================= CART DRAWER ================= */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s;
}
.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.1);
    z-index: 101;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.drawer-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
}
.btn-close {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.cart-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
}
.cart-item-img {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}
.cart-item-info {
    flex: 1;
}
.cart-item-title {
    font-size: 0.88rem;
    font-weight: 700;
}
.cart-item-price {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.checkout-box {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
}
.checkout-box h4 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 10px;
}
.form-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 600;
}
.form-input, .form-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    background: var(--bg-page);
    outline: none;
}
.form-input:focus, .form-select:focus {
    border-color: var(--accent);
    background: #fff;
}

.drawer-footer {
    padding: 18px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-subtle);
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.price-row.total {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}

.btn-whatsapp-send {
    width: 100%;
    background: var(--whatsapp);
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    transition: all 0.2s;
}
.btn-whatsapp-send:hover {
    background: var(--whatsapp-dark);
}

/* Botón flotante móvil */
.cart-float {
    position: fixed;
    bottom: 16px;
    left: 20px;
    right: 20px;
    max-width: 380px;
    margin: 0 auto;
    background: var(--text-main);
    color: #fff;
    border-radius: var(--radius-full);
    padding: 12px 20px;
    display: none;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    z-index: 40;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
@media (max-width: 600px) {
    .cart-float.show {
        display: flex;
    }
}

/* Modal Config */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-main);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    z-index: 200;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
