/* ========================================
   DOMOSTORE - Sistema de Estilos
   Tienda de Domótica con Panel Admin
   ======================================== */

/* ====== CSS Variables ====== */
:root {
    /* Colores Primarios */
    --primary-dark: #0a1628;
    --primary-blue: #1a2b4a;
    --primary-navy: #0d1b2a;

    /* Acentos */
    --accent-cyan: #00d4ff;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-purple: #8b5cf6;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;

    /* Neutros */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(10, 22, 40, 0.95) 0%, rgba(26, 43, 74, 0.9) 100%);

    /* Tipografía */
    --font-primary: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;

    /* Tamaños */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Espaciado */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Bordes */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);

    /* Transiciones */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 300;
    --z-toast: 400;
}

/* ====== Reset & Base ====== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* ====== Utilities ====== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.section {
    padding: var(--space-16) 0;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: var(--space-2);
}

.gap-4 {
    gap: var(--space-4);
}

.gap-6 {
    gap: var(--space-6);
}

.gap-8 {
    gap: var(--space-8);
}

.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ====== Header / Navegación ====== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: var(--gradient-primary);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 var(--space-6);
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-accent);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.logo-text {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--accent-cyan);
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-link {
    color: var(--gray-300);
    font-weight: 500;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: var(--space-2) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent-cyan);
}

.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.cart-btn {
    position: relative;
    color: var(--white);
    font-size: var(--text-xl);
    padding: var(--space-2);
    transition: transform var(--transition-fast);
}

.cart-btn:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-cyan);
    color: var(--primary-dark);
    font-size: var(--text-xs);
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    color: var(--white);
    font-size: var(--text-2xl);
    padding: var(--space-2);
}

/* ====== Hero Section ====== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: var(--space-8);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--accent-cyan);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title span {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto var(--space-8);
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s both;
}

/* ====== Buttons ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--primary-dark);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--gray-600);
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

/* ====== Product Cards ====== */
.products-section {
    background: var(--white);
    padding: var(--space-20) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-label {
    color: var(--accent-cyan);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-2);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--gray-900);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-100);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--gray-50);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    background: var(--accent-cyan);
    color: var(--primary-dark);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
}

.product-badge.sale {
    background: var(--accent-red);
    color: var(--white);
}

.product-actions {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-base);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    color: var(--gray-600);
    transition: all var(--transition-fast);
}

.product-action-btn:hover {
    background: var(--accent-cyan);
    color: var(--primary-dark);
}

.product-info {
    padding: var(--space-4);
}

.product-category {
    color: var(--gray-500);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-1);
}

.product-name {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.price-current {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--accent-cyan);
}

.price-original {
    font-size: var(--text-sm);
    color: var(--gray-400);
    text-decoration: line-through;
}

.product-stock {
    margin-top: var(--space-2);
    font-size: var(--text-xs);
    color: var(--gray-500);
}

.product-stock.low {
    color: var(--accent-orange);
}

.product-stock.out {
    color: var(--accent-red);
}

/* ====== Category Banners ====== */
.category-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
    overflow: hidden;
}

.category-banner.reverse {
    direction: rtl;
}

.category-banner.reverse>* {
    direction: ltr;
}

.category-image {
    position: relative;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-banner:hover .category-image img {
    transform: scale(1.05);
}

.category-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-12);
    background: var(--primary-dark);
    color: var(--white);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    margin-bottom: var(--space-6);
}

.category-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.category-desc {
    color: var(--gray-400);
    font-size: var(--text-lg);
    margin-bottom: var(--space-6);
    max-width: 400px;
}

/* ====== Mission & Vision Section ====== */
.mission-vision-section {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    padding: var(--space-20) 0;
    position: relative;
    overflow: hidden;
}

.mission-vision-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.mission-vision-section .section-header {
    margin-bottom: var(--space-12);
}

.mission-vision-section .section-label {
    color: var(--accent-cyan);
}

.mission-vision-section .section-title {
    color: var(--white);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-10);
    position: relative;
    z-index: 1;
    perspective: 1000px;
}

/* Post-it Sticky Note Design */
.glass-card {
    position: relative;
    padding: var(--space-8) var(--space-8) var(--space-10);
    border-radius: 4px;
    box-shadow:
        4px 4px 15px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: top center;
    border: none;
    backdrop-filter: none;
}

/* Tape effect on top */
.glass-card::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.3) 100%);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Paper fold effect */
.glass-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 25px 25px;
    border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
    border-radius: 0 0 4px 0;
}

.glass-card:hover {
    transform: translateY(-12px) rotate(0deg) scale(1.02);
    box-shadow:
        8px 12px 30px rgba(0, 0, 0, 0.35),
        0 0 60px rgba(0, 0, 0, 0.15);
}

/* Mission Card - Cyan Post-it */
.mission-card {
    background: linear-gradient(145deg, #e0f7fa 0%, #b2ebf2 50%, #80deea 100%);
    transform: rotate(-2deg);
    border-left: none;
}

.mission-card:hover {
    transform: translateY(-12px) rotate(-1deg) scale(1.02);
}

/* Vision Card - Lavender Post-it */
.vision-card {
    background: linear-gradient(145deg, #f3e5f5 0%, #e1bee7 50%, #ce93d8 100%);
    transform: rotate(2deg);
    border-left: none;
}

.vision-card:hover {
    transform: translateY(-12px) rotate(1deg) scale(1.02);
}

/* Icon container - Pushpin style */
.mv-icon {
    position: absolute;
    top: -15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    z-index: 10;
}

.mission-card .mv-icon {
    background: radial-gradient(circle at 30% 30%, #00d4ff, #0891b2);
}

.vision-card .mv-icon {
    background: radial-gradient(circle at 30% 30%, #a855f7, #7c3aed);
}

.mv-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
    margin-top: var(--space-2);
    letter-spacing: -0.5px;
}

.mv-text {
    font-size: var(--text-base);
    color: var(--gray-700);
    line-height: 1.9;
    font-style: italic;
}

/* ====== Stats Section ====== */
.stats-section {
    background: var(--gradient-primary);
    padding: var(--space-12) 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--accent-cyan);
    margin-bottom: var(--space-2);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ====== Scroll Animations ====== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    /* Reset rotation for mobile */
    .mission-card,
    .vision-card {
        transform: rotate(0deg);
    }

    .mission-card:hover,
    .vision-card:hover {
        transform: translateY(-8px) scale(1.01);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .glass-card {
        padding: var(--space-6);
        margin-top: var(--space-4);
    }

    .mv-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        top: -10px;
        right: 15px;
    }

    .glass-card::before {
        width: 60px;
        height: 20px;
        top: -10px;
    }
}

/* ====== Footer ====== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

.footer-brand .logo {
    margin-bottom: var(--space-4);
}

.footer-brand p {
    font-size: var(--text-sm);
    line-height: 1.7;
    max-width: 300px;
}

.footer-title {
    color: var(--white);
    font-weight: 600;
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    font-size: var(--text-sm);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.payment-methods {
    display: flex;
    gap: var(--space-3);
}

.payment-methods img {
    height: 30px;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.payment-methods img:hover {
    opacity: 1;
}

/* ====== Floating Elements ====== */
.floating-whatsapp {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: var(--z-sticky);
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--text-2xl);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-fast);
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

.scroll-top {
    position: fixed;
    bottom: var(--space-6);
    left: var(--space-6);
    z-index: var(--z-sticky);
    width: 45px;
    height: 45px;
    background: var(--primary-dark);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: var(--text-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--accent-cyan);
    color: var(--primary-dark);
}

/* ====== Animations ====== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ====== Product Detail Modal ====== */
.product-detail-modal {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    border-radius: var(--radius-2xl);
}

.product-detail-modal .modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-full);
    font-size: 1.5rem;
    color: var(--gray-600);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
}

.product-detail-modal .modal-close:hover {
    background: var(--white);
    color: var(--accent-red);
    transform: rotate(90deg);
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.product-detail-image {
    position: relative;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    overflow: hidden;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-4);
    transition: transform var(--transition-slow);
    cursor: zoom-in;
}

.product-detail-image img:hover {
    transform: scale(1.1);
}

.detail-badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.product-detail-info {
    padding: var(--space-10);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.detail-category {
    color: var(--accent-cyan);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.detail-description {
    color: var(--gray-600);
    font-size: var(--text-base);
    line-height: 1.7;
    flex-grow: 1;
}

.detail-pricing {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    margin: var(--space-2) 0;
}

.detail-price {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--accent-cyan);
}

.detail-original {
    font-size: var(--text-xl);
    color: var(--gray-400);
    text-decoration: line-through;
}

.detail-stock {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--accent-green);
}

.detail-stock.low {
    color: var(--accent-orange);
}

.detail-stock.out {
    color: var(--accent-red);
}

.detail-quantity {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin: var(--space-4) 0;
}

.detail-quantity label {
    font-weight: 600;
    color: var(--gray-700);
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.quantity-selector button {
    width: 44px;
    height: 44px;
    background: var(--gray-100);
    border: none;
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quantity-selector button:hover {
    background: var(--accent-cyan);
    color: var(--white);
}

.quantity-selector input {
    width: 60px;
    height: 44px;
    text-align: center;
    border: none;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gray-900);
}

.detail-add-cart {
    width: 100%;
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
    margin-top: var(--space-4);
}

.detail-add-cart:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    box-shadow: none;
}

/* Responsive Product Detail */
@media (max-width: 768px) {
    .product-detail-content {
        grid-template-columns: 1fr;
    }

    .product-detail-image {
        min-height: 250px;
    }

    .product-detail-info {
        padding: var(--space-6);
    }

    .detail-title {
        font-size: var(--text-2xl);
    }

    .detail-price {
        font-size: var(--text-3xl);
    }
}

/* ====== Checkout Modal ====== */
.checkout-modal {
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.checkout-section {
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--gray-200);
}

.checkout-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.checkout-section h4 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-4);
}

.checkout-section h4 i {
    color: var(--accent-cyan);
}

.checkout-items {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: var(--text-sm);
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    color: var(--white);
    font-weight: 600;
}

.checkout-total .total-amount {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--accent-cyan);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.checkout-footer {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
}

.checkout-footer .btn-primary {
    flex: 1;
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.checkout-footer .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .checkout-footer {
        flex-direction: column;
    }

    .checkout-footer .btn {
        width: 100%;
    }
}

/* ====== Responsive ====== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .category-banner {
        grid-template-columns: 1fr;
    }

    .category-content {
        padding: var(--space-8);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-inner {
        height: 60px;
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .section-title {
        font-size: var(--text-3xl);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: var(--space-4);
    }
}

/* ====== Admin Panel Styles ====== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--primary-dark);
    color: var(--white);
    padding: var(--space-6);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar .logo {
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--gray-700);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--gray-400);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
}

.admin-nav-item i {
    width: 20px;
    text-align: center;
}

.admin-nav-section {
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--gray-700);
}

.admin-nav-section-title {
    color: var(--gray-500);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-3);
    padding: 0 var(--space-4);
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    background: var(--gray-50);
}

.admin-header {
    background: var(--white);
    padding: var(--space-4) var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.admin-header-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--gray-800);
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.admin-content {
    padding: var(--space-6);
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.dashboard-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.dashboard-card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
}

.dashboard-card-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
}

.dashboard-card-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.dashboard-card-icon.orange {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-orange);
}

.dashboard-card-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
}

.dashboard-card-icon.red {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

.dashboard-card-content h3 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-1);
}

.dashboard-card-content p {
    color: var(--gray-500);
    font-size: var(--text-sm);
}

/* Admin Tables */
.admin-table-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.admin-table-header {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-table-title {
    font-weight: 600;
    color: var(--gray-800);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: var(--space-4) var(--space-6);
    text-align: left;
}

.admin-table th {
    background: var(--gray-50);
    color: var(--gray-600);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.admin-table tr {
    border-bottom: 1px solid var(--gray-100);
}

.admin-table tr:last-child {
    border-bottom: none;
}

.admin-table tr:hover {
    background: var(--gray-50);
}

/* Forms */
.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--gray-800);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform var(--transition-base);
}

.modal.modal-large {
    max-width: 1200px;
    width: 95%;
}

.modal.modal-large .modal-body {
    padding: var(--space-6) var(--space-8);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-weight: 600;
    color: var(--gray-800);
}

.modal-close {
    color: var(--gray-400);
    font-size: var(--text-xl);
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--gray-800);
}

.modal-body {
    padding: var(--space-6);
}

.modal-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
}

/* ====== Tareas del Proyecto ====== */
.tarea-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-base);
    position: relative;
}

.tarea-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.tarea-card.completada {
    opacity: 0.7;
    background: var(--gray-50);
}

.tarea-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-top: 0.25rem;
    accent-color: var(--accent-green);
    flex-shrink: 0;
}

.tarea-card input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tarea-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 500;
    display: inline-block;
}

.tarea-badge.producto {
    background: var(--accent-cyan);
}

.tarea-badge.servicio {
    background: var(--accent-orange);
}

.tarea-nombre {
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.tarea-nombre.completada {
    text-decoration: line-through;
    color: var(--gray-500);
}

.tarea-descripcion {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.tarea-descripcion.completada {
    text-decoration: line-through;
    color: var(--gray-400);
}

.tarea-fecha-completada {
    margin: 0.5rem 0 0 0;
    font-size: 0.75rem;
    color: var(--accent-green);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Subtareas */
.subtareas-container {
    margin-top: 0.75rem;
    margin-left: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--gray-200);
    transition: all var(--transition-base);
}

.subtareas-container.expanded {
    border-left-color: var(--accent-orange);
}

.subtarea-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    margin-bottom: 0.25rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.subtarea-item:hover {
    background: var(--gray-100);
}

.subtarea-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent-green);
    flex-shrink: 0;
}

.subtarea-nombre {
    flex: 1;
    font-size: 0.875rem;
    color: var(--gray-800);
}

.subtarea-nombre.completada {
    text-decoration: line-through;
    color: var(--gray-500);
}

.subtarea-actions {
    display: flex;
    gap: 0.25rem;
}

.subtarea-btn {
    padding: 0.25rem;
    font-size: 0.75rem;
    border: none;
    background: transparent;
    color: var(--accent-red);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.subtarea-btn:hover {
    background: var(--gray-200);
}

.btn-subtareas-toggle {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-subtareas-toggle:hover {
    background: var(--gray-50);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.btn-agregar-subtarea {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-agregar-subtarea:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: white;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tarea-card {
    animation: fadeIn 0.3s ease-out;
}

.subtarea-item {
    animation: fadeIn 0.2s ease-out;
}

/* Progreso de tareas */
.tareas-progress-bar {
    background: var(--gray-200);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.tareas-progress-fill {
    background: linear-gradient(90deg, #10b981, #059669);
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Admin Light Theme Button Override */
.modal-body .btn-secondary,
.admin-main .btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.modal-body .btn-secondary:hover,
.admin-main .btn-secondary:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.05);
}

.modal-body .btn-primary,
.admin-main .btn-primary {
    background: var(--gradient-accent);
    color: var(--gray-900);
    border: none;
}

.modal-footer .btn-primary {
    background: var(--gradient-accent);
    color: var(--gray-900);
}

.modal-footer .btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-orange);
}

.status-badge.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

.status-badge.info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: var(--space-6);
    right: var(--space-6);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.toast {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left: 4px solid var(--accent-green);
}

.toast.error {
    border-left: 4px solid var(--accent-red);
}

.toast.warning {
    border-left: 4px solid var(--accent-orange);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--accent-cyan);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ====== Responsive / Media Queries ====== */

/* Pantallas medianas (laptops pequeñas: 1366x768) */
@media (max-width: 1400px) {

    /* Reducir tamaño base de fuente */
    html {
        font-size: 14px;
    }

    /* Admin Panel - Reducir tamaños */
    .admin-sidebar {
        width: 220px;
        padding: var(--space-4);
    }

    .admin-main {
        margin-left: 220px;
    }

    .admin-nav-item {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-sm);
    }

    .admin-nav-item i {
        width: 18px;
        font-size: var(--text-sm);
    }

    .admin-header {
        padding: var(--space-3) var(--space-4);
    }

    .admin-header h1 {
        font-size: var(--text-xl);
    }

    .view-content {
        padding: var(--space-4);
    }

    /* Reducir tamaños de cards y elementos */
    .admin-table-container {
        padding: var(--space-4);
    }

    .admin-table-title {
        font-size: var(--text-lg);
    }

    /* Modales más compactos */
    .modal {
        max-width: 90%;
        padding: var(--space-4);
    }

    .modal-header h3 {
        font-size: var(--text-xl);
    }

    /* Grids más eficientes */
    .admin-table {
        font-size: var(--text-sm);
    }

    .admin-table th,
    .admin-table td {
        padding: var(--space-2) var(--space-3);
    }

    /* Botones más pequeños */
    .btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-sm);
    }

    .btn-lg {
        padding: var(--space-3) var(--space-5);
        font-size: var(--text-base);
    }

    /* Formularios más compactos */
    .form-group {
        margin-bottom: var(--space-3);
    }

    .form-label {
        font-size: var(--text-sm);
        margin-bottom: var(--space-1);
    }

    .form-input,
    .form-textarea,
    .form-select {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-sm);
    }

    /* Stats cards más pequeñas */
    .admin-table-container>div[style*="grid-template-columns"] {
        gap: var(--space-3) !important;
    }

    /* Footer más compacto */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6);
    }

    /* Reducir tamaños de fuente en elementos inline del admin */
    #viewContent [style*="font-size: 2rem"],
    #viewContent [style*="font-size: 1.75rem"] {
        font-size: 1.25rem !important;
    }

    #viewContent [style*="font-size: 1.5rem"] {
        font-size: 1.125rem !important;
    }

    /* Reducir padding en cards y contenedores */
    #viewContent [style*="padding: 2rem"] {
        padding: 1rem !important;
    }

    #viewContent [style*="padding: 1.5rem"] {
        padding: 1rem !important;
    }

    /* Reducir tamaños en grids de stats */
    #viewContent [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    #viewContent [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    /* Modales más compactos */
    .modal-body {
        max-height: 70vh;
        overflow-y: auto;
        padding: 1rem !important;
    }

    /* Tablas más compactas */
    .admin-table {
        font-size: 0.8125rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem 0.75rem;
    }

    /* Headers más pequeños */
    #viewContent h1 {
        font-size: 1.5rem !important;
    }

    #viewContent h2 {
        font-size: 1.25rem !important;
    }

    #viewContent h3 {
        font-size: 1.125rem !important;
    }

    /* Dashboard cards más compactas */
    .dashboard-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Reducir gap en grids */
    #viewContent [style*="gap: 1.5rem"] {
        gap: 1rem !important;
    }

    #viewContent [style*="gap: 1rem"] {
        gap: 0.75rem !important;
    }
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .category-banner {
        grid-template-columns: 1fr;
    }

    .category-banner.reverse {
        direction: ltr;
    }

    .category-image {
        min-height: 300px;
    }

    /* Admin sidebar colapsable en tablets */
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-base);
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }
}

@media (max-width: 768px) {

    /* Header Mobile */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--gradient-primary);
        flex-direction: column;
        padding: var(--space-6);
        gap: var(--space-1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        box-shadow: var(--shadow-lg);
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: var(--space-3) var(--space-4);
        width: 100%;
        text-align: center;
        border-radius: var(--radius-md);
    }

    .nav-link:hover {
        background: rgba(0, 212, 255, 0.1);
    }

    /* Hero Mobile */
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: var(--text-base);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
    }

    /* Category Banner */
    .category-content {
        padding: var(--space-8);
    }

    .category-title {
        font-size: var(--text-2xl);
    }

    /* Section Header */
    .section-title {
        font-size: var(--text-2xl);
    }

    /* Floating Buttons */
    .floating-whatsapp,
    .scroll-top {
        width: 50px;
        height: 50px;
        font-size: var(--text-xl);
    }

    /* Admin hide button on mobile */
    .header-actions .btn-primary {
        display: none;
    }

    /* Admin Panel Mobile */
    .admin-sidebar {
        width: 200px;
        padding: var(--space-3);
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-nav-item {
        padding: var(--space-2);
        font-size: var(--text-xs);
    }

    .admin-content {
        padding: var(--space-3);
    }

    .admin-table-container {
        padding: var(--space-3);
        overflow-x: auto;
    }

    .modal {
        max-width: 95%;
        padding: var(--space-3);
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 0 var(--space-4);
    }

    .logo-text {
        font-size: var(--text-lg);
    }

    .logo-icon {
        width: 35px;
        height: 35px;
    }

    .container {
        padding: 0 var(--space-3);
    }

    .section {
        padding: var(--space-10) 0;
    }
}