/**
 * Estilos principales - PersonalizaTu
 * Sistema de personalización de productos
 */

/* ==================== VARIABLES ==================== */
:root {
    --primary-color: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --secondary-color: #64748B;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --info-color: #3B82F6;
    
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
    
    --border-color: #E5E7EB;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* ==================== NAVBAR COMPACTA ==================== */
.site-navbar {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
}

.navbar-logo img {
    max-height: 55px;
    width: auto;
}

.navbar-logo .logo-svg {
    height: 55px !important;
}

.navbar-logo .logo-text {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.navbar-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    position: relative;
    transition: var(--transition);
}

.navbar-cart:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.navbar-cart i {
    font-size: 1.1rem;
}

.navbar-cart .cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== LAYOUT ==================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HEADER ==================== */
.main-header {
    background: var(--bg-primary);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.8rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--bg-tertiary);
}

.mobile-menu-toggle.active i::before {
    content: "\f00d"; /* fa-times */
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.cart-link {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--danger-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--border-color);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #DC2626;
    color: white;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: var(--bg-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-row {
    display: grid;
    gap: 20px;
}

.form-row.two-cols {
    grid-template-columns: 1fr 1fr;
}

.form-row.three-cols {
    grid-template-columns: 1fr 1fr 1fr;
}

/* ==================== HOME PAGE ==================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.features {
    padding: 80px 0;
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--bg-secondary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
}

/* How it works */
.how-it-works {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.how-it-works h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step h3 {
    margin-bottom: 8px;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==================== PRODUCTS PAGE ==================== */
.products-page {
    padding: 40px 0;
}

.products-page.no-header {
    padding-top: 20px;
}

.page-header {
    margin-bottom: 30px;
    position: relative;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-secondary);
}

.products-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    align-items: start;
}

.products-sidebar {
    position: sticky;
    top: 70px;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1;
}

.filter-section {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.filter-section h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
}

.category-list a:hover,
.category-list a.active {
    background: var(--primary-color);
    color: white;
}

.category-list a.active .category-count {
    background: rgba(255,255,255,0.2);
    color: white;
}

.category-count {
    margin-left: auto;
    font-size: 0.75rem;
    padding: 2px 8px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    color: var(--text-secondary);
}

.info-box p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.info-box i {
    color: var(--success-color);
}

/* Products Grid - 4 columnas */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.product-card a {
    display: block;
    color: inherit;
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 12px 14px;
}

.product-info h3 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    line-height: 1.3;
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-colors {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.color-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.2s;
}

.color-dot:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Estilos para colores con borde claro (blanco, amarillo, etc) */
.color-dot[style*="#FFF"],
.color-dot[style*="#fff"],
.color-dot[style*="white"],
.color-dot[style*="#FFFF"],
.color-dot[style*="#ffff"] {
    border-color: #ddd;
}

/* Colores inline junto al nombre del producto */
.product-colors-inline {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 0 14px 6px;
    justify-content: flex-start;
}

.color-dot-small {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.color-dot-small-link {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    flex-shrink: 0;
    display: inline-block;
    transition: transform 0.2s;
}

.color-dot-small-link:hover {
    transform: scale(1.15);
}

.color-dot-small[style*="#FFF"],
.color-dot-small[style*="#fff"],
.color-dot-small[style*="white"],
.color-dot-small[style*="#FFFFFF"],
.color-dot-small[style*="#ffffff"],
.color-dot-small-link[style*="#FFF"],
.color-dot-small-link[style*="#fff"],
.color-dot-small-link[style*="white"],
.color-dot-small-link[style*="#FFFFFF"],
.color-dot-small-link[style*="#ffffff"] {
    border-color: #ddd;
}

.more-colors-inline {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-left: 2px;
}

/* Área de descripción del producto */
.product-description-area {
    padding: 10px 20px 15px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.product-description-area .product-short-desc {
    margin: 0 0 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description-area .print-areas-info {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

.product-description-area .print-areas-info i {
    font-size: 0.85rem;
}

/* Áreas de impresión base (fuera de description area) */
.product-card > .print-areas-info {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 20px 15px;
}

.product-card > .print-areas-info i {
    font-size: 0.85rem;
}

/* Fila de colores clickeables (legacy) */
.product-colors-row {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 20px 12px;
}

.color-dot-link {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    flex-shrink: 0;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.color-dot-link:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.color-dot-link[style*="#FFF"],
.color-dot-link[style*="#fff"],
.color-dot-link[style*="white"],
.color-dot-link[style*="#FFFFFF"],
.color-dot-link[style*="#ffffff"] {
    border-color: #ddd;
}

/* Ocultar colores extra en móvil/desktop */
.color-dot-link.hide-desktop {
    display: none;
}

.more-colors.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .color-dot-link.hide-mobile {
        display: none;
    }
    
    .color-dot-link.hide-desktop {
        display: inline-block;
    }
    
    .more-colors.show-mobile {
        display: inline;
    }
    
    .more-colors.hide-mobile {
        display: none;
    }
}

/* Descripción corta del producto */
.product-short-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 5px 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-extra-info {
    padding: 0 20px 15px;
}

.more-colors {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    padding-left: 2px;
}

.sizes {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.print-areas-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.print-areas-info i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* Popular products section */
.popular-products {
    padding: 60px 0;
}

.popular-products h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.products-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.text-center {
    text-align: center;
}

/* No products */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-products i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* ==================== CART PAGE ==================== */
.cart-page {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.empty-cart-icon {
    font-size: 5rem;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-cart h2 {
    margin-bottom: 10px;
}

.empty-cart p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr 120px 100px 40px;
    gap: 20px;
    align-items: center;
    background: var(--bg-primary);
    padding: 20px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.cart-item:hover {
    box-shadow: var(--shadow-md);
}

.item-image .design-preview {
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.item-image .product-bg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.item-image .design-overlay {
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 50%;
    object-fit: contain;
}

.item-details h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.item-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.item-options .option {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.item-pricing {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.item-pricing span {
    display: block;
}

.edit-link {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.item-quantity label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--border-color);
}

.quantity-control input {
    width: 50px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 1rem;
    -moz-appearance: textfield;
}

.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.item-total {
    text-align: right;
}

.unit-price {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.subtotal {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.remove-item {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
}

.remove-item:hover {
    background: var(--danger-color);
    color: white;
}

/* Cart Summary */
.cart-summary {
    background: var(--bg-primary);
    padding: 25px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
}

.cart-summary h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.free-shipping-notice,
.free-shipping-achieved {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    text-align: center;
}

.free-shipping-notice {
    background: #FEF3C7;
    color: #92400E;
}

.free-shipping-achieved {
    background: #D1FAE5;
    color: #065F46;
}

.free-shipping-notice i,
.free-shipping-achieved i {
    margin-right: 8px;
}

.shipping-progress {
    height: 6px;
    background: #FDE68A;
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--success-color);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.summary-details {
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.iva-row {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.summary-row.total-row {
    font-size: 1.25rem;
    font-weight: 700;
    border-top: 2px solid var(--border-color);
    margin-top: 10px;
    padding-top: 15px;
}

.free {
    color: var(--success-color);
    font-weight: 600;
}

.secure-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.secure-checkout i {
    color: var(--success-color);
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 2rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* ==================== CHECKOUT PAGE ==================== */
.checkout-header {
    background: var(--bg-primary);
    box-shadow: var(--shadow);
}

.checkout-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.checkout-steps {
    display: flex;
    gap: 30px;
}

.checkout-steps .step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.checkout-steps .step.active {
    color: var(--primary-color);
    font-weight: 600;
}

.checkout-steps .step.completed {
    color: var(--success-color);
}

.back-to-cart {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.checkout-page {
    padding: 40px 0;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    background: var(--bg-primary);
    padding: 25px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.form-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.form-section h2 i {
    color: var(--primary-color);
}

/* Shipping & Payment Options */
.shipping-options,
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shipping-option,
.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.shipping-option:hover,
.payment-option:hover {
    border-color: var(--primary-light);
}

.shipping-option.selected,
.payment-option.selected {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.05);
}

.shipping-option input,
.payment-option input {
    margin-top: 3px;
}

.option-content {
    flex: 1;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-title {
    font-weight: 500;
}

.option-price {
    font-weight: 600;
    color: var(--primary-color);
}

.option-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
    display: block;
}

.card-icons {
    display: flex;
    gap: 8px;
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.card-fields {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Terms */
.terms-section {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 12px;
}

.checkbox-label input {
    margin-top: 3px;
}

.checkbox-label a {
    color: var(--primary-color);
}

/* Checkout Summary */
.checkout-summary {
    position: sticky;
    top: 90px;
}

.summary-sticky {
    background: var(--bg-primary);
    padding: 25px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.summary-sticky h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.order-items {
    margin-bottom: 20px;
    max-height: 250px;
    overflow-y: auto;
}

.order-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.item-thumb {
    position: relative;
    flex-shrink: 0;
}

.quantity-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.thumb-preview {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.thumb-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.order-item .item-info {
    flex: 1;
}

.order-item .item-info h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.order-item .item-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.order-item .item-price {
    font-weight: 600;
    font-size: 0.9rem;
}

.promo-code {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.promo-code input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.summary-totals {
    margin-bottom: 20px;
}

.summary-totals .summary-row.total {
    font-size: 1.3rem;
    font-weight: 700;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid var(--border-color);
}

.secure-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.secure-info i {
    color: var(--success-color);
}

.guarantees {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.guarantee {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
}

.guarantee i {
    font-size: 1.2rem;
    color: var(--success-color);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== CONFIRMATION PAGE ==================== */
.confirmation-page {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.confirmation-content {
    max-width: 800px;
    margin: 0 auto;
}

.confirmation-header {
    text-align: center;
    background: var(--bg-primary);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #D1FAE5;
    color: var(--success-color);
    font-size: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.confirmation-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.order-number {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.payment-instructions {
    background: #FEF3C7;
    padding: 25px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 30px;
}

.payment-instructions h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #92400E;
}

.bank-details {
    background: white;
    padding: 15px;
    border-radius: var(--border-radius);
}

.bank-details p {
    margin-bottom: 5px;
}

.payment-instructions .note {
    margin-top: 15px;
    font-style: italic;
    color: #92400E;
}

.order-summary-confirmation,
.shipping-info-confirmation,
.next-steps {
    background: var(--bg-primary);
    padding: 25px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.order-summary-confirmation h3,
.shipping-info-confirmation h3,
.next-steps h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.order-items-list {
    margin-bottom: 20px;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.order-item-row:last-child {
    border-bottom: none;
}

.item-name {
    font-weight: 500;
}

.item-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.order-totals-confirmation .total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.order-totals-confirmation .total-row.iva {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.order-totals-confirmation .total-row.grand-total {
    font-size: 1.25rem;
    font-weight: 700;
    border-top: 2px solid var(--border-color);
    padding-top: 15px;
    margin-top: 10px;
}

/* Timeline */
.steps-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-step {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    position: relative;
}

.timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 17px;
    top: 50px;
    width: 2px;
    height: calc(100% - 35px);
    background: var(--border-color);
}

.timeline-step.completed::after {
    background: var(--success-color);
}

.timeline-step .step-icon {
    width: 36px;
    height: 36px;
    background: var(--border-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-step.completed .step-icon {
    background: var(--success-color);
}

.timeline-step.pending .step-icon {
    background: var(--border-color);
}

.step-content h4 {
    margin-bottom: 4px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.confirmation-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Error content */
.error-content {
    text-align: center;
    padding: 80px 20px;
}

.error-icon {
    font-size: 5rem;
    color: var(--warning-color);
    margin-bottom: 20px;
}

/* ==================== HERO INTRO ==================== */
.hero-intro {
    background: linear-gradient(135deg, var(--primary-color) 0%, #818CF8 100%);
    color: white;
    padding: 25px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 1.6rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 0.95rem;
    opacity: 0.95;
    margin-bottom: 15px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.hero-badge i {
    font-size: 0.85rem;
}

/* Hero móvil optimizado */
@media (max-width: 768px) {
    .hero-intro {
        padding: 15px;
    }
    
    .hero-content h1 {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    .hero-badges {
        gap: 6px;
    }
    
    .hero-badge {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
    
    .hero-badge i {
        font-size: 0.75rem;
    }
}

/* ==================== SEO INFO SECTION ==================== */
.seo-info-section {
    background: var(--bg-light);
    padding: 60px 0;
}

.seo-content h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

@media (max-width: 900px) {
    .seo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .seo-grid {
        grid-template-columns: 1fr;
    }
}

.seo-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.seo-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.seo-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.seo-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.seo-cta {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.seo-cta p {
    color: var(--text-secondary);
}

.seo-cta a {
    color: var(--primary-color);
    font-weight: 600;
}

.seo-cta a:hover {
    text-decoration: underline;
}

/* ==================== FOOTER ==================== */
.main-footer {
    background: var(--text-primary);
    color: white;
    padding: 30px 0 20px;
    margin-top: auto;
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 40px;
    margin-bottom: 25px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-contact-item:hover {
    color: white;
}

.footer-contact-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ==================== NOTIFICATIONS ==================== */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: var(--border-radius);
    background: var(--text-primary);
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    transform: translateX(120%);
    transition: var(--transition-slow);
    z-index: 10000;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: var(--success-color);
}

.notification-error {
    background: var(--danger-color);
}

.notification-warning {
    background: var(--warning-color);
}

/* ==================== MODALS ==================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-large {
    max-width: 900px;
}

/* Modal de productos responsive */
@media (max-width: 768px) {
    .modal-large {
        max-width: 100%;
        max-height: 90vh;
        margin: 5vh 10px;
    }
    
    .product-modal-scrollable {
        max-height: 65vh;
    }
    
    .products-modal-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .product-modal-item {
        padding: 6px;
    }
    
    .product-modal-info h4 {
        font-size: 0.7rem;
    }
    
    .product-modal-info .price {
        font-size: 0.8rem;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.25rem;
}

.modal-close {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-tertiary);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

/* Products modal grid */
.products-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.product-modal-scrollable {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 5px;
}

.product-modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.product-modal-item {
    display: flex;
    flex-direction: column;
    padding: 8px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    background: var(--bg-primary);
}

.product-modal-item:hover,
.product-modal-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
}

.product-modal-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-tertiary);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.product-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.product-modal-info h4 {
    font-size: 0.8rem;
    margin-bottom: 4px;
    color: var(--text-primary);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-modal-info .price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Sección otras categorías */
.other-categories-section {
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.other-categories-section summary {
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 0;
    margin-bottom: 12px;
}

.other-categories-section summary:hover {
    color: var(--primary-color);
}

/* ==================== RESPONSIVE ==================== */

/* Tablets grandes y pantallas medianas */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 1024px) {
    .products-layout {
        grid-template-columns: 1fr;
    }
    
    .products-sidebar {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .products-sidebar .filter-section {
        flex: 1;
        min-width: 200px;
        margin-bottom: 0;
    }
    
    .products-sidebar .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .products-sidebar .category-list li {
        margin-bottom: 0;
    }
    
    .products-sidebar .category-list a {
        padding: 8px 14px;
        white-space: nowrap;
    }
    
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-summary,
    .checkout-summary {
        position: static;
        margin-top: 20px;
    }
    
    .checkout-layout {
        gap: 25px;
    }
}

/* Tablets */
@media (max-width: 900px) {
    .checkout-header .container {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 20px;
        gap: 10px;
    }
    
    .checkout-steps {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 15px;
        padding-top: 10px;
        border-top: 1px solid var(--border-color);
        flex-wrap: wrap;
    }
    
    .checkout-steps .step {
        font-size: 0.8rem;
    }
    
    .back-to-cart {
        order: 2;
    }
}

@media (max-width: 768px) {
    /* Header responsive */
    .main-header .container {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 15px;
        gap: 0;
    }
    
    .logo {
        font-size: 1.2rem;
        flex: 1;
    }
    
    .logo i {
        font-size: 1.4rem;
    }
    
    /* Mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 2;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }
    
    .main-nav.active {
        max-height: 300px;
        padding-top: 15px;
        margin-top: 12px;
        border-top: 1px solid var(--border-color);
    }
    
    .main-nav a {
        width: 100%;
        text-align: center;
        padding: 12px 15px;
        font-size: 1rem;
        border-radius: var(--border-radius);
    }
    
    .main-nav a:hover {
        background: var(--bg-tertiary);
    }
    
    /* Hero responsive */
    .hero {
        padding: 50px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Page header */
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-header p {
        font-size: 0.9rem;
    }
    
    /* Products grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-card {
        border-radius: 8px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-info h3 {
        font-size: 0.85rem;
    }
    
    .product-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .price {
        font-size: 1.1rem;
    }
    
    .sizes {
        font-size: 0.75rem;
    }
    
    .print-areas-info {
        font-size: 0.75rem;
    }
    
    /* Cart items responsive */
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 12px;
        padding: 15px;
        position: relative;
    }
    
    .cart-item .item-details {
        grid-column: 2;
    }
    
    .cart-item .item-quantity {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 10px;
        border-top: 1px solid var(--border-color);
        margin-top: 5px;
    }
    
    .cart-item .item-total {
        grid-column: 1 / -1;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .remove-item {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
    }
    
    .item-image .design-preview {
        width: 80px;
        height: 80px;
    }
    
    /* Forms */
    .form-row.two-cols,
    .form-row.three-cols {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-section {
        padding: 18px;
    }
    
    .form-section h2 {
        font-size: 1rem;
    }
    
    /* Checkout */
    .checkout-steps {
        display: none;
    }
    
    /* Shipping options */
    .shipping-option,
    .payment-option {
        padding: 12px;
    }
    
    .option-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    /* Confirmation */
    .confirmation-header {
        padding: 25px 20px;
    }
    
    .confirmation-header h1 {
        font-size: 1.5rem;
    }
    
    .confirmation-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .confirmation-actions .btn {
        width: 100%;
    }
    
    /* Cart Summary */
    .cart-summary {
        padding: 18px;
    }
    
    .cart-summary h2 {
        font-size: 1.1rem;
    }
    
    /* Features */
    .features {
        padding: 50px 0;
    }
    
    .features-grid {
        gap: 20px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* How it works */
    .how-it-works {
        padding: 50px 0;
    }
    
    .how-it-works h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .steps {
        gap: 20px;
    }
    
    /* Modal */
    .modal {
        padding: 15px;
    }
    
    .modal-content {
        border-radius: 12px;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h2 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-footer {
        padding: 15px;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    .products-modal-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    /* Footer */
    .main-footer {
        padding: 35px 0 15px;
    }
    
    .footer-grid {
        gap: 25px;
    }
    
    .footer-col h4 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    /* Header */
    .main-header .container {
        padding: 10px 12px;
    }
    
    .logo span {
        display: none;
    }
    
    .main-nav {
        gap: 5px;
    }
    
    .main-nav a {
        font-size: 0.8rem;
        padding: 6px 8px;
    }
    
    /* Hero */
    .hero {
        padding: 35px 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .btn-large {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    /* Products */
    .products-page {
        padding: 20px 0;
    }
    
    .page-header {
        margin-bottom: 20px;
    }
    
    .page-header h1 {
        font-size: 1.3rem;
    }
    
    .products-sidebar {
        flex-direction: column;
    }
    
    .products-sidebar .filter-section {
        min-width: 100%;
    }
    
    /* Categorías en grid de 2 columnas en móvil */
    .products-sidebar .category-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .products-sidebar .category-list li {
        margin-bottom: 0;
    }
    
    .products-sidebar .category-list a {
        padding: 8px 10px;
        font-size: 0.85rem;
        justify-content: flex-start;
        white-space: nowrap;
        overflow: hidden;
    }
    
    .products-sidebar .category-list a i {
        font-size: 0.9rem;
    }
    
    .category-count {
        font-size: 0.7rem;
        padding: 1px 6px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .product-card {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }
    
    .product-card .product-link {
        display: block;
    }
    
    .product-image {
        width: 100%;
        min-width: auto;
        aspect-ratio: 1;
    }
    
    .product-image img {
        padding: 8px;
    }
    
    .product-info {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 8px 10px;
    }
    
    .product-info h3 {
        font-size: 0.8rem;
        line-height: 1.2;
        margin-bottom: 2px;
    }
    
    .product-meta {
        margin-bottom: 0;
    }
    
    /* Colores debajo de la imagen en móvil */
    .product-colors-inline {
        padding: 4px 10px 8px;
        justify-content: flex-start;
    }
    
    /* Áreas de impresión en móvil */
    .product-card > .print-areas-info {
        padding: 4px 10px 8px;
        font-size: 0.7rem;
        color: #666;
        margin-top: 0;
    }
    
    .product-card > .print-areas-info i {
        font-size: 0.8rem;
    }
    
    /* Descripción dentro de product-info en móvil */
    .product-description-area {
        padding: 0 10px 8px;
        margin-top: 0;
        border-top: none;
        background: transparent;
    }
    
    .product-description-area .product-short-desc {
        font-size: 0.7rem;
        margin-bottom: 0;
        -webkit-line-clamp: 2;
    }
    
    .product-description-area .print-areas-info {
        font-size: 0.65rem;
    }
    
    .product-overlay {
        display: none;
    }
    
    .product-description {
        display: none;
    }
    
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 0;
    }
    
    .product-colors {
        gap: 4px;
    }
    
    .color-dot {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
    }
    
    .price {
        font-size: 1.1rem;
    }
    
    .sizes {
        display: none;
    }
    
    .print-areas-info {
        font-size: 0.7rem;
    }
    
    /* Cart */
    .cart-page {
        padding: 20px 0;
    }
    
    .cart-item {
        grid-template-columns: 70px 1fr;
        gap: 10px;
        padding: 12px;
    }
    
    .item-image .design-preview {
        width: 70px;
        height: 70px;
    }
    
    .item-details h3 {
        font-size: 0.95rem;
    }
    
    .item-options {
        gap: 6px 10px;
    }
    
    .item-options .option {
        font-size: 0.8rem;
    }
    
    .quantity-control {
        transform: scale(0.9);
        transform-origin: left;
    }
    
    .empty-cart {
        padding: 50px 15px;
    }
    
    .empty-cart-icon {
        font-size: 3.5rem;
    }
    
    .empty-cart h2 {
        font-size: 1.3rem;
    }
    
    /* Checkout */
    .checkout-page {
        padding: 20px 0;
    }
    
    .form-section {
        padding: 15px;
        border-radius: 10px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 16px; /* Evita zoom en iOS */
    }
    
    /* Summary */
    .cart-summary,
    .summary-sticky {
        padding: 15px;
    }
    
    .summary-row {
        padding: 10px 0;
        font-size: 0.9rem;
    }
    
    .summary-row.total-row {
        font-size: 1.1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .btn-block {
        padding: 12px 16px;
    }
    
    /* Features */
    .features {
        padding: 35px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 15px;
        padding: 15px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 1.2rem;
        margin: 0;
    }
    
    .feature-card h3 {
        font-size: 1rem;
        margin-bottom: 4px;
    }
    
    .feature-card p {
        font-size: 0.85rem;
    }
    
    /* Steps */
    .steps {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .step {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 12px;
    }
    
    .step-number {
        margin: 0;
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.2rem;
    }
    
    .step h3 {
        margin-bottom: 2px;
        font-size: 1rem;
    }
    
    .step p {
        font-size: 0.8rem;
    }
    
    /* Confirmation */
    .confirmation-content {
        padding: 0;
    }
    
    .confirmation-header {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .confirmation-header h1 {
        font-size: 1.3rem;
    }
    
    .order-number {
        font-size: 1rem;
    }
    
    .order-summary-confirmation,
    .shipping-info-confirmation,
    .next-steps,
    .payment-instructions {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    /* Notifications */
    .notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(120%);
        padding: 14px 18px;
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    /* Footer */
    .main-footer {
        padding: 25px 0 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .footer-col h4 {
        margin-bottom: 10px;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Landscape móviles */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 30px 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        margin-bottom: 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Asegurar touch targets mínimos */
@media (pointer: coarse) {
    .btn,
    .category-list a,
    .shipping-option,
    .payment-option,
    .size-option {
        min-height: 44px;
    }
    
    /* Color dots mantienen su tamaño circular */
    .color-dot {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }
    
    .checkbox-label {
        padding: 8px 0;
    }
}

/* ==================== COOKIE BANNER ==================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1F2937;
    color: white;
    padding: 16px 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: var(--primary-light, #818CF8);
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: white;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-banner-buttons .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.cookie-banner-buttons .btn-cookie-accept {
    background: var(--primary-color, #4F46E5);
    color: white;
    border: none;
}

.cookie-banner-buttons .btn-cookie-accept:hover {
    background: var(--primary-dark, #4338CA);
}

.cookie-banner-buttons .btn-cookie-settings {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.cookie-banner-buttons .btn-cookie-settings:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

@media (max-width: 600px) {
    .cookie-banner {
        padding: 14px 16px;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-banner-buttons .btn {
        flex: 1;
        max-width: 160px;
    }
}

/* ==================== LEGAL DISCLAIMER MINI ==================== */
.legal-disclaimer-mini {
    margin-top: 12px;
    padding: 12px 14px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.legal-disclaimer-mini p {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.5;
}

.legal-disclaimer-mini a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.legal-disclaimer-mini a:hover {
    text-decoration: underline;
}

.legal-disclaimer-mini i {
    color: var(--info-color);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Info link inline */
.info-link {
    margin-left: 6px;
    font-size: 0.85em;
    color: var(--text-secondary);
    opacity: 0.8;
}

.info-link:hover {
    color: var(--primary-color);
    opacity: 1;
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    padding: 20px 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
    background: var(--bg-secondary);
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.pagination-btn:hover:not(.disabled):not(.active) {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    color: var(--text-secondary);
    padding: 0 4px;
}

.pagination-info {
    margin-left: 16px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .pagination {
        gap: 4px;
    }
    
    .pagination-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 0.875rem;
    }
    
    .pagination-info {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-top: 12px;
    }
}

/* ==================== DISCOVER MORE LINK ==================== */
.filter-section.discover-more {
    padding: 0;
}

.discover-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
    border-radius: var(--border-radius);
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.discover-link:hover {
    background: linear-gradient(135deg, #e0e8ff 0%, #d8e4ff 100%);
    transform: translateX(4px);
}

.discover-link i:first-child {
    font-size: 1.2rem;
}

.discover-link span {
    flex: 1;
}

.discover-link i:last-child {
    opacity: 0.6;
    font-size: 0.85rem;
}

/* Ocultar discover-more solo en móvil pequeño para ahorrar espacio */
@media (max-width: 768px) {
    .filter-section.discover-more {
        display: none;
    }
}
