
/* ==========================================================================
   ESTILOS SABIVI - TIENDA DE SUPLEMENTOS NATURALES
   ========================================================================== */

/* Variables de color - Estilo Natural y Orgánico */
:root {
    /* Colores principales */
    --primary-color: #2d5a27;        /* Verde oscuro natural */
    --primary-light: #4a7c43;        /* Verde medio */
    --primary-dark: #1e3d1a;         /* Verde muy oscuro */
    
    /* Colores secundarios */
    --secondary-color: #ffffff;
    --background-cream: #faf8f5;      /* Crema natural */
    --background-light: #f5f3ef;      /* Gris muy claro */
    
    /* Acentos */
    --accent-gold: #c9a227;           /* Dorado natural */
    --accent-orange: #e67e22;          /* Naranjawarm */
    --accent-green: #27ae60;          /* Verde brillante */
    
    /* Colores de texto */
    --text-primary: #1a1a1a;
    --text-secondary: #5a5a5a;
    --text-light: #8a8a8a;
    --text-muted: #a0a0a0;
    
    /* Utilidades */
    --border-color: #e5e5e0;
    --border-light: #f0f0eb;
    --shadow-soft: 0 4px 20px rgba(45, 90, 39, 0.08);
    --shadow-medium: 0 8px 30px rgba(45, 90, 39, 0.12);
    --shadow-strong: 0 15px 50px rgba(45, 90, 39, 0.15);
    
    /* Transiciones */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-color: #4a7c43;
    --primary-light: #6b9d5e;
    --secondary-color: #0d1a0d;
    --background-cream: #0a140a;
    --background-light: #122016;
    --accent-gold: #d4b84a;
    --accent-orange: #5da34d;
    --accent-green: #3dd978;
    --text-primary: #e0ebe0;
    --text-secondary: #8a9a8a;
    --text-light: #6a7a6a;
    --text-muted: #4a5a4a;
    --border-color: #1e3a26;
    --border-light: #1a2e1a;
    --shadow-soft: 0 4px 20px rgba(0, 30, 0, 0.3);
    --shadow-medium: 0 8px 30px rgba(0, 30, 0, 0.4);
    --shadow-strong: 0 15px 50px rgba(0, 30, 0, 0.5);
}

/* Dark Mode Global Styles */
[data-theme="dark"] body {
    background-color: var(--background-cream);
    color: var(--text-primary);
}

[data-theme="dark"] .bg-white {
    background-color: var(--background-light) !important;
}

[data-theme="dark"] .card {
    background-color: var(--background-light);
    border-color: var(--border-color);
}

[data-theme="dark"] .navbar {
    background-color: var(--background-light) !important;
}

[data-theme="dark"] .navbar-light .navbar-nav .nav-link,
[data-theme="dark"] .navbar-light .navbar-brand {
    color: var(--text-primary);
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .text-secondary {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .border {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .dropdown-menu {
    background-color: var(--background-light);
    border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-primary);
}

[data-theme="dark"] .modal-content {
    background-color: var(--background-light);
    border-color: var(--border-color);
}

[data-theme="dark"] .bg-white {
    background-color: var(--background-light) !important;
}

[data-theme="dark"] .bg-light {
    background-color: var(--background-light) !important;
}

[data-theme="dark"] .section {
    background-color: var(--background-cream);
}

[data-theme="dark"] .footer {
    background-color: #0a140a !important;
}

[data-theme="dark"] .footer-bottom {
    background-color: #061008 !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .shop-section,
[data-theme="dark"] .products-section {
    background-color: var(--background-cream);
}

/* Dark mode for hardcoded colors */
[data-theme="dark"] .product-media,
[data-theme="dark"] .quick-view-media {
    background: linear-gradient(135deg, #1a2e1a 0%, #122016 100%) !important;
}

[data-theme="dark"] .btn-soldout,
[data-theme="dark"] .btn-add-cart:disabled {
    background: #2a3a2a !important;
    color: #6a7a6a !important;
}

[data-theme="dark"] .quick-view-badge {
    background: rgba(74, 124, 67, 0.2) !important;
    color: #6b9d5e !important;
}

[data-theme="dark"] .product-detail-section {
    background: var(--background-cream);
}

[data-theme="dark"] .product-gallery {
    background: transparent;
}

[data-theme="dark"] .main-image-container {
    background: var(--background-light);
}

[data-theme="dark"] .related-section {
    background: var(--background-cream);
}

[data-theme="dark"] .checkout-section {
    background: var(--background-cream);
}

[data-theme="dark"] .cart-summary {
    background: var(--background-light);
    border-color: var(--border-color);
}

[data-theme="dark"] .address-card {
    background: var(--background-light);
    border-color: var(--border-color);
}

[data-theme="dark"] .favorites-section {
    background: var(--background-cream);
}

[data-theme="dark"] .account-sidebar {
    background: var(--background-light);
}

[data-theme="dark"] .account-content {
    background: var(--background-cream);
}

[data-theme="dark"] .login-container {
    background: var(--background-cream);
}

[data-theme="dark"] .login-card {
    background: var(--background-light);
    border-color: var(--border-color);
}

[data-theme="dark"] .register-container {
    background: var(--background-cream);
}

[data-theme="dark"] .register-card {
    background: var(--background-light);
    border-color: var(--border-color);
}

[data-theme="dark"] .info-section {
    background: var(--background-cream);
}

[data-theme="dark"] .info-card {
    background: var(--background-light);
    border-color: var(--border-color);
}

[data-theme="dark"] .hero-section {
    background: var(--background-cream);
}

[data-theme="dark"] .page-header {
    background: var(--background-light);
}

/* Navbar dark mode */
[data-theme="dark"] header {
    background-color: #0d1a0d !important;
}

[data-theme="dark"] .header-bottom {
    background-color: #0d1a0d !important;
}

/* Productos page dark mode */
[data-theme="dark"] .filters-sidebar {
    background: var(--background-light) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .filter-group {
    background: var(--background-light);
    border-color: var(--border-color);
}

[data-theme="dark"] .shop-toolbar {
    background: var(--background-light) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .product-card-modern {
    background: var(--background-light) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .badge-modern {
    color: white;
}

[data-theme="dark"] .badge-soldout {
    background: #4a5a4a !important;
}

[data-theme="dark"] .action-btn-modern {
    background: var(--background-light);
    color: var(--text-dark);
}

[data-theme="dark"] .pagination .page-link {
    background: var(--background-light);
    border-color: var(--border-color);
    color: var(--text-dark);
}

/* Login/Register dark mode */
[data-theme="dark"] .login-section,
[data-theme="dark"] .register-section {
    background: var(--background-cream);
}

[data-theme="dark"] .login-card,
[data-theme="dark"] .register-card {
    background: var(--background-light) !important;
    border-color: var(--border-color);
}

[data-theme="dark"] .login-container {
    background: linear-gradient(135deg, #0d1a0d 0%, #1a2e1a 50%, #122016 100%) !important;
}

[data-theme="dark"] .register-container {
    background: linear-gradient(135deg, #0d1a0d 0%, #1a2e1a 50%, #122016 100%) !important;
}

[data-theme="dark"] .form-check-label {
    color: var(--text-dark);
}

[data-theme="dark"] .forgot-password a {
    color: var(--primary-light);
}

/* Account pages dark mode */
[data-theme="dark"] .account-section {
    background: var(--background-cream);
}

[data-theme="dark"] .account-sidebar {
    background: var(--background-light) !important;
    border-color: var(--border-color);
}

[data-theme="dark"] .account-menu-item {
    color: var(--text-dark);
}

[data-theme="dark"] .account-menu-item:hover,
[data-theme="dark"] .account-menu-item.active {
    background: var(--primary-color);
    color: white;
}

[data-theme="dark"] .favorites-grid {
    background: var(--background-cream);
}

[data-theme="dark"] .favorite-card {
    background: var(--background-light) !important;
    border-color: var(--border-color);
}

[data-theme="dark"] .address-book {
    background: var(--background-cream);
}

[data-theme="dark"] .address-card {
    background: var(--background-light) !important;
    border-color: var(--border-color);
}

[data-theme="dark"] .order-history {
    background: var(--background-cream);
}

[data-theme="dark"] .order-card {
    background: var(--background-light) !important;
    border-color: var(--border-color);
}

[data-theme="dark"] .alert-success {
    background-color: #1a2e1a !important;
    border-color: #3dd978 !important;
    color: #3dd978 !important;
}

[data-theme="dark"] .alert-danger {
    background-color: #2a1a1a !important;
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

[data-theme="dark"] .alert-warning {
    background-color: #2a2a1a !important;
    border-color: #d4b84a !important;
    color: #d4b84a !important;
}

[data-theme="dark"] .alert-info {
    background-color: #1a2a2a !important;
    border-color: #3dd9d9 !important;
    color: #3dd9d9 !important;
}

/* Contact page dark mode */
[data-theme="dark"] .contact-section {
    background: var(--background-cream);
}

[data-theme="dark"] .contact-info-card {
    background: var(--background-light) !important;
    border-color: var(--border-color);
}

[data-theme="dark"] .contact-form-card {
    background: var(--background-light) !important;
    border-color: var(--border-color);
}

[data-theme="dark"] .contact-hero {
    background: linear-gradient(135deg, #0d1a0d 0%, #1a2e1a 100%) !important;
}

[data-theme="dark"] .contact-map {
    background: var(--background-light);
}

/* Static pages dark mode */
[data-theme="dark"] .info-page-section {
    background: var(--background-cream);
}

[data-theme="dark"] .info-page-content {
    background: var(--background-light) !important;
    border-color: var(--border-color);
}

[data-theme="dark"] .terminos-content,
[data-theme="dark"] .privacidad-content {
    background: var(--background-light) !important;
    border-color: var(--border-color);
}

/* Checkout dark mode */
[data-theme="dark"] .checkout-steps {
    background: var(--background-light);
}

[data-theme="dark"] .checkout-form {
    background: var(--background-cream);
}

[data-theme="dark"] .order-summary {
    background: var(--background-light) !important;
    border-color: var(--border-color);
}

/* Cart dark mode */
[data-theme="dark"] .cart-table {
    background: var(--background-light);
}

[data-theme="dark"] .cart-summary {
    background: var(--background-light) !important;
    border-color: var(--border-color);
}

/* Quick view modal dark mode */
[data-theme="dark"] .quick-view-content {
    background: var(--background-light) !important;
}

/* Table dark mode */
[data-theme="dark"] .table {
    background: var(--background-light);
    color: var(--text-dark);
}

[data-theme="dark"] .table th,
[data-theme="dark"] .table td {
    border-color: var(--border-color);
}

/* Generic dark mode overrides for various sections */
[data-theme="dark"] .shop-section,
[data-theme="dark"] .products-section,
[data-theme="dark"] .contact-section,
[data-theme="dark"] .account-section,
[data-theme="dark"] .login-section,
[data-theme="dark"] .register-section,
[data-theme="dark"] .checkout-section,
[data-theme="dark"] .favorites-section,
[data-theme="dark"] .info-page-section,
[data-theme="dark"] .product-detail-section,
[data-theme="dark"] .related-section,
[data-theme="dark"] .popular-section,
[data-theme="dark"] .categories-section,
[data-theme="dark"] .features-section,
[data-theme="dark"] .newsletter-section,
[data-theme="dark"] .hero-section,
[data-theme="dark"] .page-section {
    background-color: var(--background-cream) !important;
}

/* Generic dark mode for cards and containers */
[data-theme="dark"] .card,
[data-theme="dark"] .product-card,
[data-theme="dark"] .product-card-modern,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .info-card,
[data-theme="dark"] .login-card,
[data-theme="dark"] .register-card,
[data-theme="dark"] .checkout-card,
[data-theme="dark"] .order-card,
[data-theme="dark"] .address-card,
[data-theme="dark"] .favorite-card,
[data-theme="dark"] .form-card {
    background-color: var(--background-light) !important;
    border-color: var(--border-color) !important;
}

/* Generic dark mode for forms and inputs */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background-color: var(--background-light) !important;
    border-color: var(--border-color) !important;
    color: var(--text-dark) !important;
}

/* Generic dark mode for images and media */
[data-theme="dark"] img {
    opacity: 0.9;
}

/* Generic dark mode for all white/light backgrounds */
[data-theme="dark"] [style*="background: #fff"],
[data-theme="dark"] [style*="background:#fff"],
[data-theme="dark"] [style*="background: #ffffff"],
[data-theme="dark"] [style*="background:#ffffff"],
[data-theme="dark"] [style*="background: #f8f9fa"],
[data-theme="dark"] [style*="background:#f8f9fa"],
[data-theme="dark"] [style*="background: #f5f5f5"],
[data-theme="dark"] [style*="background:#f5f5f5"],
[data-theme="dark"] [style*="background: #fafafa"],
[data-theme="dark"] [style*="background:#fafafa"],
[data-theme="dark"] [style*="background: #faf8f5"],
[data-theme="dark"] [style*="background:#faf8f5"],
[data-theme="dark"] [style*="background: linear-gradient(135deg, #f8f9fa"],
[data-theme="dark"] [style*="background: linear-gradient(135deg, #f5f5f5"],
[data-theme="dark"] [style*="background: linear-gradient(135deg, #fff"],
[data-theme="dark"] [style*="background: linear-gradient(135deg, #fafafa"] {
    background: var(--background-light) !important;
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

/* Encabezado */
header {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .container {
    max-width: 1200px;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

header nav ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition);
}

header nav ul li a:hover {
    color: var(--accent-gold);
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Utilidades */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-accent {
    color: var(--accent-gold);
}

/* ==========================================================================
   BOTONES GLOBALES
   ========================================================================== */

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.3px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 90, 39, 0.3);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-dark {
    background-color: var(--text-primary);
    color: white;
}

.btn-dark:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-success {
    background-color: var(--accent-green);
    color: white;
}

.btn-success:hover {
    background-color: #1e8449;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   ESTILOS DE FORMULARIOS - CONSISTENTES
   ========================================================================== */

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-primary);
    background-color: white;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(45, 90, 39, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

/* Select styles */
.form-select {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-primary);
    background-color: white;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(45, 90, 39, 0.1);
}

/* Checkbox and Radio */
.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

/* ==========================================================================
   TARJETAS DE PRODUCTOS MODERNAS - ESTILO SHOPIFY/NATURE
   ========================================================================== */

/* Cart Section */
.cart-section {
    padding: 80px 0;
    background: 
        linear-gradient(135deg, rgba(232, 239, 230, 0.95) 0%, rgba(212, 223, 208, 0.95) 100%),
        url("https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1920&q=80");
    background-size: cover;
    background-position: center;
    min-height: 60vh;
    position: relative;
}

.cart-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.75) 100%);
    pointer-events: none;
}

.cart-section .container {
    position: relative;
    z-index: 10;
}

/* Page Header - Used in info pages (FAQ, Shipping, Returns, Privacy, Terms) */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white !important;
    padding: 80px 0 60px;
    text-align: center;
    margin-top: -70px;
    padding-top: 150px;
}

.page-header .page-title {
    color: white !important;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header .page-subtitle {
    color: rgba(255, 255, 255, 1) !important;
    font-size: 1.1rem;
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.alert-success {
    background-color: rgba(39, 174, 96, 0.15);
    color: #166534;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.15);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--secondary-color);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.empty-cart-icon {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-cart h2 {
    font-size: 1.75rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.empty-cart p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Cart Container */
.cart-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    margin-bottom: 60px;
}

/* Cart Items */
.cart-items {
    background-color: var(--secondary-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.cart-table {
    width: 100%;
}

.cart-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 60px;
    gap: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-light);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 60px;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-item:last-child {
    border-bottom: none;
}

/* Cart Product */
.cart-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-product-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
}

.cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-product-info h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.cart-product-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Cart Price */
.cart-price {
    font-weight: 500;
    color: var(--primary-color);
}

/* Cart Quantity */
.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 0;
    overflow: hidden;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background-color: var(--background-light);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    border-radius: 8px;
}

.quantity-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.quantity-input {
    width: 50px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    background: transparent;
}

/* Cart Subtotal */
.cart-subtotal {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Cart Actions */
.cart-actions {
    display: flex;
    justify-content: center;
}

.remove-form {
    margin: 0;
}

.btn-remove {
    width: 36px;
    height: 36px;
    border: none;
    background-color: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Cart Actions Bottom */
.cart-actions-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--border-light);
}

/* Cart Summary */
.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary-card {
    background-color: var(--secondary-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.summary-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.summary-row.summary-total {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.summary-divider {
    height: 2px;
    background-color: var(--border-light);
    margin: 20px 0;
}

.summary-note {
    margin-top: 15px;
    padding: 12px 16px;
    background-color: rgba(45, 90, 39, 0.08);
    border-radius: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.summary-note i {
    color: var(--primary-color);
}

.btn-large {
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 20px;
    border-radius: 12px;
}

.summary-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.summary-security i {
    color: var(--primary-color);
}

/* Coupon Card */
.coupon-card {
    background-color: var(--secondary-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.coupon-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.coupon-form {
    display: flex;
    gap: 10px;
}

.coupon-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-size: 0.875rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

/* Responsividad */
@media (max-width: 1024px) {
    .cart-container {
        grid-template-columns: 1fr;
    }
    /* Productos primero, luego resumen */
}

/* ==========================================================================
   CART SECTION - ESTILO NATURAL/ORGÁNICO
   ========================================================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Tarjeta moderna */
.product-card-modern {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
}

.product-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(45, 90, 39, 0.15);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Media - Imagen del producto */
.product-media {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f0 0%, #e8f5e9 100%);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card-modern:hover .product-img {
    transform: scale(1.08);
}

/* Badges modernos */
.badge-modern {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.badge-sale {
    background: #ef4444;
    color: white;
}

.badge-new {
    background: var(--primary-color);
    color: white;
}

.badge-soldout {
    background: #dc3545;
    color: white;
}

.badge-soldout {
    background: #6b7280;
    color: white;
}

/* Botones de acción overlay */
.product-actions-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 20;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.product-card-modern:hover .product-actions-overlay {
    opacity: 1;
    transform: translateX(0);
}

.action-btn-modern {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-decoration: none;
}

.action-btn-modern i {
    font-size: 1rem;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.action-btn-modern:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.action-btn-modern:hover i {
    color: white;
}

.action-btn-modern.wishlist-btn:active i,
.action-btn-modern.wishlist-btn.active i {
    color: white;
}

/* Cuerpo del producto */
.product-body {
    padding: 16px;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 8px 0;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.product-card-modern:hover .product-title {
    color: var(--primary-color);
}

/* Precio */
.product-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-current {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-old {
    font-size: 0.95rem;
    color: #999;
    text-decoration: line-through;
}

/* Botón añadir al carrito */
.product-action {
    padding: 0 20px 20px;
}

.btn-add-cart {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-add-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 90, 39, 0.3);
}

.btn-add-cart.btn-soldout {
    background: #ccc;
    cursor: not-allowed;
}

/* Responsive - productos grid se maneja en productos.php */

/* Contenedor de imagen con efectos */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-color: #f5f5f0;
    aspect-ratio: 1;
}

/* Imagen del producto */
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

/* Imagen secundaria para hover */
.product-hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover .product-hover-image {
    opacity: 1;
}

/* Badges mejorados */
.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.product-badge.sale {
    background-color: #e53935;
    color: white;
}

.product-badge.new {
    background-color: var(--primary-color);
    color: white;
}

.product-badge.sold-out {
    background-color: #6b7280;
    color: white;
}

/* Indicador de stock */
.stock-indicator {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.product-card:hover .stock-indicator {
    transform: translateY(0);
    opacity: 1;
}

.stock-indicator.in-stock {
    background-color: #10b981;
    color: white;
}

.stock-indicator.low-stock {
    background-color: #f59e0b;
    color: #1a1a1a;
}

.stock-indicator.out-of-stock {
    background-color: #6b7280;
    color: white;
}

/* Acciones del producto - mejoradas */
.product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 20;
}

.action-btn {
    width: 40px;
    height: 40px;
    background-color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transform: translateX(50px);
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .action-btn {
    transform: translateX(0);
    opacity: 1;
}

.product-card:hover .action-btn:nth-child(1) { transition-delay: 0s; }
.product-card:hover .action-btn:nth-child(2) { transition-delay: 0.05s; }
.product-card:hover .action-btn:nth-child(3) { transition-delay: 0.1s; }

.action-btn:hover {
    background-color: var(--primary-color);
    color: white !important;
    transform: scale(1.15) !important;
}

.action-btn i {
    font-size: 18px;
    color: #374151;
}

.action-btn:hover i {
    color: white;
}

/* Información del producto */
.product-info {
    padding: 20px 4px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a1a;
    transition: color 0.25s ease;
    line-height: 1.4;
}

.product-card:hover .product-name {
    color: var(--primary-color);
}

.product-name a {
    text-decoration: none;
    color: inherit;
}

.product-name a:hover {
    color: var(--primary-color);
}

/* Precio mejorado */
.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.product-price .current-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price .original-price {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
}

.product-price .discount-percent {
    font-size: 11px;
    font-weight: 700;
    color: white;
    background-color: #ef4444;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Colores disponibles */
.product-colors {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    align-items: center;
}

.color-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.color-swatch:hover,
.color-swatch.active {
    transform: scale(1.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary-color);
}

/* Botón añadir al carrito - mejorado */
.add-to-cart-btn {
    width: 100%;
    padding: 14px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.add-to-cart-btn:hover::before {
    left: 100%;
}

.add-to-cart-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 90, 39, 0.35);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.add-to-cart-btn i {
    font-size: 18px;
}

.add-to-cart-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.add-to-cart-btn i {
    font-size: 18px;
}

/* Quick View Button */
.quick-view-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px;
    background: linear-gradient(to top, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.9) 100%);
    text-align: center;
    transition: all 0.3s ease;
    z-index: 15;
    opacity: 0;
    transform: translateY(10px);
}

.product-card:hover .quick-view-overlay {
    opacity: 1;
    transform: translateY(0);
}

.quick-view-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.quick-view-btn:hover {
    color: white;
    background-color: var(--primary-color);
}

/* Wishlist heart animation */
.wishlist-btn.active i {
    color: #ef4444 !important;
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Animación de carga al añadir al carrito */
.adding-to-cart {
    pointer-events: none;
}

.adding-to-cart .btn-content {
    opacity: 0;
}

.adding-to-cart::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .product-image-container {
        height: 300px;
    }
    
    .product-badges {
        top: 8px;
        left: 8px;
    }
    
    .product-actions {
        top: 8px;
        right: 8px;
    }
    
    .action-btn {
        width: 36px;
        height: 36px;
    }
}

/* ==========================================================================
   NUEVO DISEÑO - HOME PAGE SUPLEMENTOS NATURALES
   ========================================================================== */

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #faf8f5 0%, #f5f3ef 50%, #e8f5e9 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(45, 90, 39, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(45, 90, 39, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(45, 90, 39, 0.2);
}

.hero-badge i {
    color: var(--accent-green);
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title .highlight {
    color: var(--primary-color);
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(39, 174, 96, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3d6b34 100%);
    color: white;
    padding: 18px 36px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(45, 90, 39, 0.35);
}

.hero-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(45, 90, 39, 0.45);
    color: white;
}

.hero-btn-primary i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.hero-btn-primary:hover i {
    transform: translateX(4px);
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    color: var(--primary-color);
    padding: 18px 36px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.1);
}

.hero-btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.hero-btn-light {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--primary-color);
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-btn-light:hover {
    background: #f5f5f5;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-btn-light i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.hero-btn-light:hover i {
    transform: translateX(4px);
}

.hero-image {
    position: relative;
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

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

.hero-img-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

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

.hero-floating-card {
    position: absolute;
    background: white;
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 3s ease-in-out infinite;
}

.hero-floating-card.card-1 {
    bottom: 40px;
    left: -30px;
}

.hero-floating-card.card-2 {
    top: 40px;
    right: -20px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.floating-icon.green {
    background: rgba(39, 174, 96, 0.15);
    color: var(--accent-green);
}

.floating-icon.gold {
    background: rgba(201, 162, 39, 0.15);
    color: var(--accent-gold);
}

.floating-text strong {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
}

.floating-text span {
    font-size: 12px;
    color: var(--text-muted);
}

/* --- TRUST BADGES --- */
.hero-trust {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-item i {
    font-size: 24px;
    color: var(--primary-light);
}

.trust-item span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* --- PRODUCTS SECTION - MAS VENDIDOS --- */
.products-section {
    padding: 100px 0;
    background: var(--background-cream);
}

.products-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

/* --- FEATURES SECTION --- */
.features-section {
    padding: 80px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--background-cream);
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(45, 90, 39, 0.15);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 25px rgba(45, 90, 39, 0.35);
}

.feature-icon i {
    display: inline-flex;
    line-height: 1;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* --- CATEGORIES SECTION --- */
.categories-section {
    padding: 100px 0;
    background: var(--background-cream);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    background: rgba(45, 90, 39, 0.1);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 17px;
    color: #2d3436;
    line-height: 1.7;
    font-weight: 500;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.category-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 380px;
    cursor: pointer;
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    pointer-events: none;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    z-index: 2;
    color: white;
}

.category-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.category-content p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.category-card:hover .category-link {
    opacity: 1;
    transform: translateY(0);
}

.category-link i {
    transition: transform 0.3s ease;
}

.category-link:hover i {
    transform: translateX(4px);
}

/* --- BANNER PROMOCIONAL --- */
.promo-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.promo-text h2 {
    font-size: 38px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.promo-text p {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0;
}

.promo-text .highlight {
    color: var(--accent-gold);
    font-weight: 700;
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-section {
    padding: 100px 0;
    background: 
        linear-gradient(135deg, rgba(232, 239, 230, 0.95) 0%, rgba(212, 223, 208, 0.95) 100%),
        url("https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1920&q=80");
    background-size: cover;
    background-position: center;
    position: relative;
}

.testimonials-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.85) 100%);
    pointer-events: none;
}

.testimonials-section .container {
    position: relative;
    z-index: 10;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 24px;
    transition: var(--transition);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.8);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-stars i {
    color: var(--accent-gold);
    font-size: 18px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: #2d3436;
    margin-bottom: 24px;
    font-weight: 500;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.testimonial-info strong {
    display: block;
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 700;
}

.testimonial-info span {
    font-size: 13px;
    color: #5a5a5a;
}

/* --- NEWSLETTER SECTION --- */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #2d5a27 0%, #1e3d1a 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.newsletter-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.newsletter-container h2 {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.newsletter-container p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
}

.newsletter-form input:focus {
    border-color: white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.newsletter-form input::placeholder {
    color: #999;
}

.newsletter-form button {
    padding: 18px 36px;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-form button:hover {
    background: var(--primary-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* --- FOOTER --- */
.main-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: white;
    padding: 80px 0 30px;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-green), var(--primary-color));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo i {
    color: var(--accent-green);
    font-size: 28px;
}

.footer-brand p {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 24px;
    text-align: left;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: white;
    position: relative;
    padding-bottom: 12px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 14px;
}

.footer-column ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--accent-green);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 60px;
    padding-top: 30px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

.footer-credit {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.footer-credit a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-credit a:hover {
    color: var(--primary-light);
}

.footer-bottom .payments {
    display: flex;
    gap: 12px;
    font-size: 24px;
    color: rgba(255,255,255,0.5);
}

@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-subtitle {
        margin: 0 auto 36px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    .hero-floating-card {
        display: none;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
        letter-spacing: -0.5px;
    }
    
    .hero-section {
        min-height: auto;
        padding: 40px 0;
    }
    
    .hero-container {
        padding: 20px;
        gap: 30px;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary,
    .hero-btn-light {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions a {
        width: 100%;
        justify-content: center;
    }
    
    .products-section {
        padding: 60px 0;
    }
    
    .products-section .container {
        padding: 0 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    /* .products-grid se maneja en productos.php */
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .collection-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 26px;
    }
    
    .hero-container {
        padding: 16px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary,
    .hero-btn-light {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    /* .products-grid se maneja en productos.php */
    
    .products-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ==========================================================================
   QUICK VIEW MODAL - DISEÑO MODERNO
   ========================================================================== */

.modal-quickview .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.btn-close-quickview {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: white;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: #4b5563;
}

.btn-close-quickview:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.btn-close-quickview i {
    font-size: 18px;
}

.quick-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.quick-view-media {
    background: linear-gradient(135deg, #f5f5f0 0%, #e8f5e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.quick-view-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 450px;
}

.quick-view-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 100;
    pointer-events: auto;
}

.quick-view-badge {
    display: inline-block;
    background: rgba(45, 90, 39, 0.1);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    width: fit-content;
}

.quick-view-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.quick-view-price {
    margin-bottom: 20px;
}

.quick-view-price .price-current {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.quick-view-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.quick-view-form {
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.btn-quickview-cart {
    width: 100%;
    padding: 16px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 200;
    pointer-events: auto;
    text-decoration: none;
}

.btn-quickview-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 90, 39, 0.35);
}

.btn-quickview-cart i {
    font-size: 20px;
}

.quick-view-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-view-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.quick-view-meta i {
    color: var(--primary-color);
}

/* Responsive modal */
@media (max-width: 768px) {
    .quick-view-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-view-media {
        min-height: 250px;
    }
    
    .quick-view-details {
        padding: 24px;
    }
    
    .quick-view-title {
        font-size: 22px;
    }
    
    .quick-view-price .price-current {
        font-size: 24px;
    }
}

/* ==========================================================================
   ESTILOS RESPONSIVE ADICIONALES
   ========================================================================== */

/* Checkout responsive */
@media (max-width: 768px) {
    .checkout-container {
        padding: 20px;
    }
    
    .checkout-form .form-row {
        flex-direction: column;
    }
    
    .checkout-form .form-group {
        width: 100%;
    }
    
    .order-summary {
        margin-top: 30px;
    }
}

/* Login/Registro responsive */
@media (max-width: 768px) {
    .auth-container {
        padding: 20px;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
}

/* Footer responsive mejorado */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Carrito responsive mejorado */
@media (max-width: 992px) {
    .cart-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    /* Productos aparecen primero, luego el resumen */
}

@media (max-width: 768px) {
    .cart-section {
        padding: 20px 0;
    }
    
    .cart-container {
        gap: 20px;
    }
    
    .cart-items {
        padding: 15px;
        border-radius: 12px;
    }
    
    .cart-header {
        display: none;
    }
    
    .cart-item {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 15px;
        background: #f9f9f9;
        border-radius: 12px;
        align-items: stretch;
    }
    
    .cart-product {
        display: flex;
        gap: 12px;
        align-items: center;
    }
    
    .cart-product-image {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }
    
    .cart-product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }
    
    .cart-product-info {
        flex: 1;
    }
    
    .cart-product-info h3 {
        font-size: 1rem;
        margin-bottom: 4px;
    }
    
    .cart-product-info p {
        font-size: 0.875rem;
        margin: 0;
    }
    
    .cart-price,
    .cart-quantity,
    .cart-subtotal {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid #eee;
    }
    
    .cart-price::before {
        content: 'Precio:';
        font-weight: 600;
        color: #666;
    }
    
    .cart-quantity::before {
        content: 'Cantidad:';
        font-weight: 600;
        color: #666;
    }
    
    .cart-subtotal::before {
        content: 'Subtotal:';
        font-weight: 600;
        color: #666;
    }
    
    .cart-price > div,
    .cart-quantity > div {
        font-weight: 600;
        color: var(--primary-color);
    }
    
    .cart-actions {
        display: flex;
        justify-content: flex-end;
        padding-top: 10px;
    }
    
    .cart-actions-bottom {
        flex-direction: column;
        gap: 10px;
    }
    
    .cart-summary {
        padding: 20px;
        border-radius: 12px;
    }
    
    .cart-summary h3 {
        font-size: 1.25rem;
    }
    
    .summary-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .summary-row span:first-child {
        color: #666;
    }
    
    .cart-summary .btn-checkout {
        width: 100%;
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .cart-product {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-product-image {
        width: 100%;
        height: 150px;
    }
    
    .cart-product-info h3 {
        font-size: 1.1rem;
    }
    
    .cart-price,
    .cart-quantity,
    .cart-subtotal {
        font-size: 0.9rem;
    }
    
    .cart-actions-bottom a,
    .cart-actions-bottom button {
        width: 100%;
        text-align: center;
    }
}

/* Productos grid responsive - se maneja en productos.php y producto.php */

/* Categorías responsive */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        height: 200px;
    }
}

/* Testimonios responsive */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 20px;
    }
}

/* Newsletter responsive */
@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}

/* Page header responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 40px 0;
    }
    
    .page-header .page-title {
        font-size: 1.75rem;
    }
    
    .page-header .breadcrumb {
        font-size: 0.875rem;
    }
}

/* Botones responsive */
@media (max-width: 576px) {
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* Formularios responsive */
@media (max-width: 768px) {
    .form-control,
    .form-select {
        padding: 10px 12px;
    }
    
    .form-label {
        font-size: 14px;
    }
}

/* ============================================
   MODO OSCURO - ESTILOS GENERALES EXHAUSTIVOS
   ============================================ */

/* Textos y colores */
[data-theme="dark"] body,
[data-theme="dark"] html {
    background-color: var(--background-cream) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] * {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] .h1, [data-theme="dark"] .h2, [data-theme="dark"] .h3,
[data-theme="dark"] .h4, [data-theme="dark"] .h5, [data-theme="dark"] .h6 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] div,
[data-theme="dark"] label {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .text-secondary,
[data-theme="dark"] .text-light {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .text-primary {
    color: var(--primary-color) !important;
}

[data-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link) {
    color: var(--primary-light) !important;
}

/* Fondos genéricos */
[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-light,
[data-theme="dark"] .bg-transparent,
[data-theme="dark"] .bg-default {
    background-color: var(--background-light) !important;
}

[data-theme="dark"] section,
[data-theme="dark"] .section {
    background-color: var(--background-cream) !important;
}

/* Cards y contenedores */
[data-theme="dark"] .card,
[data-theme="dark"] .card-header,
[data-theme="dark"] .card-body,
[data-theme="dark"] .card-footer,
[data-theme="dark"] .panel,
[data-theme="dark"] .panel-header,
[data-theme="dark"] .panel-body,
[data-theme="dark"] .box,
[data-theme="dark"] .widget {
    background-color: var(--background-light) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* Tablas */
[data-theme="dark"] table,
[data-theme="dark"] .table,
[data-theme="dark"] .table-responsive {
    background-color: var(--background-light) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .table th,
[data-theme="dark"] .table td,
[data-theme="dark"] thead,
[data-theme="dark"] tbody,
[data-theme="dark"] tr,
[data-theme="dark"] th,
[data-theme="dark"] td {
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
    background-color: transparent !important;
}

/* Formularios */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] input[type="url"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="time"],
[data-theme="dark"] input[type="datetime-local"],
[data-theme="dark"] input[type="week"],
[data-theme="dark"] input[type="month"],
[data-theme="dark"] input[type="color"],
[data-theme="dark"] textarea,
[data-theme="dark"] select,
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: var(--background-light) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .form-control:disabled,
[data-theme="dark"] .form-select:disabled {
    background-color: var(--background-cream) !important;
    opacity: 0.7;
}

[data-theme="dark"] .input-group-text {
    background-color: var(--background-cream) !important;
    border-color: var(--border-color) !important;
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .form-check-input {
    background-color: var(--background-light);
    border-color: var(--border-color);
}

[data-theme="dark"] .form-check-label {
    color: var(--text-primary) !important;
}

/* Botones */
[data-theme="dark"] .btn {
    color: var(--text-primary);
}

[data-theme="dark"] .btn-outline-primary {
    color: var(--primary-light);
    border-color: var(--primary-light);
}

[data-theme="dark"] .btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-light {
    background-color: var(--background-light);
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* Navbar */
[data-theme="dark"] .navbar {
    background-color: #0d1a0d !important;
}

[data-theme="dark"] .navbar-light {
    background-color: #0d1a0d !important;
}

[data-theme="dark"] .navbar-brand,
[data-theme="dark"] .navbar-light .navbar-brand {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .nav-link,
[data-theme="dark"] .navbar-light .nav-link {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .navbar-toggler {
    border-color: var(--border-color);
}

[data-theme="dark"] .navbar-toggler-icon {
    filter: invert(1);
}

/* Dropdowns */
[data-theme="dark"] .dropdown-menu {
    background-color: var(--background-light) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
    background-color: var(--background-cream) !important;
    color: var(--text-primary) !important;
}

/* Badges */
[data-theme="dark"] .badge {
    color: white !important;
}

/* Modals */
[data-theme="dark"] .modal-content {
    background-color: var(--background-light) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .modal-header {
    border-bottom-color: var(--border-color) !important;
}

[data-theme="dark"] .modal-footer {
    border-top-color: var(--border-color) !important;
}

[data-theme="dark"] .modal-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .close {
    color: var(--text-primary) !important;
}

/* Tooltips */
[data-theme="dark"] .tooltip-inner {
    background-color: var(--background-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* Popovers */
[data-theme="dark"] .popover {
    background-color: var(--background-light);
    border-color: var(--border-color);
}

[data-theme="dark"] .popover-body {
    color: var(--text-primary);
}

/* Breadcrumbs */
[data-theme="dark"] .breadcrumb {
    background-color: transparent;
}

[data-theme="dark"] .breadcrumb-item a {
    color: var(--primary-light) !important;
}

[data-theme="dark"] .breadcrumb-item.active {
    color: var(--text-secondary) !important;
}

/* Pagination */
[data-theme="dark"] .page-link {
    background-color: var(--background-light) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .page-item.disabled .page-link {
    background-color: var(--background-cream) !important;
    color: var(--text-secondary) !important;
}

/* Alerts */
[data-theme="dark"] .alert {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .alert-success {
    background-color: rgba(61, 217, 120, 0.15) !important;
    border-color: #3dd978 !important;
    color: #3dd978 !important;
}

[data-theme="dark"] .alert-danger,
[data-theme="dark"] .alert-error {
    background-color: rgba(239, 68, 68, 0.15) !important;
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

[data-theme="dark"] .alert-warning {
    background-color: rgba(212, 184, 74, 0.15) !important;
    border-color: #d4b84a !important;
    color: #d4b84a !important;
}

[data-theme="dark"] .alert-info {
    background-color: rgba(61, 217, 217, 0.15) !important;
    border-color: #3dd9d9 !important;
    color: #3dd9d9 !important;
}

/* List groups */
[data-theme="dark"] .list-group {
    background-color: var(--background-light);
    border-color: var(--border-color);
}

[data-theme="dark"] .list-group-item {
    background-color: var(--background-light);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .list-group-item:hover {
    background-color: var(--background-cream);
}

/* Avatars */
[data-theme="dark"] .avatar {
    background-color: var(--background-cream);
    color: var(--text-primary);
}

/* Icons */
[data-theme="dark"] i,
[data-theme="dark"] .icon {
    color: var(--text-primary);
}

/* Divider */
[data-theme="dark"] hr {
    border-color: var(--border-color);
}

/* Shadows */
[data-theme="dark"] .shadow-sm,
[data-theme="dark"] .shadow,
[data-theme="dark"] .shadow-lg {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Overlay */
[data-theme="dark"] .overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Position markers */
[data-theme="dark"] .position-absolute,
[data-theme="dark"] .position-relative,
[data-theme="dark"] .position-fixed,
[data-theme="dark"] .position-sticky {
    background-color: transparent;
}

/* Transitions */
[data-theme="dark"] * {
    transition-property: background-color, border-color, color;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* Quitar transiciones a elementos específicos que no deben cambiar */
[data-theme="dark"] img,
[data-theme="dark"] iframe,
[data-theme="dark"] video {
    transition: none;
}

/* Estilos inline específicos */
[data-theme="dark"] [style*="background: #fff"],
[data-theme="dark"] [style*="background:#fff"],
[data-theme="dark"] [style*="background: #ffffff"],
[data-theme="dark"] [style*="background:#ffffff"],
[data-theme="dark"] [style*="background: white"],
[data-theme="dark"] [style*="background:white"],
[data-theme="dark"] [style*="background: #f8f9fa"],
[data-theme="dark"] [style*="background:#f8f9fa"],
[data-theme="dark"] [style*="background: #f5f5f5"],
[data-theme="dark"] [style*="background:#f5f5f5"],
[data-theme="dark"] [style*="background: #fafafa"],
[data-theme="dark"] [style*="background:#fafafa"],
[data-theme="dark"] [style*="background: #faf8f5"],
[data-theme="dark"] [style*="background:#faf8f5"],
[data-theme="dark"] [style*="background: #f0f0f0"],
[data-theme="dark"] [style*="background:#f0f0f0"],
[data-theme="dark"] [style*="background: #e5e5e5"],
[data-theme="dark"] [style*="background:#e5e5e5"],
[data-theme="dark"] [style*="background: linear-gradient(135deg, #f8f9fa"],
[data-theme="dark"] [style*="background: linear-gradient(135deg, #f5f5f5"],
[data-theme="dark"] [style*="background: linear-gradient(135deg, #fff"],
[data-theme="dark"] [style*="background: linear-gradient(135deg, #fafafa"],
[data-theme="dark"] [style*="background: linear-gradient(135deg, rgba(255,255,255"],
[data-theme="dark"] [style*="background-color: #fff"],
[data-theme="dark"] [style*="background-color:#fff"],
[data-theme="dark"] [style*="background-color: #ffffff"],
[data-theme="dark"] [style*="background-color:#ffffff"],
[data-theme="dark"] [style*="background-color: white"],
[data-theme="dark"] [style*="background-color:#f8f9fa"],
[data-theme="dark"] [style*="background-color: #f5f5f5"],
[data-theme="dark"] [style*="background-color: #fafafa"],
[data-theme="dark"] [style*="background: rgba(255, 255, 255"],
[data-theme="dark"] [style*="backdrop-filter: blur"] {
    background: var(--background-light) !important;
}

/* Textos inline específicos */
[data-theme="dark"] [style*="color: #fff"],
[data-theme="dark"] [style*="color:#fff"],
[data-theme="dark"] [style*="color: #ffffff"],
[data-theme="dark"] [style*="color:#ffffff"],
[data-theme="dark"] [style*="color: white"],
[data-theme="dark"] [style*="color:#000"],
[data-theme="dark"] [style*="color: #000000"],
[data-theme="dark"] [style*="color: black"],
[data-theme="dark"] [style*="color: #333"],
[data-theme="dark"] [style*="color: #444"],
[data-theme="dark"] [style*="color: #555"],
[data-theme="dark"] [style*="color: #666"],
[data-theme="dark"] [style*="color: #1a1a1a"],
[data-theme="dark"] [style*="color: #333333"] {
    color: var(--text-primary) !important;
}

/* Bordes inline */
[data-theme="dark"] [style*="border-color: #fff"],
[data-theme="dark"] [style*="border-color:#fff"],
[data-theme="dark"] [style*="border-color: #e5e5e5"],
[data-theme="dark"] [style*="border-color:#e5e5e5"] {
    border-color: var(--border-color) !important;
}

/* ============================================
   OVERRIDE FINAL - FORZAR TODO A DARK MODE
   ============================================ */

/* Forzar TODOS los fondos conocidos a oscuro */
html[data-theme="dark"] body,
html[data-theme="dark"] main,
html[data-theme="dark"] .container,
html[data-theme="dark"] .container-fluid,
html[data-theme="dark"] .wrapper,
html[data-theme="dark"] .content,
html[data-theme="dark"] .page-content,
html[data-theme="dark"] .main-content {
    background-color: #0a140a !important;
    background: #0a140a !important;
}

/* Eliminar TODOS los fondos blancos conocidos */
html[data-theme="dark"] * {
    background-color: transparent !important;
}

/* Restaurar solo elementos específicos que DEBEN ser claros */
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .btn-success,
html[data-theme="dark"] .btn-danger,
html[data-theme="dark"] .btn-warning,
html[data-theme="dark"] .btn-info,
html[data-theme="dark"] .btn-dark,
html[data-theme="dark"] .badge-primary,
html[data-theme="dark"] .badge-success,
html[data-theme="dark"] .badge-danger,
html[data-theme="dark"] .badge-warning,
html[data-theme="dark"] .badge-info,
html[data-theme="dark"] .alert-success,
html[data-theme="dark"] .alert-danger,
html[data-theme="dark"] .alert-warning,
html[data-theme="dark"] .alert-info {
    background-color: inherit !important;
}

/* Cart specific overrides */
html[data-theme="dark"] .cart-section,
html[data-theme="dark"] .cart-container,
html[data-theme="dark"] .cart-page {
    background-color: #0a140a !important;
}

/* Checkout specific overrides */
html[data-theme="dark"] .checkout-page,
html[data-theme="dark"] .checkout-container,
html[data-theme="dark"] .checkout-section {
    background-color: #0a140a !important;
}

/* Account specific overrides */
html[data-theme="dark"] .account-page,
html[data-theme="dark"] .account-container,
html[data-theme="dark"] .account-wrapper {
    background-color: #0a140a !important;
}

/* Product detail specific overrides */
html[data-theme="dark"] .product-detail-page,
html[data-theme="dark"] .product-detail-container {
    background-color: #0a140a !important;
}

/* Login/Register specific overrides */
html[data-theme="dark"] .auth-page,
html[data-theme="dark"] .auth-container {
    background-color: #0a140a !important;
}

/* Info pages overrides */
html[data-theme="dark"] .info-page,
html[data-theme="dark"] .legal-page,
html[data-theme="dark"] .terminos-page,
html[data-theme="dark"] .privacidad-page,
html[data-theme="dark"] .preguntas-page,
html[data-theme="dark"] .devoluciones-page,
html[data-theme="dark"] .envios-page {
    background-color: #0a140a !important;
}

/* Forzar cualquier elemento con fondo blanco a oscuro */
html[data-theme="dark"] [class*="bg-white"],
html[data-theme="dark"] [class*="bg-light"],
html[data-theme="dark"] [class*="bg-default"],
html[data-theme="dark"] [class*="white-bg"],
html[data-theme="dark"] [class*="light-bg"],
html[data-theme="dark"] [class*="bg-cream"] {
    background-color: #122016 !important;
}

/* Main content wrapper */
html[data-theme="dark"] main,
html[data-theme="dark"] .main {
    background-color: #0a140a !important;
    min-height: 100vh;
}

/* Also target without html prefix */
main,
.wrapper,
.page-wrapper,
.content-wrapper,
.main-wrapper {
    background-color: var(--background-cream);
}

[data-theme="dark"] main,
[data-theme="dark"] .wrapper,
[data-theme="dark"] .page-wrapper,
[data-theme="dark"] .content-wrapper,
[data-theme="dark"] .main-wrapper {
    background-color: #0a140a !important;
}

/* Ensure all direct body children are dark in dark mode */
body > * {
    background-color: var(--background-cream);
}

[data-theme="dark"] body > * {
    background-color: #0a140a !important;
}