/* ============================================
   DESIGN SYSTEM & VARIABLES (Candy Store)
   ============================================ */
:root {
    --pink:         #E91E63; /* Rosa principal */
    --pink-dark:    #C2185B; /* Rosa hover */
    --pink-light:   #F8BBD0; /* Rosa suave */
    --pink-pale:    #FDE8F0; /* Rosa muy suave */
    --white:        #FFFFFF;
    --gray-dark:    #333333; /* Texto principal */
    --gray-mid:     #666666; /* Texto secundario */
    --gray-light:   #F5F5F5; /* Fondo general */
    --orange:       #FF7043; /* Ofertas */
    --orange-soft:  #FFF0EB; /* Fondo oferta */
    --yellow:       #FFF176; /* Stickers / Promos */
    --shadow-sm:    0 2px 8px rgba(233,30,99,.12);
    --shadow-md:    0 8px 30px rgba(233,30,99,.18);
    --shadow-lg:    0 20px 60px rgba(233,30,99,.22);
    --radius:       16px;
    --radius-sm:    10px;
    --radius-pill:  999px;
    --transition:   0.25s cubic-bezier(.4,0,.2,1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--gray-light);
    color: var(--gray-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(233,30,99,.35);
}

.header__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header__logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    padding: 2px;
}

.header__brand-name {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    color: #fff;
    line-height: 1.1;
}

.header__brand-sub {
    display: block;
    font-size: .7rem;
    color: rgba(255,255,255,.8);
    font-weight: 400;
    text-transform: uppercase;
}

.header__badge {
    background: rgba(255,255,255,.18);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: .78rem;
    color: #fff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #6EE7B7;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(1.4); }
}

/* ============================================
   HERO / INICIO (Professional Re-design)
   ============================================ */
.hero {
    background: linear-gradient(160deg, var(--pink) 0%, #AD1457 100%);
    padding: 100px 20px 120px;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero__bg-circles .circle {
    position: absolute;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
    filter: blur(40px);
}
.circle--1 { width: 400px; height: 400px; top: -150px; left: -100px; }
.circle--2 { width: 350px; height: 350px; bottom: -100px; right: -50px; }
.circle--3 { width: 200px; height: 200px; top: 10%; right: 20%; animation: float 10s infinite alternate; }

@keyframes float {
    from { transform: translateY(0) rotate(0deg); }
    to { transform: translateY(-30px) rotate(10deg); }
}

.hero__container {
    max-width: 1250px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 5;
}

@media (max-width: 992px) {
    .hero__container { grid-template-columns: 1fr; text-align: center; }
    .hero__visual { display: none; }
}

.hero__title {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
}
.hero__title span {
    color: var(--yellow);
    display: block;
}

.hero__subtitle {
    font-size: 1.25rem;
    opacity: .95;
    margin-bottom: 40px;
    font-weight: 500;
    max-width: 550px;
}

/* Trust Badges */
.hero__badges {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
@media (max-width: 992px) { .hero__badges { justify-content: center; } }

.h-badge {
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.2);
    padding: 10px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
}
.h-badge i { font-size: 1.1rem; color: var(--yellow); }

/* Hero Visual */
.hero__visual {
    position: relative;
    height: 500px;
}

.visual-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: var(--shadow-lg);
    border: 10px solid rgba(255,255,255,.1);
    animation: blobMorph 8s ease-in-out infinite alternate;
}

@keyframes blobMorph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; scale: 1; }
    50% { border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%; scale: 1.05; }
    100% { border-radius: 60% 40% 70% 30% / 30% 60% 40% 70%; scale: 1; }
}

.visual-float {
    position: absolute;
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    animation: floatIcon 4s ease-in-out infinite alternate;
    z-index: 10;
}
.float-1 { top: 10%; left: -20px; animation-delay: 0s; }
.float-2 { bottom: 10%; right: -20px; animation-delay: 1s; }

@keyframes floatIcon {
    from { transform: translateY(0); }
    to { transform: translateY(-20px); }
}


/* ============================================
   SEARCH RESULT AREA (Directly below input)
   ============================================ */
.search-result-area {
    margin-top: 30px;
    animation: slideUp 0.4s ease forwards;
}

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

.result-card {
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    color: var(--gray-dark);
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    margin: 0 auto;
    border: 2px solid var(--pink-light);
    position: relative;
    overflow: hidden;
}

.result-card--oferta {
    border-color: var(--orange);
    background: linear-gradient(135deg, #fff, var(--orange-soft));
}

.result-card .s-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--orange);
    color: #fff;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: .7rem;
    font-weight: 900;
}

.result-card .s-emoji {
    font-size: 5rem;
    margin-bottom: 10px;
    line-height: 1;
}

.result-card .s-cat {
    font-size: .75rem;
    font-weight: 800;
    color: var(--pink);
    background: var(--pink-pale);
    padding: 4px 12px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 10px;
}

.result-card .s-name {
    font-family: 'Nunito', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.result-card .s-code {
    font-size: .85rem;
    color: #bbb;
    margin-bottom: 20px;
}

.result-card .s-price-block {
    background: var(--gray-light);
    border-radius: 20px;
    padding: 20px;
}

.result-card .s-label {
    display: block;
    font-size: .8rem;
    color: var(--gray-mid);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
}

.result-card .s-price {
    font-family: 'Nunito', sans-serif;
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--orange);
    line-height: 1;
}

.result-card .s-price--regular {
    color: var(--gray-dark);
}

.result-card .s-old-price {
    font-size: 1rem;
    color: #bbb;
    text-decoration: line-through;
}

.result-error {
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    color: #fff;
    max-width: 450px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,.3);
}

.result-error .err-icon { font-size: 3rem; margin-bottom: 10px; }
.result-error p { font-weight: 600; font-size: 1.1rem; }


/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal {
    background: #fff;
    border-radius: 30px;
    max-width: 380px;
    width: 90%;
    padding: 40px;
    text-align: center;
    position: relative;
    transform: scale(.8);
    transition: var(--transition);
}

.modal-overlay.active .modal { transform: scale(1); }

.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gray-light);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: .9rem;
}

.modal__emoji { font-size: 5rem; margin-bottom: 10px; }
.modal__name { font-family: 'Nunito', sans-serif; font-size: 1.8rem; font-weight: 900; }
.modal__price { font-family: 'Nunito', sans-serif; font-size: 3.5rem; color: var(--orange); font-weight: 900; margin: 15px 0; }
.modal__price-block { background: var(--gray-light); padding: 20px; border-radius: 20px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gray-dark);
    padding: 60px 0 30px;
    text-align: center;
    color: #fff;
}

.footer__logo { width: 50px; opacity: .7; margin-bottom: 20px; }
.footer__text { opacity: .8; font-size: 1rem; font-weight: 500; }
.footer__sub { opacity: .4; font-size: .8rem; margin-top: 10px; }

/* ============================================
   NEW SECTIONS & UTILITIES
   ============================================ */
.section-padding { padding: 100px 0; }
.bg-white { background: var(--white); }
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

.section-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--gray-dark);
    margin-bottom: 12px;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-mid);
    max-width: 700px;
    margin: 0 auto 50px;
}

/* Nav Menu */
.nav-menu {
    display: none;
    list-style: none;
    gap: 30px;
}
@media (min-width: 992px) {
    .nav-menu { display: flex; }
}
.nav-menu a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    transition: var(--transition);
    opacity: .85;
}
.nav-menu a:hover { opacity: 1; transform: translateY(-2px); }

/* Quick Buttons Hero */
.hero__btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.btn-secondary {
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,.3);
    transition: var(--transition);
    font-size: .9rem;
}
.btn-secondary:hover { background: #fff; color: var(--pink); border-color: #fff; }

/* Sucursales */
.branch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.branch-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.branch-card:hover { transform: translateY(-10px); }
.branch-card__img { width: 100%; height: 220px; object-fit: cover; }
.branch-card__body { padding: 30px; }
.branch-card__title { font-family: 'Nunito', sans-serif; font-weight: 800; color: var(--pink); font-size: 1.4rem; margin-bottom: 15px; }
.branch-info { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-size: .95rem; color: var(--gray-mid); }
.branch-info i { color: var(--pink); margin-top: 4px; }

/* Venta en Ruta */
.ruta-section { background: var(--pink-pale); border-radius: 40px; padding: 60px; display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
.ruta-content { flex: 1; min-width: 300px; }
.ruta-image { flex: 1; min-width: 300px; border-radius: 24px; box-shadow: var(--shadow-lg); }

/* Form */
.c-form {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 20px;
}
.c-form input, .c-form textarea {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}
.c-form input:focus { border-color: var(--pink-light); }
.c-form button {
    background: var(--pink);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
}

/* Animations Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Category Grid (Products) */
.product-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.product-cat-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    border: 2px solid var(--pink-light);
    transition: var(--transition);
}
.product-cat-card:hover { background: var(--pink); color: #fff; transform: scale(1.05); }
.product-cat-card i { font-size: 3rem; margin-bottom: 15px; }

/* Maps */
.map-container {
    width: 100%;
    height: 350px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid var(--gray-light);
}
