/* ==========================================================================
   TRATAMIENTOS CAPILARES LULÚ - ESTILOS PRINCIPALES Y SISTEMA DE DISEÑO
   Paleta Botánica: Plum Profundo (#330F32), Oro Cálido (#E89A14), Rosa (#C6276E), Crema (#FAF6F0)
   Tipografías: Outfit / Plus Jakarta Sans / Playfair Display
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,400;1,600&display=swap');

:root {
    --color-primary: #350F33;         /* Púrpura Botánico Lulú */
    --color-primary-light: #52194E;
    --color-primary-dark: #220822;
    --color-gold: #E59819;            /* Dorado Canela & Miel */
    --color-gold-hover: #D1870C;
    --color-gold-light: #FFF2D6;
    --color-rose: #C6276E;            /* Rosa Flor Lulú */
    --color-rose-light: #FCE8F1;
    --color-cream: #FAF6F0;           /* Fondo Cálido Orgánico */
    --color-cream-card: #FFFFFF;
    --color-text-main: #1F191E;
    --color-text-muted: #665D65;
    --color-text-light: #948B93;
    --color-border: #EFE6DC;
    --color-success: #10B981;
    --color-success-bg: #ECFDF5;
    --color-warning: #F59E0B;
    --color-danger: #EF4444;
    --color-whatsapp: #25D366;
    --color-whatsapp-hover: #1EBE5B;
    
    --font-heading: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;

    --shadow-sm: 0 2px 8px rgba(53, 15, 51, 0.05);
    --shadow-md: 0 8px 24px rgba(53, 15, 51, 0.08);
    --shadow-lg: 0 16px 36px rgba(53, 15, 51, 0.12);
    --shadow-gold: 0 8px 20px rgba(229, 152, 25, 0.28);
    --shadow-plum: 0 8px 24px rgba(53, 15, 51, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & utilities */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    color: var(--color-text-main);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-primary);
}

.font-serif-heading {
    font-family: var(--font-serif);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #F2ECE4;
}
::-webkit-scrollbar-thumb {
    background: #D5C7B8;
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

/* Glassmorphism Effects */
.glass-nav {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(229, 152, 25, 0.18);
}

/* Category Filter Tabs in Public Store */
.category-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    color: #554452;
    background: #FFFFFF;
    border: 1.5px solid var(--color-border);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.category-filter-btn:hover {
    background: #FAF3EA;
    border-color: var(--color-gold);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.category-filter-btn.active {
    background: var(--color-primary);
    color: #FFFFFF;
    border-color: var(--color-primary);
    box-shadow: 0 6px 18px rgba(53, 15, 51, 0.25);
}

.category-filter-btn.active .cat-icon {
    transform: scale(1.15);
}

/* Badges */
.botanical-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.825rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-gold {
    background-color: var(--color-gold-light);
    color: #9C5D00;
    border: 1px solid rgba(229, 152, 25, 0.4);
}

.badge-rose {
    background-color: var(--color-rose-light);
    color: #9E1352;
    border: 1px solid rgba(198, 39, 110, 0.3);
}

.badge-plum {
    background-color: rgba(53, 15, 51, 0.08);
    color: var(--color-primary);
    border: 1px solid rgba(53, 15, 51, 0.15);
}

/* Custom Buttons */
.btn-gold {
    background: linear-gradient(135deg, #F3AC26 0%, #E59819 100%);
    color: #1F1100;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.85rem 1.85rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(229, 152, 25, 0.38);
    background: linear-gradient(135deg, #FBBF3B 0%, #EAA023 100%);
}

.btn-whatsapp-hero {
    background-color: var(--color-whatsapp);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.85rem 1.85rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.25s ease;
}

.btn-whatsapp-hero:hover {
    background-color: var(--color-whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(37, 211, 102, 0.42);
}

.btn-outline-plum {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-outline-plum:hover {
    background: var(--color-primary);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-outline-white {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

/* Interactive Ingredient Cards */
.ingredient-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 1.75rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.ingredient-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-rose) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ingredient-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(229, 152, 25, 0.4);
}

.ingredient-card:hover::before {
    opacity: 1;
}

/* Floating WhatsApp Button */
.whatsapp-float-container {
    position: fixed;
    bottom: 26px;
    right: 26px;
    z-index: 990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.whatsapp-float-btn {
    width: 62px;
    height: 62px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1) rotate(6deg);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.55);
}

.whatsapp-badge-pulse {
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background-color: #EF4444;
    border: 2px solid white;
    border-radius: 50%;
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.whatsapp-tooltip {
    background: #FFFFFF;
    color: var(--color-primary);
    padding: 0.6rem 1rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    font-size: 0.825rem;
    font-weight: 600;
    margin-bottom: 10px;
    white-space: nowrap;
    border-left: 4px solid #25D366;
    animation: bounceIn 0.5s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes bounceIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(34, 8, 34, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    transform: scale(0.92) translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

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

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: #FFFFFF;
    color: var(--color-text-main);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 30px rgba(53, 15, 51, 0.18);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 280px;
    max-width: 400px;
    font-size: 0.9rem;
    border-left: 5px solid var(--color-primary);
    pointer-events: auto;
    animation: slideInRight 0.35s ease;
    transition: all 0.3s ease;
}

.toast.toast-success { border-left-color: var(--color-success); }
.toast.toast-error { border-left-color: var(--color-danger); }
.toast.toast-warning { border-left-color: var(--color-warning); }

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

/* Admin Dashboard Specifics */
.admin-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    color: #64748B;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
    white-space: nowrap;
}

.admin-tab-btn:hover {
    background: rgba(53, 15, 51, 0.05);
    color: var(--color-primary);
}

.admin-tab-btn.active {
    background: var(--color-primary);
    color: #FFFFFF;
    box-shadow: var(--shadow-sm);
}

.admin-subtab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 9999px;
    color: #64748B;
    background: #F1F5F9;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.admin-subtab-btn:hover {
    background: #E2E8F0;
    color: #1E293B;
}

.admin-subtab-btn.active {
    background: var(--color-primary);
    color: #FFFFFF;
}

.stat-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Image Dropzone & Uploader in Admin */
.image-upload-box {
    border: 2px dashed #CBD5E1;
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    background: #F8FAFC;
    cursor: pointer;
    transition: all 0.2s ease;
}

.image-upload-box:hover {
    border-color: var(--color-gold);
    background: #FFFDF9;
}

.image-preview-thumb {
    width: 100%;
    height: 140px;
    object-fit: contain;
    border-radius: 0.75rem;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    padding: 0.5rem;
}

/* Responsive Table */
.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.custom-table th {
    background: #F8FAFC;
    padding: 0.85rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748B;
    border-bottom: 1px solid var(--color-border);
}

.custom-table td {
    padding: 1rem;
    border-bottom: 1px solid #F1F5F9;
    font-size: 0.875rem;
}

.custom-table tr:hover td {
    background-color: #FAF6F0;
}

/* Mobile Quick Navigation Bar */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-border);
    padding: 0.5rem 1rem;
    z-index: 950;
    justify-content: space-around;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
    }
    body {
        padding-bottom: 60px;
    }
    .whatsapp-float-container {
        bottom: 80px;
        right: 18px;
    }
}
