/* //00010 GLOBAL.CSS - Las Delicias de Sofía */
:root { 
    /* //00011 COLORES PRINCIPALES */
    --primary: #e91e63; 
    --primary-light: #f8bbd0; 
    --secondary: #ffb300; 
    --bg: #fafafa; 
    --text-main: #333; 
    --border: #e0e0e0; 
    --success: #4caf50; 
    --danger: #f44336; 
    --panel-bg: #fff; 
    --shadow: 0 10px 30px rgba(233, 30, 99, 0.15);
    --saas-bg: #f4f7f6;
}

/* //00012 RESET Y FUENTES */
* { 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, sans-serif; 
}

body { 
    margin: 0; 
    background: var(--bg); 
    color: var(--text-main); 
    overflow-x: hidden; 
}

/* //00020 SECCIÓN B - ANIMACIONES GLOBALES */
@keyframes fadeInUp { 
    from { opacity: 0; transform: translateY(20px); } 
    to { opacity: 1; transform: translateY(0); } 
}

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

@keyframes pop { 
    0% { transform: scale(1); } 
    50% { transform: scale(1.15); } 
    100% { transform: scale(1); } 
}

@keyframes fall { 
    to { transform: translateY(100vh) rotate(720deg); opacity: 0; } 
}

/* //00021 TRANSICIONES DE BOTONES */
button { 
    transition: all 0.3s ease; 
    cursor: pointer; 
}

button:active { 
    transform: scale(0.95); 
}

/* //00030 SECCIÓN C - HEADER Y NAVEGACIÓN */
header { 
    background: white; 
    padding: 15px 30px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 2px solid var(--primary-light); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
}

.logo { 
    font-size: 24px; 
    font-weight: bold; 
    color: var(--primary); 
    cursor: pointer; 
}

.nav-tabs { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.nav-tabs button { 
    background: none; 
    border: none; 
    padding: 10px 20px; 
    font-size: 16px; 
    color: #777; 
    font-weight: 500; 
    border-bottom: 3px solid transparent; 
}

.nav-tabs button.active { 
    color: var(--primary); 
    border-bottom-color: var(--primary); 
    font-weight: bold; 
}

/* //00040 SECCIÓN D - BOTONES PRINCIPALES */
.btn-primary { 
    background: var(--primary); 
    color: white; 
    border: none; 
    padding: 12px 24px; 
    border-radius: 8px; 
    font-weight: bold; 
    box-shadow: 0 4px 10px rgba(233,30,99,0.3); 
}

.btn-primary:hover { 
    background: #d81b60; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 15px rgba(233,30,99,0.4); 
}

/* //00050 SECCIÓN E - TIENDA PÚBLICA (GRID Y TARJETAS) */
.grid-productos { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 25px; 
    padding: 30px; 
    max-width: 1400px; 
    margin: 0 auto; 
}

.card-producto { 
    background: white; 
    border-radius: 15px; 
    padding: 20px; 
    text-align: center; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    transition: transform 0.3s, box-shadow 0.3s; 
    animation: fadeInUp 0.5s ease-out both; 
}

.card-producto:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow); 
}

.card-producto img { 
    width: 100%; 
    height: 180px; 
    object-fit: cover; 
    border-radius: 10px; 
    margin-bottom: 15px; 
    background: #eee; 
}

.btn-add { 
    background: var(--primary); 
    color: white; 
    border: none; 
    padding: 12px; 
    border-radius: 25px; 
    width: 100%; 
    font-weight: bold; 
    margin-top: 15px; 
    font-size: 16px;
}

/* //00060 SECCIÓN F - CARRITO FLOTANTE */
#cart-btn { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    background: var(--primary); 
    color: white; 
    width: 65px; 
    height: 65px; 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 28px; 
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4); 
    z-index: 900; 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

#cart-btn:hover { 
    transform: scale(1.1); 
}

#cart-btn.pop { 
    animation: pop 0.3s ease; 
}

#cart-count { 
    position: absolute; 
    top: 0; 
    right: 0; 
    background: var(--secondary); 
    color: #333; 
    font-weight: bold; 
    font-size: 14px; 
    width: 25px; 
    height: 25px; 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
}

/* //00070 SECCIÓN G - MODALES (OVERLAY Y CONTENIDO) */
.modal-overlay { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.6); 
    justify-content: center; 
    align-items: center; 
    z-index: 1000; 
}

.modal-overlay.active { 
    display: flex; 
}

.modal-content { 
    background: white; 
    padding: 30px; 
    border-radius: 20px; 
    width: 90%; 
    max-width: 500px; 
    max-height: 90vh; 
    overflow-y: auto; 
}

/* //00080 SECCIÓN H - CONFETI */
.confetti { 
    position: fixed; 
    width: 10px; 
    height: 10px; 
    z-index: 9999; 
    pointer-events: none; 
    animation: fall 3s linear forwards; 
}

/* //00090 SECCIÓN I - UTILIDADES */
.hidden { 
    display: none !important; 
}

/* //00095 SECCIÓN J - HERO DE ALTO IMPACTO */
.hero-section { background: linear-gradient(135deg, #fdf2f8 0%, #fff9e6 100%); padding: 60px 30px; }
.hero-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-badge { display: inline-block; background: var(--primary); color: white; padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: bold; margin-bottom: 20px; letter-spacing: 1px; }
.hero-title { font-size: 48px; color: var(--text-main); line-height: 1.2; margin: 0 0 20px 0; }
.hero-title span { color: var(--primary); }
.hero-subtitle { font-size: 18px; color: #666; margin: 0 0 30px 0; line-height: 1.6; }
.hero-cta { display: flex; gap: 15px; margin-bottom: 30px; }
.hero-cta a { padding: 14px 32px; font-size: 16px; text-decoration: none; display: inline-block; border-radius: 8px; }
.hero-btn-secondary { color: var(--primary); border: 2px solid var(--primary); background: transparent; }
.hero-image img { width: 100%; max-width: 450px; border-radius: 20px; box-shadow: 0 20px 40px rgba(233, 30, 99, 0.2); }

/* //00096 LOGO */
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 45px; width: 45px; border-radius: 50%; object-fit: cover; }

/* //00097 RESPONSIVE */
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr !important; gap: 30px !important; }
    .hero-title { font-size: 32px !important; }
    .hero-image { text-align: center; }
}

