/* ==========================================================================
   SISTEMA DE DISEÑO MODERNIZADO (Plus Jakarta Sans & Outfit)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --primary-blue: #0057B8;
    --primary-dark: #003F8A;
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: #f8f9fa;
    font-family: var(--font-main);
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-4,
.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* ==========================================================================
   ANIMACIONES SUAVES & TRANSICIONES
   ========================================================================== */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover suave en tarjetas */
.product-card {
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 87, 184, 0.1);
}

.product-card img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   SKELETON LOADING
   ========================================================================== */
.skeleton {
    background: #e2e8f0;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    border-radius: 8px;
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

.skeleton-card {
    height: 400px;
    width: 100%;
    margin-bottom: 2rem;
}

/* ==========================================================================
   BANNER PARALLAX
   ========================================================================== */
.parallax-banner {
    position: relative;
    overflow: hidden;
    height: 450px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ==========================================================================
   TRANSICIÓN EN FILTROS
   ========================================================================== */
.collapse {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-select,
.form-control {
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-select:focus,
.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 87, 184, 0.1);
}

/* ==========================================================================
   COMPONENTES EXISTENTES
   ========================================================================== */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.btn-primary {
    background-color: var(--primary-blue) !important;
    border: none;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 87, 184, 0.3);
}

.bg-custom-blue {
    background-color: var(--primary-blue) !important;
}

.badge {
    padding: 0.5em 0.8em;
    font-weight: 600;
    border-radius: 6px;
}

.display-4 {
    font-weight: 800;
    letter-spacing: -1px;
}

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-label {
    position: absolute;
    right: 70px;
    background-color: #25d366;
    color: white;
    padding: 8px 15px;
    border-radius: 20px 20px 0 20px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    animation: bounceX 2s infinite;
}

@keyframes bounceX {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(0);
    }

    40% {
        transform: translateX(-10px);
    }

    60% {
        transform: translateX(-5px);
    }
}

.whatsapp-float:hover .whatsapp-label {
    background-color: #20b858;
    transform: scale(1.05) translateX(-5px);
}

.whatsapp-float:hover {
    background-color: #20b858;
    color: #FFF;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0px 6px 20px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

    .whatsapp-label {
        display: none;
    }
}

/* ==========================================================================
   NAVEGACIÓN MODERNA
   ========================================================================== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.navbar .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
    opacity: 0.85;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

.search-input-modern {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-radius: 10px !important;
    padding-left: 1.2rem !important;
    transition: var(--transition-smooth);
}

.search-input-modern::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.search-input-modern:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.btn-search-modern {
    border-radius: 10px !important;
    margin-left: -45px;
    border: none !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.7) !important;
    transition: var(--transition-smooth);
}

.btn-search-modern:hover {
    color: white !important;
    transform: scale(1.1);
}

.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 0.8rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    transition: var(--transition-smooth);
}

.dropdown-item:hover {
    background-color: rgba(0, 87, 184, 0.05);
    padding-left: 1.25rem;
    color: var(--primary-blue);
}

.dropdown-header-admin {
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    color: #94a3b8 !important;
    padding: 0.5rem 1.2rem 0.2rem !important;
}

.dropdown-item-admin {
    padding: 0.5rem 1.2rem !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    border-radius: 8px !important;
    margin: 0 0.5rem !important;
    width: auto !important;
}

.dropdown-item-admin i {
    font-size: 1.1rem;
    width: 24px;
    margin-right: 8px;
    opacity: 0.7;
}

.dropdown-item-admin:hover i {
    opacity: 1;
}

.dropdown-divider-light {
    border-top: 1px solid #f1f5f9 !important;
    margin: 0.4rem 0 !important;
}

/* ==========================================================================
   SIDEBAR LATERAL (OFFCANVAS DASHBOARD)
   ========================================================================== */
.offcanvas-admin {
    background-color: #0f172a !important;
    /* Slate 900 - Muy Premium */
    color: #f8fafc !important;
    width: 280px !important;
    border-right: none !important;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
}

.offcanvas-admin .btn-close-white {
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.offcanvas-admin .btn-close-white:hover {
    transform: rotate(90deg);
    opacity: 1;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-section-title {
    font-size: 0.65rem;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    padding: 1.5rem 1.5rem 0.6rem;
    display: block;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.25rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 12px;
    margin: 0.2rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-link i {
    font-size: 1.25rem;
    width: 32px;
    transition: var(--transition-smooth);
}

.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding-left: 1.75rem;
}

.sidebar-link.active {
    background: linear-gradient(135deg, var(--primary-blue), #2563eb);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 87, 184, 0.3);
}

.sidebar-link.active i {
    color: #fff;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(to top, #0f172a 80%, rgba(15, 23, 42, 0.9));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
}


.admin-badge-sidebar {
    background: rgba(0, 87, 184, 0.2);
    color: var(--primary-blue);
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(0, 87, 184, 0.3);
}



/* ==========================================================================
   PIE DE PÁGINA REDES SOCIALES
   ========================================================================== */
.footer-social-bar {
    background-color: var(--primary-blue);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon-link {
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.social-icon-link:hover {
    color: var(--primary-blue);
    background: #fff;
    transform: translateY(-3px);
}

.footer-logo-img {
    max-height: 45px;
}