/* ========== VARIABLES Y RESET ========== */
:root {
    --primary: #FF6B9D;
    --primary-dark: #E8568A;
    --secondary: #FF9F43;
    --accent: #5F27CD;
    --success: #00D2A0;
    --danger: #FF4757;
    --warning: #FFA502;
    --info: #3742FA;
    
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --border: #E1E8ED;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.2);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
}

/* ========== NAVBAR ========== */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 16px;
}

.navbar-logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.navbar-logo-img {
    max-height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* Clases de visibilidad */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: inline-flex;
}

/* Barra de búsqueda móvil - oculta por defecto */
.mobile-search-bar {
    display: none;
}

/* Banner móvil - oculto por defecto */
.mobile-banner {
    display: none;
}

/* Botones flotantes WhatsApp - ocultos por defecto en desktop */
.whatsapp-float {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }

    .whatsapp-float {
        display: flex !important;
    }
}

.menu-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

.navbar-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

.navbar-menu a {
    font-weight: 600;
    transition: var(--transition);
    color: var(--text-dark);
    position: relative;
}

.navbar-menu a:hover {
    color: var(--primary);
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.navbar-menu a:hover::after {
    width: 100%;
}

/* Menú solo visible en móvil para páginas que NO son index */
.navbar-menu-mobile-only {
    display: none;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-search {
    position: relative;
}

.navbar-search input {
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    width: 250px;
    transition: var(--transition);
}

.navbar-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

/* Ocultar buscador en página de tienda */
.page-tienda .navbar-search {
    display: none;
}

.navbar-cart {
    position: relative;
    background: var(--bg-light);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.navbar-cart:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.navbar-login {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-dark);
}

.navbar-login:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Desplegable de usuario moderno */
.navbar-user-dropdown {
    position: relative;
}

.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.user-dropdown-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.user-dropdown-btn .dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.user-dropdown-menu.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-header .welcome-text {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.dropdown-header .user-name-full {
    display: block;
    font-weight: 700;
    font-size: 16px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-size: 14px;
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.dropdown-item .item-icon {
    font-size: 18px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.logout-btn {
    color: var(--danger) !important;
    font-weight: 600;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1) !important;
}

/* Estilos anteriores conservados para compatibilidad */
.navbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    padding: 10px 16px;
    border-radius: var(--radius-md);
}

.navbar-user .user-name {
    font-weight: 600;
}

.btn-logout {
    background: var(--danger);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    opacity: 0.8;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Botón hamburguesa (móvil) */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========== HERO SECTION ========== */
.hero-section {
    background: linear-gradient(135deg, #FFE5F1 0%, #FFF4E6 100%);
    padding: 80px 0;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-badge {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    height: 400px;
}

.hero-circle {
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.hero-floating {
    position: absolute;
    font-size: 64px;
    animation: float 4s ease-in-out infinite;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ========== FEATURES SECTION ========== */
.features-section {
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* Indicadores de puntos - ocultos en desktop */
.features-dots {
    display: none;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* ========== SECTIONS ========== */
.categories-section,
.products-section {
    padding: 80px 0;
}

.bg-light {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
}

/* ========== CATEGORIES GRID ========== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

/* Elementos del carrusel - ocultos en desktop */
.categories-carousel-wrapper {
    position: relative;
}

.carousel-nav-btn {
    display: none;
}

.categories-progress-bar {
    display: none;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    font-size: 64px;
    margin-bottom: 16px;
    display: block;
}

.category-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 16px;
}

.category-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.category-count {
    font-size: 14px;
    color: var(--text-light);
}

/* ========== PRODUCTS GRID ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    min-height: 400px;
    transition: opacity 0.2s ease;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-image-container {
    position: relative;
    padding-top: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.product-image-container::before {
    content: '🎪';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 64px;
    opacity: 0.3;
    z-index: 0;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    z-index: 1;
    background: transparent;
}

.product-image[style*="opacity: 0"] {
    display: none;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

/* Badges en esquina superior izquierda */
.product-badges-left {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

/* Badge individual de descuento en esquina superior derecha */
.badge-top-right {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

/* Estilos base de badges */
.product-badge {
    background: var(--white);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    display: inline-block;
}

.badge-new {
    color: var(--info);
}

.badge-sale {
    background: var(--danger);
    color: var(--white);
    font-size: 13px;
    padding: 8px 12px;
}

.badge-featured {
    background: var(--warning);
    color: var(--white);
    font-size: 16px;
    padding: 6px 10px;
}

.badge-offer {
    background: var(--success);
    color: var(--white);
    font-size: 16px;
    padding: 6px 10px;
}

.product-actions {
    position: absolute;
    top: 60px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: var(--transition);
    z-index: 3;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-action-btn {
    width: 40px;
    height: 40px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.product-action-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.product-info {
    padding: 5px;
}

.product-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* Breadcrumb navegable en tarjetas de producto */
.product-breadcrumb {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.product-breadcrumb .breadcrumb-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-breadcrumb .breadcrumb-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.product-breadcrumb .breadcrumb-separator {
    color: var(--text-light);
    opacity: 0.5;
    font-weight: 400;
}


.product-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.price-current {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
}

.price-original {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
}

.discount-badge {
    background: var(--danger);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}

.stars {
    color: var(--warning);
}

.rating-count {
    color: var(--text-light);
}

.product-footer {
    display: flex;
    gap: 8px;
}

.btn-add-cart {
    flex: 1;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}

.btn-add-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-quick-view {
    background: var(--bg-light);
    color: var(--text-dark);
    border: none;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-quick-view:hover {
    background: var(--text-dark);
    color: var(--white);
}

/* Controles de cantidad en tarjeta de producto */
.product-quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    flex: 1;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.qty-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-display {
    min-width: 30px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

/* ========== FILTERS BAR ========== */
.filters-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: var(--transition);
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ========== PROMO BANNER ========== */
.promo-banner {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 60px 0;
    margin: 80px 0;
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.promo-text h2 {
    font-size: 40px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 8px;
}

.promo-text p {
    font-size: 18px;
    color: var(--white);
    opacity: 0.9;
}

.btn-promo {
    background: var(--white);
    color: var(--primary);
    padding: 16px 40px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 18px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-promo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========== NEWSLETTER ========== */
.newsletter-section {
    background: var(--bg-light);
    padding: 80px 0;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-text h2 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.newsletter-text p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 16px;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-newsletter {
    background: var(--primary);
    color: var(--white);
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-newsletter:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination button {
    padding: 12px 20px;
    border: 2px solid var(--border);
    background: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.pagination button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination button.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ========== LOADING SKELETON ========== */
.loading-skeleton {
    display: contents;
}

.skeleton-card,
.skeleton-product {
    background: linear-gradient(90deg, var(--bg-light) 25%, #f0f0f0 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius-lg);
    height: 200px;
}

.skeleton-product {
    height: 400px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========== FOOTER ========== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 80px 20px;
    text-align: center;
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.btn-large {
    padding: 18px 48px;
    font-size: 18px;
    font-weight: 700;
    background: white;
    color: var(--primary);
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ========== BREADCRUMB ========== */
.breadcrumb-section {
    background: var(--bg-light);
    padding: 16px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-light);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .separator {
    color: var(--text-light);
}

/* ========== TIENDA ========== */
.shop-section {
    padding: 40px 0 80px;
}

.shop-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-light);
}

.shop-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar Filtros */
.shop-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    align-self: start;
}

.sidebar-widget {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.search-widget .search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
}

.search-widget .search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.category-filter,
.price-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.category-filter:hover,
.price-filter:hover {
    background: var(--bg-light);
}

.category-filter input,
.price-filter input {
    margin-right: 10px;
    cursor: pointer;
}

.category-filter .count {
    background: var(--bg-light);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
}

.checkbox-filter {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.checkbox-filter:hover {
    background: var(--bg-light);
}

.checkbox-filter input {
    margin-right: 10px;
    cursor: pointer;
}

.btn-clear-filters {
    width: 100%;
    padding: 12px;
    background: var(--bg-light);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.btn-clear-filters:hover {
    background: var(--primary);
    color: white;
}

/* Contenido Tienda */
.shop-content {
    min-height: 600px;
    position: relative;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.result-count {
    font-size: 16px;
    color: var(--text-light);
}

.result-count strong {
    color: var(--text-dark);
    font-weight: 700;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toolbar-right label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.sort-select {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.empty-state p {
    font-size: 16px;
    color: var(--text-light);
}

/* ========== DETALLE DE PRODUCTO ========== */
.product-detail-section {
    padding: 40px 0 80px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* Galería */
.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.gallery-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}

.gallery-main img {
    width: 100%;
    height: auto;
    display: block;
}

.sale-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--danger);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.thumbnail {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail:hover {
    border-color: var(--primary);
}

.thumbnail.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.2);
}

/* Info del Producto */
.product-info-detail {
    padding-top: 20px;
}

.product-badges-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.badge-stock {
    background: var(--success);
}

.badge-out {
    background: var(--text-light);
}

.product-title-detail {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
    line-height: 1.2;
}

.product-category-detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-light);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 24px;
}

.product-price-detail {
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #FFF5F8, #F0F8FF);
    border-radius: var(--radius-md);
}

.price-offer-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.price-original-detail {
    font-size: 24px;
    color: var(--text-light);
    text-decoration: line-through;
}

.price-current-detail {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
}

.discount-badge {
    padding: 8px 16px;
    background: var(--success);
    color: white;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
}

.product-description-detail,
.product-features-detail {
    margin-bottom: 32px;
    padding: 24px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.product-description-detail h3,
.product-features-detail h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.product-description-detail p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
}

/* Acciones */
.product-actions-detail {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.quantity-selector {
    display: flex;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.btn-quantity {
    width: 48px;
    height: 48px;
    border: none;
    background: white;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-quantity:hover {
    background: var(--bg-light);
}

#quantityInput {
    width: 80px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-size: 18px;
    font-weight: 700;
}

.btn-add-cart-detail {
    flex: 1;
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-cart-detail:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-add-cart-detail:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-buy-now {
    flex: 1;
    padding: 14px 32px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 18px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-buy-now:hover:not(:disabled) {
    background: #4A1FA8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-buy-now:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Info Extra */
.product-info-extra {
    display: grid;
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.info-item .icon {
    font-size: 32px;
}

.info-item strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.info-item p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* Productos Relacionados */
.related-products-section {
    padding: 60px 0;
    background: var(--bg-light);
}

/* Loading */
.product-loading {
    padding: 100px 20px;
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--bg-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error */
.error-section {
    padding: 100px 20px;
}

.error-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.error-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.error-content p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 32px;
}

/* ========== CARRITO ========== */
.cart-section {
    padding: 40px 0 80px;
    min-height: 60vh;
}

.cart-container {
    max-width: 1200px;
    margin: 0 auto;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

/* Items del Carrito */
.cart-items {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.cart-items-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.cart-items-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.cart-item:hover {
    background: var(--bg-light);
}

.item-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.item-name:hover {
    color: var(--primary);
}

.item-price {
    font-size: 16px;
    color: var(--text-light);
}

.item-quantity {
    display: flex;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.item-quantity .btn-quantity {
    width: 40px;
    height: 40px;
    border: none;
    background: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.item-quantity .btn-quantity:hover {
    background: var(--bg-light);
}

.item-quantity input {
    width: 60px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-size: 16px;
    font-weight: 600;
}

.item-subtotal {
    text-align: right;
    min-width: 120px;
}

.subtotal-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.subtotal-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.btn-remove {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-remove:hover {
    background: var(--danger);
    transform: scale(1.1);
}

/* Resumen */
.cart-summary {
    position: sticky;
    top: 100px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    height: fit-content;
}

.summary-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 16px;
}

.summary-row span:first-child {
    color: var(--text-light);
}

.summary-value {
    font-weight: 700;
    color: var(--text-dark);
}

.summary-value.free {
    color: var(--success);
    font-weight: 800;
}

.shipping-message {
    padding: 12px;
    background: #FFF3E0;
    border-left: 4px solid var(--warning);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.shipping-message.success {
    background: #E8F5E9;
    border-left-color: var(--success);
}

.shipping-message p {
    font-size: 14px;
    margin: 0;
}

.summary-divider {
    height: 2px;
    background: var(--border);
    margin: 20px 0;
}

.summary-total {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 24px;
}

.summary-total .summary-value {
    color: var(--primary);
    font-size: 28px;
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 12px;
}

.btn-checkout:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-continue-shopping {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
    margin-bottom: 20px;
}

.btn-continue-shopping:hover {
    background: var(--primary);
    color: white;
}

.cart-benefits {
    display: grid;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.benefit-item span {
    font-size: 24px;
}

.benefit-item p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* Carrito Vacío */
.cart-empty {
    text-align: center;
    padding: 80px 20px;
}

.cart-empty .empty-icon {
    font-size: 100px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.cart-empty h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.cart-empty p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
}

/* Loading */
.cart-loading,
.checkout-loading {
    padding: 100px 20px;
    text-align: center;
}

/* ========== CHECKOUT ========== */
.checkout-section {
    padding: 40px 0 80px;
    min-height: 70vh;
}

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

/* Formulario */
.checkout-form {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.checkout-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.checkout-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 800;
}

.step-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Formularios */
.form-group {
    margin-bottom: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-row:has(.form-field:only-child) {
    grid-template-columns: 1fr;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: var(--transition);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.form-field textarea {
    resize: vertical;
    font-family: inherit;
}

/* Métodos de Pago */
.payment-methods {
    display: grid;
    gap: 16px;
}

.payment-option {
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: block;
}

.payment-option:hover {
    border-color: var(--primary);
    background: var(--bg-light);
}

.payment-option.selected {
    border-color: var(--primary);
    background: rgba(255, 107, 157, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.payment-icon {
    font-size: 32px;
}

.payment-content strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.payment-content p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* Acciones */
.checkout-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid var(--border);
}

.btn-back,
.btn-next,
.btn-finish {
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-back {
    background: var(--bg-light);
    color: var(--text-dark);
}

.btn-back:hover {
    background: var(--border);
}

.btn-next,
.btn-finish {
    background: var(--primary);
    color: white;
    margin-left: auto;
}

.btn-next:hover,
.btn-finish:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Resumen del Pedido */
.order-summary {
    position: sticky;
    top: 100px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    height: fit-content;
}

.order-summary .summary-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.summary-items {
    margin-bottom: 20px;
}

.summary-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.summary-item:hover {
    background: var(--bg-light);
}

.summary-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.summary-item .item-info {
    flex: 1;
}

.summary-item .item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.summary-item .item-qty {
    font-size: 12px;
    color: var(--text-light);
}

.summary-item .item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.summary-divider {
    height: 2px;
    background: var(--border);
    margin: 20px 0;
}

.summary-totals {
    margin-bottom: 20px;
}

.summary-totals .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 16px;
}

.summary-totals .summary-row span:first-child {
    color: var(--text-light);
}

.summary-totals .summary-row span:last-child {
    font-weight: 700;
    color: var(--text-dark);
}

.summary-totals .summary-row.total {
    font-size: 20px;
    padding-top: 12px;
    border-top: 2px solid var(--border);
}

.summary-totals .summary-row.total span:last-child {
    color: var(--primary);
    font-size: 24px;
}

.summary-totals .free {
    color: var(--success) !important;
}

.security-badges {
    display: grid;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-item span {
    font-size: 24px;
}

.badge-item p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* ========================================
   BOTÓN FLOTANTE SCROLL TO TOP
   ======================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.6);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(0.95);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.scroll-to-top.scrolling svg {
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Checkout Vacío */
.checkout-empty {
    text-align: center;
    padding: 80px 20px;
}

.checkout-empty .empty-icon {
    font-size: 100px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.checkout-empty h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.checkout-empty p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
}

/* Éxito */
.checkout-success {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.success-icon {
    font-size: 100px;
    margin-bottom: 24px;
    animation: bounce 1s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.checkout-success h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--success);
}

.checkout-success > p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.order-details {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 32px;
    margin-bottom: 40px;
    text-align: left;
}

.order-details h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.order-details p {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.order-details strong {
    color: var(--primary);
}

.success-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.success-actions a {
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: var(--transition);
}

.success-actions .btn-primary {
    background: var(--primary);
    color: white;
}

.success-actions .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.success-actions .btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.success-actions .btn-secondary:hover {
    background: var(--primary);
    color: white;
}
