

/* --- 1. VARIABLES E IDENTIDAD --- */
:root {
    --primary-color: #ff4d80; /* Rosa Fresa */
    --primary-dark: #e63e6d;
    --secondary-color: #ff9eb5; /* Rosa Pastel */
    --accent-color: #8bc34a; /* Verde Hoja */
    --bg-color: #fff5f8;
    --card-bg: #ffffff;
    --text-main: #5d4037; /* Marrón Chocolate */
    --text-light: #8d6e63;
    --font-title: 'Pacifico', cursive;
    --font-body: 'Quicksand', sans-serif;
    --shadow: 0 8px 25px rgba(255, 77, 128, 0.15);
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 80px;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); }

/* --- 2. COMPONENTES UI --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 77, 128, 0.4);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}
.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.2rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 0px rgba(255,255,255,0.5);
    white-space: nowrap;
}
@media(max-width: 400px) { .section-title { font-size: 1.8rem; white-space: normal; } }

/* --- ANUNCIO SUPERIOR --- */
.announcement-bar { height: 34px; overflow: hidden; background: var(--text-main); color: white; display: flex; align-items: center; }
.announcement-track { display: flex; width: max-content; min-width: 200%; animation: announcement-scroll 22s linear infinite; }
.announcement-group { display: flex; flex: none; align-items: center; gap: 34px; padding-right: 34px; white-space: nowrap; font-size: .75rem; font-weight: 700; letter-spacing: .04em; }
.announcement-group span::before { content: '✦'; margin-right: 10px; color: var(--secondary-color); }
@keyframes announcement-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .announcement-track { animation: none; } }
html { scroll-padding-top: 112px; }

/* --- 3. HEADER --- */
header {
    background: rgba(255, 255, 255, 0.98);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

.nav-links { display: flex; gap: 15px; overflow-x: auto; white-space: nowrap; padding-bottom: 5px;}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { font-weight: 600; font-size: 0.9rem; }
.nav-links a:hover { color: var(--primary-color); }

.hamburger { display: none; font-size: 1.5rem; color: var(--primary-color); cursor: pointer; }

/* --- 4. HERO SECTION --- */
#hero {
    min-height: 85vh;
    background:
        linear-gradient(90deg, rgba(255,248,244,.96) 0%, rgba(255,239,243,.84) 40%, rgba(255,228,237,.12) 72%),
        url('/tenants/deli-fresas/hero-crema-v2.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding-top: 80px;
    position: relative;
    color: var(--text-main);
}

.hero-content {
    width: min(620px, calc(100% - 40px));
    margin-left: max(20px, calc((100vw - 1200px) / 2));
    padding: 36px 28px;
    z-index: 1;
    animation: hero-arrive .8s ease-out both;
}

@keyframes hero-arrive { from { opacity: 0; transform: translateY(18px); } }

.hero-badge {
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 77, 128, 0.6);
}

#hero h1 {
    font-family: var(--font-title);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-main);
    text-shadow: none;
}

#hero h1 span { color: var(--primary-color); }

#hero p {
    max-width: 560px;
    font-size: 1.08rem;
    color: #6d4548;
    margin-bottom: 24px;
}

.kids-campaign__eyebrow {
    color: var(--primary-dark);
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .78rem;
}

/* --- CAMPAÑA DÍA DEL NIÑO --- */
.kids-campaign { padding: clamp(70px, 9vw, 120px) 0; background: #fff; }
.kids-campaign__grid { display:grid; grid-template-columns:minmax(0, .92fr) minmax(0, 1.08fr); align-items:center; gap:clamp(32px, 7vw, 96px); }
.kids-campaign__photo { position:relative; border-radius:40px; overflow:hidden; min-height:560px; box-shadow:0 28px 70px rgba(230,62,109,.22); }
.kids-campaign__photo img { width:100%; height:100%; position:absolute; inset:0; object-fit:cover; object-position:center 40%; }
.kids-campaign__sticker { position:absolute; top:24px; left:24px; padding:10px 18px; border-radius:999px; background:#fff; color:var(--primary-dark); font-weight:800; box-shadow:0 8px 24px rgba(87,29,43,.16); }
.kids-campaign__content h2 { font-family:var(--font-title); color:var(--primary-color); font-size:clamp(2.4rem,5vw,4.6rem); line-height:1.08; margin:16px 0 24px; }
.kids-campaign__content>p { font-size:1.08rem; color:#705255; max-width:600px; }
.kids-campaign__actions { display:flex; flex-wrap:wrap; gap:12px; margin:30px 0 22px; }
.kids-campaign__tech { display:flex; align-items:center; gap:10px; padding:14px 18px; border-radius:18px; background:#fff2f6; font-weight:700; font-size:.92rem!important; }
.kids-campaign__tech i { color:var(--primary-color); transform:rotate(90deg); }

/* --- 5. SISTEMA DE GALERÍAS (BUILDER) --- */
#catalogo { padding: 60px 0; min-height: 600px; }

.step-container { display: none; opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease; }
.step-container.active { display: block; opacity: 1; transform: translateY(0); }
.step-container.fade-out { opacity: 0; transform: translateY(-20px); }

.step-header { text-align: center; margin-bottom: 30px; }
.step-header h2 { font-size: 2rem; color: var(--primary-color); margin-bottom: 5px; }
.step-header p { color: #888; }

.option-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
}
.option-card:hover { transform: translateY(-5px); border-color: var(--secondary-color); }
.option-card.selected { border-color: var(--primary-color); background-color: #fff0f5; }
.option-card.selected::after {
    content: '\f00c'; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; top: 10px; right: 10px;
    background: var(--primary-color); color: white;
    width: 25px; height: 25px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
}

.option-details { padding: 15px; text-align: center; }
.option-name { display: block; font-weight: 700; color: var(--text-main); margin-bottom: 5px; }
.option-price { color: var(--primary-color); font-weight: 800; font-size: 1.1rem; }

.grid-standard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    justify-content: center;
}
.grid-standard .option-img { height: 120px; width: 100%; object-fit: cover; }

/* DISEÑO DE VASOS (GRID 4 COLUMNAS EN PC) */
#grid-cups {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-content: center;
    margin: 0 auto;
}

#grid-cups .option-img {
    height: 280px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

@media(max-width: 768px) {
    #hero { min-height: 88svh; background-position: 63% center; align-items:flex-end; padding:18px 16px 28px; }
    .hero-content { margin:0; width:100%; max-width:none; padding:22px; border:1px solid rgba(255,255,255,.72); border-radius:26px; background:rgba(255,250,247,.86); box-shadow:0 18px 50px rgba(111,38,55,.18); backdrop-filter:blur(7px); }
    .hero-badge { margin-bottom:12px; padding:7px 14px; font-size:.68rem; letter-spacing:1.4px; }
    #hero h1 { font-size:clamp(2.75rem,13vw,3.8rem); margin-bottom:.7rem; }
    #hero p { margin-bottom:18px; font-size:.95rem; line-height:1.55; }
    .kids-campaign__grid { grid-template-columns:1fr; }
    .kids-campaign__photo { min-height:520px; border-radius:28px; }
    .kids-campaign__actions .btn { width:100%; }
    #grid-cups {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 8px 0 24px;
    }

    #grid-cups .option-card {
        min-width: 0;
        width: 100%;
        border-radius: 16px;
    }
    #grid-cups .option-img { height: 150px; }
    #grid-cups .option-details { padding: 10px 5px 12px; }
    #grid-cups .option-name { font-size: .84rem; }

    #grid-creams,
    #grid-toppings { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
    #grid-creams .option-card,
    #grid-toppings .option-card { min-width:0; border-radius:14px; }
    #grid-creams .option-img,
    #grid-toppings .option-img { width:100%; height:82px; object-fit:cover; }
    #grid-creams .option-details,
    #grid-toppings .option-details { padding:9px 5px 10px; }
    #grid-creams .option-name,
    #grid-toppings .option-name { font-size:.7rem; line-height:1.2; overflow-wrap:anywhere; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-content { animation:none; }
    .dessert-story__after { opacity:1; clip-path:none; }
}

/* GRID TOPPINGS */
.grid-toppings { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.grid-toppings .option-card { display: flex; align-items: center; flex-direction: column; }
.grid-toppings .option-img { height: 90px; width: 100%; object-fit: cover; }

@media(min-width: 600px) {
    .grid-toppings { grid-template-columns: repeat(4, 1fr); }
    .grid-toppings .option-img { height: 140px; }
}

.controls {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px dashed #eee;
    padding-top: 20px;
}

/* --- 6. ESTILOS PARA SECCIONES DE UNA SOLA FOTO --- */
.static-section { padding: 50px 0; border-bottom: 1px solid #eee; }
.static-section:nth-child(even) { background-color: white; }

.single-product-layout {
    display: flex;
    gap: 30px;
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow);
    align-items: flex-start;
}

.main-product-img {
    width: 40%;
    flex-shrink: 0;
}
.main-product-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

.product-options-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.variant-block {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}
.variant-block:last-child { border-bottom: none; padding-bottom: 0; }
.variant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.variant-title { font-weight: 700; font-size: 1.2rem; color: var(--text-main); }
.variant-price { color: var(--primary-color); font-weight: 800; font-size: 1.1rem; }
.variant-desc { font-size: 0.85rem; color: #666; margin-bottom: 10px; }

/* Estilos para Chips */
.chip-container { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; }
.chip-btn {
    background: #f8f8f8; border: 1px solid #ddd; padding: 6px 12px;
    border-radius: 15px; font-size: 0.75rem; cursor: pointer;
    transition: all 0.2s; color: #555; font-weight: 600;
}
.chip-btn:hover { background: #e0e0e0; }
.chip-btn.selected {
    background: var(--primary-color); color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 77, 128, 0.4);
}

/* CAMBIO PC: Botones más chicos y Chips más grandes */
@media(min-width: 1024px) {
    .variant-block .btn-primary {
        width: auto !important;
        padding: 10px 40px;
        display: inline-block;
    }
    .chip-btn {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
    .static-info .btn-primary {
        width: auto !important;
        padding: 8px 30px;
    }
}

/* Layout vertical en móvil */
@media (max-width: 768px) {
    .single-product-layout {
        flex-direction: column;
        padding: 15px;
    }
    .main-product-img { width: 100%; }
    .main-product-img img { height: 250px; }
}

/* Estilos para sección Helados (Mantiene grid cards) */
.static-grid-cards {
    display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; padding: 20px 10px;
}
.static-card {
    background: white; border-radius: 15px; overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition);
    width: 280px; display: flex; flex-direction: column; border: 1px solid #eee;
}
.static-card:hover { transform: translateY(-5px); border-color: var(--secondary-color); }
.static-card .static-img { width: 100%; height: 180px; object-fit: cover; }
.static-info { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; text-align: left; }
.static-info h3 { font-size: 1.1rem; margin-bottom: 2px; color: var(--text-main); line-height: 1.2; }
.static-price-tag { color: var(--primary-color); font-weight: 800; font-size: 1.1rem; margin-bottom: 8px; display: block;}

@keyframes shake { 0% { transform: translateX(0); } 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-5px); } 100% { transform: translateX(0); } }
.shake-btn { animation: shake 0.4s; background: #5d4037 !important; }

/* --- 7. NUEVA SECCIÓN CLIENTES --- */
#clientes { padding: 72px 0; background: linear-gradient(180deg, #fff 0%, #fff4f7 100%); }
.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.client-img {
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform .35s ease, box-shadow .35s ease;
}
.client-img:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: 0 20px 45px rgba(230,62,109,.20); }
@media(max-width: 768px) {
    .clients-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        grid-template-columns: none;
        padding-bottom: 20px;
        scrollbar-width: none;
    }
    .clients-grid::-webkit-scrollbar { display: none; }
    .client-img {
        min-width: 100%;
        scroll-snap-align: center;
        height: auto;
        aspect-ratio: 4 / 5;
    }
}

/* --- 8. EVENTOS, NOSOTROS, UBICACION --- */
#nosotros { padding: 80px 0; background: white; border-top: 10px solid var(--bg-color); }
.about-wrapper { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
.about-text { flex: 1; min-width: 300px; }
.about-text h3 { font-size: 1.8rem; color: var(--text-main); margin-bottom: 20px; }
.about-text p { margin-bottom: 15px; font-size: 1.05rem; color: #666; }
.about-image { flex: 1; min-width: 300px; display: flex; justify-content: center; }
.about-image img { width: min(100%, 420px); height: auto; object-fit: contain; border-radius: 30px; box-shadow: 20px 20px 0px var(--secondary-color); border: 5px solid white; }

#ubicacion { padding: 60px 0; background: white; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.map-box { height: 300px; background: #eee; border-radius: 20px; overflow: hidden; }

footer { background: var(--text-main); color: white; padding: 40px 0 100px; text-align: center; }

/* --- 9. STICKY CART BAR & MODAL --- */
.sticky-cart-bar { position: fixed; bottom: 0; left: 0; width: 100%; background: white; box-shadow: 0 -5px 20px rgba(0,0,0,0.1); z-index: 2000; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #eee; }
.cart-summary { display: flex; flex-direction: column; }
.cart-summary span { font-size: 0.8rem; color: #666; }
.cart-summary strong { font-size: 1.2rem; color: var(--primary-color); }
.cart-btn-action { background: #25d366; color: white; padding: 10px 20px; border-radius: 30px; font-weight: bold; display: flex; align-items: center; gap: 8px; border: none; cursor: pointer; box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3); }

.cart-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 2500; display: none; justify-content: center; align-items: flex-end; }
.cart-modal.open { display: flex; }
.cart-content { background: white; width: 100%; max-width: 500px; border-radius: 20px 20px 0 0; padding: 25px; max-height: 80vh; overflow-y: auto; position: relative; animation: slideUp 0.3s ease; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* CONFIG MODAL ESPECIFICO */
.config-modal-content {
    background: white; width: 100%; max-width: 500px; border-radius: 20px; padding: 20px; position: relative; animation: slideUp 0.3s ease;
}
.config-section { margin-bottom: 20px; }
.config-title { font-weight: bold; margin-bottom: 10px; display: block; color: var(--text-main); }

@media(min-width: 768px) {
    .cart-modal { align-items: center; }
    .cart-content { border-radius: 20px; }
    .grid-toppings .option-card { flex-direction: row; text-align: left; }
    .grid-toppings .option-img { width: 100px; height: 100px; }
    .info-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: flex; }
    .hamburger { display: none; }
    #hero h1 { font-size: 4.5rem; }
}

@media(max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 104px; left: 0; width: 100%; background: white; flex-direction: column; padding: 20px; box-shadow: 0 10px 10px rgba(0,0,0,0.05); }
    .nav-links.active { display: flex; }
    .hamburger { display: block; }
    .info-grid { grid-template-columns: 1fr; }
    .about-image img { width: 100%; height: auto; }
}
