/* ===============================================
   HEADER MODERNO - Frank3DWorld
   Añadir ANTES de los estilos antiguos del header
   =============================================== */

/* === HEADER PRINCIPAL === */
.main-header-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 70px;
}

/* === LOGO MODERNO === */
.logo-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

    .logo-modern:hover {
        transform: scale(1.05);
    }

.logo-icon-modern {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

    .logo-icon-modern svg {
        width: 30px;
        height: 30px;
    }

.logo-text-modern {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* === NAVEGACIÓN PRINCIPAL === */
.main-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

    .nav-item:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-1px);
    }

.nav-icon {
    font-size: 1.1rem;
}

.nav-premium {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.4);
}

    .nav-premium:hover {
        background: rgba(255, 215, 0, 0.3);
    }

/* === BUSCADOR === */
.header-search-modern {
    flex: 1;
    max-width: 500px;
}

.search-form-modern {
    position: relative;
    width: 100%;
}

.search-input-modern {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    color: #1e293b;
}

    .search-input-modern::placeholder {
        color: #94a3b8;
    }

    .search-input-modern:focus {
        outline: none;
        border-color: white;
        background: white;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

.search-btn-modern {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
}

    .search-btn-modern:hover {
        background: #5568d3;
        transform: translateY(-50%) scale(1.05);
    }

/* === ACCIONES DE USUARIO === */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.cart-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
}

    .cart-btn:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(1.05);
    }

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    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 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.user-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    width: auto;
    height: 44px;
}

    .user-btn:hover {
        background: rgba(255, 255, 255, 0.25);
    }

.user-name-desktop {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.login-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

    .login-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
    }

.register-btn {
    background: white;
    color: #667eea;
    font-weight: 700;
}

    .register-btn:hover {
        background: #f8f9fa;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

/* === DROPDOWN DE USUARIO === */
.user-menu-dropdown {
    position: relative;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

    .user-dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.dropdown-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

    .dropdown-header strong {
        display: block;
        color: #1e293b;
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }

.user-email {
    font-size: 0.8rem;
    color: #64748b;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

    .dropdown-item:hover {
        background: #f1f5f9;
        color: #667eea;
    }

    .dropdown-item.logout {
        color: #ef4444;
    }

        .dropdown-item.logout:hover {
            background: #fee2e2;
        }

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.5rem 0;
}

/* === BOTÓN MENÚ MÓVIL === */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    padding: 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .mobile-menu-btn span {
        width: 24px;
        height: 3px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn:hover {
        background: rgba(255, 255, 255, 0.25);
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

/* === MENÚ MÓVIL === */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
}

    .mobile-menu.active {
        right: 0;
    }

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.mobile-menu-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .mobile-menu-close:hover {
        background: rgba(255, 255, 255, 0.3);
    }

.mobile-search {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-menu-items {
    padding: 0.5rem 0;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-user-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.mobile-user-info strong {
    display: block;
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.mobile-user-info span {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

    .mobile-menu-item:hover {
        background: #f1f5f9;
        color: #667eea;
    }

    .mobile-menu-item span:first-child {
        font-size: 1.3rem;
        width: 24px;
        text-align: center;
    }

    .mobile-menu-item.highlighted {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        margin: 1rem;
        border-radius: 12px;
    }

        .mobile-menu-item.highlighted:hover {
            background: linear-gradient(135deg, #5568d3 0%, #6a3d99 100%);
            color: white;
        }

.mobile-cart-badge {
    position: absolute;
    right: 1.5rem;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.mobile-menu-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.5rem 1.5rem;
}

/* === PÁGINA DE COLECCIONES === */
.colecciones-header-page {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-radius: var(--radius);
    margin-bottom: 3rem;
}

    .colecciones-header-page h1 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 0.75rem;
        color: var(--text);
    }

.colecciones-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

.colecciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.coleccion-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

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

.coleccion-imagen-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.coleccion-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.coleccion-card:hover .coleccion-imagen {
    transform: scale(1.1);
}

.coleccion-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 4rem;
    opacity: 0.3;
}

.coleccion-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.coleccion-card:hover .coleccion-overlay {
    opacity: 1;
}

.overlay-text {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.coleccion-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.coleccion-titulo {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.coleccion-descripcion-short {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.coleccion-meta {
    display: flex;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.productos-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

    .productos-count svg {
        color: var(--primary);
    }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .header-container {
        gap: 1rem;
        padding: 0 1.5rem;
    }

    .main-nav {
        display: none;
    }

    .header-search-modern {
        max-width: 400px;
    }

    .user-name-desktop {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
        height: 60px;
    }

    .logo-brand {
        font-size: 1.2rem;
    }

    .logo-subtitle {
        font-size: 0.65rem;
    }

    .logo-icon-modern {
        width: 38px;
        height: 38px;
    }

        .logo-icon-modern svg {
            width: 24px;
            height: 24px;
        }

    .header-search-modern {
        display: none;
    }

    .login-btn,
    .register-btn {
        display: none;
    }

    .user-btn {
        width: 40px;
        height: 40px;
        padding: 0;
    }

    .cart-btn {
        width: 40px;
        height: 40px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .colecciones-grid {
        grid-template-columns: 1fr;
    }

    .colecciones-header-page h1 {
        font-size: 2rem;
    }
}

/* === OCULTAR HEADER ANTIGUO === */
.main-header {
    display: none !important;
}

/* === AJUSTES GENERALES === */
body {
    padding-top: 0 !important;
}

.main-content {
    padding-top: 2rem;
}

/**
 * main.css
 * Estilos globales del proyecto
 * Diseño minimalista y responsive
 */

/* === RESET Y VARIABLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-secondary: #64748b;
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-bg: #f8fafc;
    --color-card: #ffffff;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

    a:hover {
        color: var(--color-primary-dark);
    }

/* === HEADER === */
.main-header {
    background-color: var(--color-card);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .logo:hover {
        color: var(--color-primary);
    }

.logo-icon {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

    .nav-menu a {
        font-weight: 500;
        color: var(--color-text);
        position: relative;
    }

.cart-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-badge {
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* === CONTAINER === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* === HERO === */
.hero {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

    .hero h1 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 0.75rem;
        color: var(--color-text);
    }

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
}

/* === PRODUCTOS GRID === */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.producto-card {
    background-color: var(--color-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

    .producto-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

.producto-imagen {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .producto-imagen img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.placeholder-imagen {
    font-size: 4rem;
    opacity: 0.3;
}

.producto-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.producto-titulo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
}

.producto-precio {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* === BOTONES === */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    font-family: inherit;
}

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

    .btn-primary:hover {
        background-color: var(--color-primary-dark);
        color: white;
        transform: scale(1.02);
    }

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

    .btn-secondary:hover {
        background-color: #475569;
        color: white;
    }

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.btn-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-text-light);
    text-align: center;
}

.btn-eliminar {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
    transition: var(--transition);
}

    .btn-eliminar:hover {
        transform: scale(1.2);
    }

/* === DETALLE DE PRODUCTO === */
.breadcrumb {
    margin-bottom: 2rem;
    color: var(--color-text-light);
}

.producto-detalle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.producto-imagen-grande {
    background-color: var(--color-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

    .producto-imagen-grande img {
        max-height: 500px;
        object-fit: contain;
    }

.placeholder-imagen-grande {
    font-size: 8rem;
    opacity: 0.2;
}

.producto-detalles {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

    .producto-detalles h1 {
        font-size: 2rem;
        font-weight: 700;
    }

.producto-precio-grande {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.producto-descripcion {
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
}

    .producto-descripcion h3 {
        margin-bottom: 0.75rem;
        font-size: 1.25rem;
    }

.producto-info-extra {
    background-color: var(--color-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

    .producto-info-extra p {
        margin-bottom: 0.5rem;
    }

.form-agregar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* === CARRITO === */
.carrito-contenido {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.carrito-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.carrito-item {
    background-color: var(--color-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.carrito-item-imagen {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    background-color: var(--color-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .carrito-item-imagen img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.placeholder-imagen-mini {
    font-size: 2rem;
    opacity: 0.3;
}

.carrito-item-info {
    flex: 1;
}

    .carrito-item-info h3 {
        font-size: 1.125rem;
        margin-bottom: 0.25rem;
    }

.carrito-item-cantidad {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.carrito-item-precio {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.carrito-item-eliminar {
    margin: 0;
}

.carrito-resumen {
    background-color: var(--color-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    height: fit-content;
    position: sticky;
    top: 100px;
}

    .carrito-resumen h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

.resumen-linea {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.resumen-total {
    font-size: 1.25rem;
    font-weight: 700;
    border-top: 2px solid var(--color-border);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

/* === CHECKOUT === */
.checkout-contenido {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.checkout-formulario,
.checkout-resumen {
    background-color: var(--color-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.checkout-resumen {
    height: fit-content;
    position: sticky;
    top: 100px;
}

.form-checkout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .form-group label {
        font-weight: 600;
        color: var(--color-text);
    }

    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        border: 1px solid var(--color-border);
        border-radius: var(--border-radius);
        font-family: inherit;
        font-size: 1rem;
        transition: var(--transition);
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--color-primary);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        }

.checkout-nota {
    background-color: #fef3c7;
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid #f59e0b;
}

.resumen-productos {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.resumen-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.checkout-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

    .checkout-info p {
        margin-bottom: 0.5rem;
        color: var(--color-text-light);
        font-size: 0.9rem;
    }

/* === MENSAJES === */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--color-success);
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--color-error);
}

.success-message {
    text-align: center;
    padding: 4rem 2rem;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.success-message h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.success-message p {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.success-actions {
    margin-top: 2rem;
}

/* === ESTADOS VACÍOS === */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-cart-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.text-muted {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* === FOOTER === */
.main-footer {
    background-color: var(--color-text);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

    .main-footer p {
        margin-bottom: 0.5rem;
    }

.footer-subtitle {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .productos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .producto-detalle {
        grid-template-columns: 1fr;
    }

    .carrito-contenido,
    .checkout-contenido {
        grid-template-columns: 1fr;
    }

    .carrito-resumen,
    .checkout-resumen {
        position: static;
    }

    .carrito-item {
        flex-wrap: wrap;
    }

    .carrito-item-precio {
        width: 100%;
        text-align: right;
    }

    .nav-menu {
        gap: 1rem;
    }

    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
}


/* ===============================================
   ESTILOS ADICIONALES PARA SISTEMA DE USUARIOS
   Añadir estos estilos al final de main.css
   =============================================== */

/* === NAVEGACIÓN USUARIO === */
.subscription-badge-nav {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.user-menu {
    display: flex;
    align-items: center;
}

.user-name {
    font-weight: 500;
    color: var(--text);
}

.btn-login {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

    .btn-login:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
    }

/* === PÁGINA DE LOGIN/REGISTRO === */
.auth-container {
    max-width: 1000px;
    margin: 3rem auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

.auth-box {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
}

.auth-tab {
    flex: 1;
    padding: 1.25rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

    .auth-tab:hover {
        color: var(--primary);
        background: var(--bg);
    }

    .auth-tab.active {
        color: var(--primary);
        border-bottom-color: var(--primary);
    }

.auth-form {
    padding: 2.5rem;
}

    .auth-form h2 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

.auth-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
}

.auth-benefits {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    padding: 2.5rem;
    color: white;
}

    .auth-benefits h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

.benefits-list {
    list-style: none;
}

    .benefits-list li {
        padding: 0.75rem 0;
        font-size: 1.05rem;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

        .benefits-list li:last-child {
            border-bottom: none;
        }

/* ===============================================
   ESTILOS MEJORADOS PARA SUSCRIPCIÓN
   Con colores vibrantes y diseño atractivo
   =============================================== */

/* === HEADER DE SUSCRIPCIÓN === */
.subscription-header {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    margin-bottom: 3rem;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

    .subscription-header h1 {
        font-size: 2.8rem;
        margin-bottom: 1rem;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        font-weight: 800;
    }

    .subscription-header .subtitle {
        font-size: 1.3rem;
        color: rgba(255, 255, 255, 0.95);
        font-weight: 400;
        max-width: 600px;
        margin: 0 auto;
    }

/* === SUSCRIPCIÓN ACTIVA === */
.subscription-active {
    text-align: center;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
    border: 3px solid #10b981;
}

    .subscription-active .success-icon {
        font-size: 6rem;
        margin-bottom: 1.5rem;
        animation: bounce 2s infinite;
    }

    .subscription-active h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        color: #059669;
        font-weight: 800;
    }

    .subscription-active > p {
        font-size: 1.2rem;
        color: #065f46;
        margin-bottom: 2rem;
    }

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.subscription-info {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 10px;
}

    .info-item strong {
        color: #374151;
        font-weight: 600;
    }

    .info-item span {
        color: #6b7280;
    }

.badge-active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.subscription-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

    .subscription-actions .btn {
        min-width: 200px;
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }

/* === PLANES DE SUSCRIPCIÓN === */
.subscription-plans {
    max-width: 900px;
    margin: 0 auto;
}

.plan-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    position: relative;
    margin-bottom: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .plan-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    }

    .plan-card.featured {
        border: 4px solid #667eea;
        background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    }

.plan-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.7rem 2rem;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.plan-card h3 {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
    font-weight: 800;
}

.plan-price {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    border-radius: 15px;
}

.price-amount {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    line-height: 1;
}

.price-period {
    font-size: 1.5rem;
    color: #64748b;
    font-weight: 600;
}

.plan-features {
    list-style: none;
    margin: 2.5rem 0;
    padding: 0;
}

    .plan-features li {
        padding: 1.2rem 1.5rem;
        border-bottom: 2px solid #f1f5f9;
        font-size: 1.15rem;
        color: #334155;
        transition: background 0.3s ease;
        border-radius: 10px;
        margin-bottom: 0.5rem;
    }

        .plan-features li:hover {
            background: #f8fafc;
        }

        .plan-features li:last-child {
            border-bottom: none;
        }

        .plan-features li::before {
            content: '✓';
            color: #10b981;
            font-weight: bold;
            font-size: 1.4rem;
            margin-right: 0.8rem;
        }

.paypal-container {
    margin: 2.5rem 0;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-note {
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

/* === TABLA DE COMPARACIÓN === */
.plan-comparison {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

    .plan-comparison h3 {
        text-align: center;
        margin-bottom: 2rem;
        font-size: 2rem;
        color: #1e293b;
        font-weight: 800;
    }

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .comparison-table th,
    .comparison-table td {
        padding: 1.3rem 1.5rem;
        text-align: left;
        border-bottom: 2px solid #f1f5f9;
    }

    .comparison-table th {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
        font-weight: 700;
        font-size: 1.1rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

        .comparison-table th:first-child {
            border-top-left-radius: 12px;
        }

        .comparison-table th:last-child {
            border-top-right-radius: 12px;
        }

    .comparison-table tbody tr {
        transition: background 0.3s ease;
    }

        .comparison-table tbody tr:hover {
            background: #f9fafb;
        }

        .comparison-table tbody tr:last-child td {
            border-bottom: none;
        }

    .comparison-table td:first-child {
        font-weight: 600;
        color: #1e293b;
    }

    .comparison-table td:nth-child(2) {
        color: #64748b;
    }

    .comparison-table td:nth-child(3) {
        color: #10b981;
        font-weight: 600;
    }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .subscription-header {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }

        .subscription-header h1 {
            font-size: 2rem;
        }

        .subscription-header .subtitle {
            font-size: 1.1rem;
        }

    .subscription-active {
        padding: 2.5rem 1.5rem;
    }

        .subscription-active h2 {
            font-size: 2rem;
        }

    .subscription-actions {
        flex-direction: column;
    }

        .subscription-actions .btn {
            width: 100%;
        }

    .plan-card {
        padding: 2rem 1.5rem;
    }

        .plan-card h3 {
            font-size: 1.8rem;
        }

    .price-amount {
        font-size: 3rem;
    }

    .plan-features li {
        font-size: 1rem;
        padding: 1rem;
    }

    .plan-comparison {
        padding: 2rem 1rem;
        overflow-x: auto;
    }

    .comparison-table {
        font-size: 0.9rem;
    }

        .comparison-table th,
        .comparison-table td {
            padding: 1rem 0.8rem;
        }
}

/* === ANIMACIONES Y EFECTOS === */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plan-card,
.plan-comparison,
.subscription-active {
    animation: slideInUp 0.6s ease-out;
}

.plan-comparison {
    animation-delay: 0.2s;
}


/* ===============================================
   ESTILOS PARA MEJORAS AVANZADAS
   Añadir al final de main.css
   =============================================== */

/* === BUSCADOR EN HEADER === */
.header-search {
    flex: 1;
    max-width: 500px;
    margin: 0 2rem;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: var(--transition);
}

    .search-input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    }

.search-btn {
    padding: 0.75rem 1.25rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

    .search-btn:hover {
        background: var(--primary-dark);
    }

/* === DROPDOWN COLECCIONES === */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    min-width: 200px;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    z-index: 1000;
}

    .nav-dropdown-menu.show {
        display: block;
    }

    .nav-dropdown-menu li {
        list-style: none;
    }

    .nav-dropdown-menu a {
        display: block;
        padding: 0.75rem 1.25rem;
        color: var(--text);
        transition: var(--transition);
    }

        .nav-dropdown-menu a:hover {
            background: var(--bg);
            color: var(--primary);
        }

/* === DETALLE PRODUCTO MEJORADO === */
.producto-detalle-enhanced {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

/* Galería de imágenes */
.producto-galeria {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
    overflow: hidden;
}

.galeria-principal {
    position: relative;
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imagen-principal {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: var(--radius);
}

/* Controles video ocultos */
video.imagen-principal {
    outline: none;
}

video.imagen-principal::-webkit-media-controls {
    display: none !important;
}

video.imagen-principal::-webkit-media-controls-enclosure {
    display: none !important;
}

video.imagen-principal::-webkit-media-controls-panel {
    display: none !important;
}

.zoom-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

    .zoom-icon:hover {
        background: rgba(0, 0, 0, 0.9);
        transform: scale(1.1);
    }

/* Container miniaturas con scroll horizontal */
.galeria-miniaturas-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    width: 100%;
    max-width: 100%;
}

.galeria-miniaturas {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    min-width: 0;
}

.galeria-miniaturas::-webkit-scrollbar {
    display: none;
}

.galeria-arrow {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    z-index: 10;
}

.galeria-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.galeria-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.miniatura {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
}

    .miniatura:hover {
        border-color: #667eea;
        transform: scale(1.05);
    }

    .miniatura.active {
        border-color: #667eea;
        box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
    }

.miniatura img,
.miniatura-video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* Información del producto */
.producto-info-enhanced {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.producto-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.producto-meta-small {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0.5rem 0;
}

.producto-colecciones,
.producto-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.badge-coleccion {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

    .badge-coleccion:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
    }

.tag-badge {
    background: var(--bg);
    color: var(--text);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition);
}

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

.producto-caracteristicas ul {
    list-style: none;
    padding: 0;
}

.producto-caracteristicas li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

    .producto-caracteristicas li:last-child {
        border-bottom: none;
    }

.producto-acciones-secundarias {
    display: flex;
    gap: 1rem;
}

.btn-report {
    background: #f59e0b;
    color: white;
}

    .btn-report:hover {
        background: #d97706;
        color: white;
    }

/* === MODAL ZOOM === */
.modal-zoom {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.modal-zoom-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    z-index: 10000;
}

.modal-zoom-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* === MODAL REPORTE === */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9998;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--card);
    border-radius: var(--radius);
    padding: 2.5rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
}

    .modal-close:hover {
        color: var(--text);
    }

.form-reporte {
    margin-top: 1.5rem;
}

    .form-reporte select {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        font-family: inherit;
        font-size: 1rem;
    }

/* === PÁGINA DE BÚSQUEDA === */
.busqueda-header {
    text-align: center;
    padding: 2rem 0 3rem;
}

.busqueda-query {
    font-size: 1.1rem;
    margin: 1rem 0;
}

.busqueda-total {
    color: var(--text-light);
}

.busqueda-vacia {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.busqueda-sugerencias {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
    text-align: left;
}

    .busqueda-sugerencias h3 {
        margin-bottom: 1rem;
    }

    .busqueda-sugerencias ul {
        list-style-position: inside;
        color: var(--text-light);
    }

    .busqueda-sugerencias li {
        padding: 0.5rem 0;
    }

/* === PÁGINA DE COLECCIÓN === */
.coleccion-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    background: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
}

.coleccion-imagen {
    border-radius: var(--radius);
    overflow: hidden;
}

    .coleccion-imagen img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.coleccion-info h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.coleccion-descripcion {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.coleccion-total {
    font-weight: 600;
    color: var(--primary);
}

/* === PÁGINA DE REPORTE === */
.reporte-resultado {
    max-width: 700px;
    margin: 3rem auto;
}

.reporte-info-box {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2rem
}
/* ===============================================
   ESTILOS ADICIONALES PARA SISTEMA DE USUARIOS
   Añadir estos estilos al final de main.css
   =============================================== */

/* === NAVEGACIÓN USUARIO === */
.subscription-badge-nav {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.user-menu {
    display: flex;
    align-items: center;
}

.user-name {
    font-weight: 500;
    color: var(--text);
}

.btn-login {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

    .btn-login:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
    }

/* === PÁGINA DE LOGIN/REGISTRO === */
.auth-container {
    max-width: 1000px;
    margin: 3rem auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

.auth-box {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    background: #f8fafc;
}

.auth-tab {
    flex: 1;
    padding: 1.25rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

    .auth-tab:hover {
        color: var(--primary);
        background: var(--bg);
    }

    .auth-tab.active {
        color: var(--primary);
        background: white;
        border-bottom-color: var(--primary);
    }

.auth-form {
    padding: 2.5rem;
    background: white;
}

    .auth-form h2 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
        color: var(--text);
    }

.auth-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
}

.auth-benefits {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius);
    padding: 2.5rem;
    color: white;
    box-shadow: var(--shadow-lg);
}

    .auth-benefits h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        color: white;
    }

.benefits-list {
    list-style: none;
}

    .benefits-list li {
        padding: 0.75rem 0;
        font-size: 1.05rem;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        color: white;
    }

        .benefits-list li:last-child {
            border-bottom: none;
        }

/* === PÁGINA DE SUSCRIPCIÓN === */
font-size: 1rem;
}

.perfil-suscripcion {
    margin-bottom: 3rem;
}

.suscripcion-badge {
    background: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

    .suscripcion-badge.activa {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: white;
    }

    .suscripcion-badge.inactiva {
        border: 2px dashed var(--border);
    }

.badge-icon {
    font-size: 3rem;
}

.suscripcion-badge strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.suscripcion-badge p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.perfil-contenido {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.perfil-seccion {
    background: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

    .perfil-seccion h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid var(--border);
    }

.productos-descarga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.producto-descarga-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

    .producto-descarga-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
    }

.producto-descarga-imagen {
    width: 100%;
    height: 200px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .producto-descarga-imagen img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.producto-descarga-info {
    padding: 1.25rem;
}

    .producto-descarga-info h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

.btn-sm {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

.empty-state-small {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.pedidos-lista {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.pedido-item {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pedido-info {
    flex: 1;
}

.pedido-numero {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.badge-tipo-suscripcion {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pedido-fecha {
    color: var(--text-light);
    font-size: 0.9rem;
}

.pedido-detalles {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

.pedido-estado {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.pedido-estado-completado {
    background: #d1fae5;
    color: #065f46;
}

.pedido-estado-pendiente {
    background: #fef3c7;
    color: #92400e;
}

/* === CHECKOUT ACTUALIZADO === */
.checkout-pago {
    background: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
}

.pago-info {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius);
}

.pago-seguridad {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.9rem;
}

.resumen-productos-checkout {
    margin-bottom: 1.5rem;
}

.resumen-item-checkout {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.item-imagen {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
}

    .item-imagen img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.item-detalles {
    flex: 1;
}

    .item-detalles h4 {
        margin-bottom: 0.25rem;
    }

    .item-detalles p {
        color: var(--text-light);
        font-size: 0.9rem;
    }

.item-precio {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.checkout-total-box {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.total-linea {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.total-final {
    border-top: 2px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-size: 1.25rem;
}

.checkout-info-box {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

    .checkout-info-box h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

/* === PÁGINA DE ÉXITO === */
.success-icon-large {
    font-size: 6rem;
    margin-bottom: 1rem;
}

.order-info-box {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 2rem 0;
}

.order-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.order-date {
    color: var(--text-light);
}

.success-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.detail-item {
    text-align: center;
}

.detail-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.success-subscription-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 3rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-benefits {
        order: -1;
    }

    .subscription-actions {
        flex-direction: column;
    }

    .productos-descarga-grid {
        grid-template-columns: 1fr;
    }

    .pedido-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .pedido-detalles {
        flex-direction: column;
        gap: 0.5rem;
    }

    .success-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

        .comparison-table th,
        .comparison-table td {
            padding: 0.75rem 0.5rem;
        }
    /* =====================================================
   ESTILOS PARA SISTEMA DE LIKES
   ===================================================== */
    /* INSTRUCCIONES: Añadir este CSS al final de assets/css/main.css */

    /* Botón de Like */
    .like-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.5rem 0.8rem;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid #e2e8f0;
        border-radius: 20px;
        font-size: 0.9rem;
        color: #64748b;
        cursor: pointer;
        transition: all 0.3s ease;
        user-select: none;
        position: relative;
        overflow: hidden;
    }

        .like-btn:hover {
            background: white;
            border-color: #cbd5e1;
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .like-btn.liked {
            background: linear-gradient(135deg, #ff6b95 0%, #ff8aa8 100%);
            border-color: #ff6b95;
            color: white;
        }

            .like-btn.liked:hover {
                background: linear-gradient(135deg, #ff5580 0%, #ff7093 100%);
                transform: scale(1.05);
            }

        .like-btn.processing {
            opacity: 0.6;
            cursor: wait;
            pointer-events: none;
        }

    .like-icon {
        font-size: 1.1rem;
        transition: transform 0.3s ease;
    }

    .like-btn:hover .like-icon {
        transform: scale(1.2);
    }

    .like-btn.liked .like-icon {
        animation: heartBeat 0.5s ease;
    }

    .like-counter {
        font-weight: 600;
        min-width: 20px;
        text-align: center;
    }

        /* Animación del contador cuando cambia */
        .like-counter.like-pulse {
            animation: pulse 0.3s ease;
        }

    @keyframes pulse {
        0%, 100% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.3);
        }
    }

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

        25% {
            transform: scale(1.3);
        }

        50% {
            transform: scale(0.9);
        }

        75% {
            transform: scale(1.2);
        }
    }

    /* Botón de Like en Tarjetas de Producto */
    .product-card .like-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 10;
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    /* Estadísticas de Producto con Likes */
    .product-stats {
        display: flex;
        gap: 1rem;
        align-items: center;
        font-size: 0.85rem;
        color: #64748b;
        margin-top: 0.5rem;
    }

    .stat-item {
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }

    .stat-icon {
        font-size: 1rem;
    }

    /* Sistema de Notificaciones */
    .notification {
        position: fixed;
        top: 20px;
        right: 20px;
        padding: 1rem 1.5rem;
        border-radius: 8px;
        background: white;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 10000;
        transform: translateX(400px);
        opacity: 0;
        transition: all 0.3s ease;
        max-width: 350px;
        font-size: 0.95rem;
    }

        .notification.show {
            transform: translateX(0);
            opacity: 1;
        }

    .notification-success {
        border-left: 4px solid #10b981;
        color: #065f46;
    }

    .notification-error {
        border-left: 4px solid #ef4444;
        color: #991b1b;
    }

    .notification-info {
        border-left: 4px solid #3b82f6;
        color: #1e40af;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .like-btn {
            padding: 0.4rem 0.6rem;
            font-size: 0.85rem;
            gap: 0.3rem;
        }

        .product-card .like-btn {
            padding: 0.3rem 0.5rem;
            font-size: 0.8rem;
        }

        .notification {
            right: 10px;
            left: 10px;
            max-width: none;
        }
    }

    /* Botón Like en Detalle del Producto */
    .product-detail .like-btn {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

        .product-detail .like-btn .like-icon {
            font-size: 1.3rem;
        }

    /* Sección de Productos Favoritos en Perfil */
    .favorites-section {
        margin-top: 2rem;
    }

    .favorites-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
        margin-top: 1rem;
    }

    .favorites-empty {
        text-align: center;
        padding: 3rem 1rem;
        color: #94a3b8;
    }

    .favorites-empty-icon {
        font-size: 4rem;
        margin-bottom: 1rem;
        opacity: 0.5;
    }

    /* Badge de Total Likes en Admin */
    .likes-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        padding: 0.2rem 0.6rem;
        background: linear-gradient(135deg, #ff6b95 0%, #ff8aa8 100%);
        color: white;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: 600;
    }

        .likes-badge .icon {
            font-size: 0.9rem;
        }

    /* =====================================================
   ESTILOS DE PAGINACIÓN
   ===================================================== */

    .pagination {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin: 3rem auto;
        flex-wrap: wrap;
        padding: 1rem;
    }

    .pagination-numbers {
        display: flex;
        gap: 0.3rem;
        align-items: center;
    }

    .pagination-btn,
    .pagination-num {
        min-width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 1rem;
        border-radius: 12px;
        background: white;
        border: 2px solid #e2e8f0;
        color: #64748b;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        font-size: 0.95rem;
    }

        .pagination-btn:hover:not(.disabled),
        .pagination-num:hover:not(.active) {
            background: #667eea;
            border-color: #667eea;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

        .pagination-num.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-color: transparent;
            color: white;
            cursor: default;
            box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
        }

        .pagination-btn.disabled {
            opacity: 0.3;
            cursor: not-allowed;
            pointer-events: none;
        }

    .pagination-dots {
        padding: 0 0.5rem;
        color: #cbd5e1;
        font-weight: bold;
    }

    /* Info de paginación */
    .pagination-info {
        text-align: center;
        color: #64748b;
        font-size: 0.95rem;
        margin: 1.5rem auto;
        padding: 1rem 1.5rem;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        border-radius: 12px;
        border: 2px solid #e2e8f0;
        font-weight: 500;
        max-width: 600px;
    }

    /* Responsive Paginación */
    @media (max-width: 768px) {
        .pagination {
            gap: 0.25rem;
            padding: 0.5rem;
        }

        .pagination-btn,
        .pagination-num {
            min-width: 38px;
            height: 38px;
            padding: 0 0.7rem;
            font-size: 0.85rem;
        }

        .pagination-info {
            font-size: 0.85rem;
            padding: 0.8rem 1rem;
            margin: 1rem auto;
        }
    }

    /* =====================================================
   BOTÓN LIKE MEJORADO - INTEGRADO CON META
   ===================================================== */

    /* El botón like ahora va dentro de producto-meta-small */
    .like-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0;
        background: none;
        border: none;
        font-size: 0.85rem;
        color: #64748b;
        cursor: pointer;
        transition: all 0.2s ease;
        font-family: inherit;
        font-weight: 500;
        outline: none;
        box-shadow: none;
    }

        .like-btn:hover {
            color: #ef4444;
            transform: scale(1.1);
        }

        .like-btn:focus {
            outline: none;
            box-shadow: none;
        }

        .like-btn.liked {
            color: #ef4444;
        }

            .like-btn.liked:hover {
                transform: scale(1.15);
            }

    .like-icon {
        font-size: 1.1rem;
        line-height: 1;
        display: inline-block;
        animation: likebeat 0.3s ease-in-out;
    }

    .like-counter {
        font-weight: 600;
        min-width: 20px;
        text-align: center;
    }

    /* Animación del like */
    @keyframes likebeat {
        0%, 100% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.3);
        }
    }

    /* Actualización de producto-meta-small para incluir el botón like */
    .producto-meta-small {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin: 0.75rem 0;
        font-size: 0.85rem;
        color: #64748b;
        flex-wrap: wrap;
    }

        .producto-meta-small span {
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            padding: 0.3rem 0.6rem;
            background: #f8fafc;
            border-radius: 6px;
            font-weight: 500;
        }

    /* =====================================================
   RESPONSIVE MEJORAS
   ===================================================== */

    @media (max-width: 768px) {
        .like-btn {
            padding: 0.25rem 0.5rem;
            font-size: 0.8rem;
        }

        .producto-meta-small {
            gap: 0.5rem;
            font-size: 0.8rem;
        }

            .producto-meta-small span {
                padding: 0.25rem 0.5rem;
            }
    }

    .btn-descargar-gratis {
        width: 100%;
        padding: 18px 32px;
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: white !important;
        border: none;
        border-radius: 12px;
        font-size: 18px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        text-decoration: none;
        font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        line-height: 1.5;
    }

        .btn-descargar-gratis:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
            background: linear-gradient(135deg, #059669 0%, #047857 100%);
            color: white !important;
        }

        .btn-descargar-gratis:active {
            transform: translateY(0);
        }

        .btn-descargar-gratis span {
            display: flex;
            align-items: center;
            gap: 8px;
        }

    #form-descarga-gratis {
        margin-top: 24px;
    }

    .pago-info {
        background: #f8fafc;
        padding: 20px;
        border-radius: 8px;
        margin-bottom: 24px;
    }

        .pago-info p {
            margin: 8px 0;
        }

    .pago-seguridad {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #e2e8f0;
        text-align: center;
    }

        .pago-seguridad p {
            margin: 8px 0;
            color: #64748b;
            font-size: 14px;
        }


    /* =====================================================
   SUSCRIPCIÓN - LOGIN REQUIRED & EXPIRADA
   ===================================================== */

    .login-required-message {
        margin-top: 24px;
    }

        .login-required-message p {
            margin: 0;
            line-height: 1.6;
        }

        .login-required-message strong {
            display: block;
            margin-bottom: 8px;
            font-size: 16px;
        }

    .subscription-expired {
        background: #fff9e6;
        border: 2px solid #ffc107;
        border-radius: 12px;
        padding: 30px;
        text-align: center;
        margin-top: 30px;
    }

        .subscription-expired .warning-icon {
            font-size: 48px;
            margin-bottom: 16px;
        }

        .subscription-expired h2 {
            color: #f59e0b;
            margin-bottom: 12px;
        }

        .subscription-expired .renew-message {
            font-size: 16px;
            color: #92400e;
            margin: 20px 0;
            line-height: 1.6;
        }

        .subscription-expired .btn {
            margin-top: 20px;
        }

    /* =====================================================
   ADMIN - COLECCIONES
   ===================================================== */

    .admin-header {
        background: white;
        padding: 2rem;
        margin: 2rem;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .admin-header h1 {
            margin: 0;
            font-size: 1.75rem;
            color: #1e293b;
        }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
        margin: 2rem;
    }

    .stat-card {
        background: white;
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-value {
        font-size: 2rem;
        font-weight: 700;
        color: #1e293b;
        line-height: 1;
    }

    .stat-label {
        font-size: 0.875rem;
        color: #64748b;
        margin-top: 0.25rem;
    }

    .card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        margin: 2rem;
    }

    .card-header {
        padding: 1.5rem 2rem;
        border-bottom: 1px solid #e5e7eb;
    }

        .card-header h3 {
            margin: 0;
            font-size: 1.125rem;
            color: #1e293b;
        }

    .card-body {
        padding: 2rem;
    }

    .table-responsive {
        overflow-x: auto;
    }

    .admin-table {
        width: 100%;
        border-collapse: collapse;
    }

        .admin-table thead {
            background: #f8fafc;
        }

        .admin-table th {
            padding: 1rem;
            text-align: left;
            font-weight: 600;
            color: #475569;
            font-size: 0.875rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            border-bottom: 2px solid #e5e7eb;
        }

        .admin-table td {
            padding: 1rem;
            border-bottom: 1px solid #e5e7eb;
        }

        .admin-table tbody tr:hover {
            background: #f8fafc;
        }

    .btn-group {
        display: flex;
        gap: 0.5rem;
    }

    .btn-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 6px;
        background: #f1f5f9;
        color: #475569;
        text-decoration: none;
        transition: all 0.2s;
        border: none;
        cursor: pointer;
        font-size: 1rem;
    }

        .btn-icon:hover {
            background: #e2e8f0;
            transform: translateY(-2px);
        }

        .btn-icon.btn-danger {
            background: #fee2e2;
            color: #dc2626;
        }

            .btn-icon.btn-danger:hover {
                background: #fecaca;
            }

    .badge {
        display: inline-block;
        padding: 0.25rem 0.75rem;
        border-radius: 6px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .badge-success {
        background: #dcfce7;
        color: #166534;
    }

    .badge-secondary {
        background: #f1f5f9;
        color: #64748b;
    }

    .badge-info {
        background: #dbeafe;
        color: #1e40af;
    }

    .alert {
        padding: 1rem 1.5rem;
        border-radius: 8px;
        margin: 2rem;
    }

    .alert-success {
        background: #dcfce7;
        border: 1px solid #86efac;
        color: #166534;
    }

    .alert-error {
        background: #fee2e2;
        border: 1px solid #fca5a5;
        color: #991b1b;
    }

    .form-admin {
        margin: 2rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
            color: #1e293b;
        }

    .form-control {
        width: 100%;
        padding: 0.75rem 1rem;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        font-size: 1rem;
        font-family: inherit;
        transition: all 0.2s;
    }

        .form-control:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

    .form-hint {
        display: block;
        margin-top: 0.25rem;
        font-size: 0.875rem;
        color: #64748b;
    }

    .checkbox-label {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
    }

        .checkbox-label input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

    .form-actions {
        display: flex;
        gap: 1rem;
        padding: 2rem;
        background: #f8fafc;
        border-top: 1px solid #e5e7eb;
        margin-top: 2rem;
    }

    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }

    @media (max-width: 768px) {
        .admin-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 1rem;
        }

        .stats-grid {
            grid-template-columns: 1fr;
        }

        .form-grid {
            grid-template-columns: 1fr !important;
        }

        .btn-group {
            flex-wrap: wrap;
        }
    }

    /* =====================================================
   DETALLE PRODUCTO - CORRECCIONES
   ===================================================== */

    /* Container miniaturas con flechas */
    .galeria-miniaturas-container {
        position: relative;
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 12px;
    }

    .galeria-miniaturas {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex: 1;
    }

        .galeria-miniaturas::-webkit-scrollbar {
            display: none;
        }

    .galeria-arrow {
        background: rgba(0, 0, 0, 0.6);
        color: white;
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: all 0.2s;
    }

        .galeria-arrow:hover {
            background: rgba(0, 0, 0, 0.8);
            transform: scale(1.1);
        }

        .galeria-arrow:active {
            transform: scale(0.95);
        }

    /* Videos sin controles visibles */
    .imagen-principal[controls] {
        pointer-events: auto;
    }

    .imagen-principal::-webkit-media-controls {
        display: none !important;
    }

    .imagen-principal::-webkit-media-controls-enclosure {
        display: none !important;
    }

    /* Precio y botón en línea */
    .producto-precio-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin: 20px 0;
    }

    .form-agregar-inline {
        margin: 0;
    }

    .btn-add-cart {
        padding: 12px 24px;
        font-size: 0.95rem;
        white-space: nowrap;
    }

    /* Archivos descargables - Premium */
    .archivos-descarga-premium {
        background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
        border: 2px solid #0ea5e9;
        border-radius: 12px;
        padding: 20px;
        margin: 20px 0;
    }

    .archivos-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 8px;
    }

    .archivos-icon {
        font-size: 24px;
    }

    .archivos-header h3 {
        margin: 0;
        color: #0369a1;
        font-size: 1.1rem;
    }

    .archivos-subtitle {
        color: #0c4a6e;
        margin: 0 0 15px 0;
        font-size: 14px;
    }

    /* Archivos descargables - Bloqueado */
    .archivos-descarga-locked {
        background: #f8fafc;
        border: 1px solid #cbd5e1;
        border-radius: 12px;
        padding: 20px;
        margin: 20px 0;
    }

        .archivos-descarga-locked .archivos-header h3 {
            color: #475569;
        }

        .archivos-descarga-locked .archivos-subtitle {
            color: #64748b;
        }

    .lista-archivos {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .archivo-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        background: white;
        border-radius: 8px;
        border: 1px solid #e5e7eb;
        transition: all 0.2s;
    }

    .archivo-descargable {
        text-decoration: none;
        color: inherit;
        cursor: pointer;
    }

        .archivo-descargable:hover {
            border-color: #0ea5e9;
            background: #f0f9ff;
            transform: translateX(4px);
        }

    .archivo-bloqueado {
        opacity: 0.7;
        cursor: not-allowed;
    }

    .archivo-nombre {
        font-weight: 500;
        color: #1e293b;
    }

    .archivo-size {
        font-size: 13px;
        color: #64748b;
    }

    .archivos-empty {
        color: #64748b;
        font-style: italic;
        margin: 0;
    }

    /* Tags mejorado */
    .producto-tags {
        margin: 16px 0;
        padding: 16px 0;
        border-top: 1px solid #e5e7eb;
    }

    .tag-badge {
        display: inline-block;
        padding: 6px 12px;
        margin: 4px;
        background: #f1f5f9;
        color: #475569;
        border-radius: 6px;
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.2s;
    }

        .tag-badge:hover {
            background: #667eea;
            color: white;
            transform: translateY(-2px);
        }

    /* Responsive móvil - Reorganización */
    @media (max-width: 768px) and (orientation: portrait) {
        .producto-detalle-enhanced {
            display: flex;
            flex-direction: column;
        }

        .producto-galeria {
            order: 2;
            margin-top: 20px;
        }

        .producto-info-enhanced h1 {
            order: 1;
            margin-bottom: 16px;
        }

        .galeria-principal {
            min-height: 300px;
        }

        .imagen-principal {
            max-height: 400px;
            width: 100%;
            object-fit: contain;
        }

        .producto-precio-container {
            flex-direction: column;
            align-items: flex-start;
        }

        .btn-add-cart {
            width: 100%;
        }
    }

/* ============================================
   NEWSLETTER / MAILING SUBSCRIPTION
   ============================================ */
.newsletter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '📧';
    position: absolute;
    top: -30px;
    right: -30px;
    font-size: 180px;
    opacity: 0.1;
}

.newsletter-content {
    position: relative;
    z-index: 1;
}

.newsletter-header {
    text-align: center;
    margin-bottom: 2rem;
}

.newsletter-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.newsletter-header p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 0.5rem;
}

.newsletter-description {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.5;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form-group {
    margin-bottom: 1.5rem;
}

.newsletter-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.newsletter-email-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.newsletter-email-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-email-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.newsletter-options {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.newsletter-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    cursor: pointer;
}

.newsletter-checkbox:last-child {
    margin-bottom: 0;
}

.newsletter-checkbox input[type="checkbox"] {
    margin-right: 1rem;
    margin-top: 0.3rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.newsletter-checkbox-label {
    font-size: 1rem;
    line-height: 1.5;
    cursor: pointer;
}

.newsletter-captcha {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.newsletter-captcha-label {
    font-weight: 500;
    white-space: nowrap;
}

.newsletter-captcha-input {
    width: 80px;
    padding: 0.5rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1.1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 700;
}

.newsletter-captcha-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-submit-btn {
    width: 100%;
    padding: 1.2rem 2rem;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

.newsletter-submit-btn:active {
    transform: translateY(0);
}

.newsletter-privacy {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 1rem;
}

.newsletter-message {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-weight: 500;
    text-align: center;
}

.newsletter-message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid rgba(76, 175, 80, 0.5);
}

.newsletter-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 2px solid rgba(244, 67, 54, 0.5);
}

@media (max-width: 768px) {
    .newsletter-section {
        padding: 2rem 1.5rem;
        margin: 1.5rem 0;
    }
    
    .newsletter-header h2 {
        font-size: 1.6rem;
    }
    
    .newsletter-captcha {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .newsletter-captcha-input {
        width: 100%;
    }
}

/* =====================================================
   SUSCRIPCIÓN - EXPLICACIÓN PREMIUM
   ===================================================== */

.premium-explanation {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
}

.premium-explanation p {
    margin: 0;
    color: #1e40af;
    line-height: 1.6;
}

.premium-explanation p:first-child {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.premium-explanation strong {
    color: #1e40af;
}

@media (max-width: 768px) {
    .premium-explanation {
        padding: 16px;
        margin: 20px 0;
    }
}

/* =====================================================
   FOOTER MEJORADO
   ===================================================== */

.main-footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: #f1f5f9;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-column h4 {
    color: #f1f5f9;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-description {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(226, 232, 240, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0.3rem 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-tagline {
    font-style: italic;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-links a:hover {
        transform: none;
    }
}

/* =====================================================
   PÁGINAS LEGALES Y CONTACTO
   ===================================================== */

.legal-page,
.contacto-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
}

.legal-page h1,
.contacto-page h1 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.legal-updated {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.legal-content {
    line-height: 1.8;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    color: #334155;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.legal-section h3 {
    color: #475569;
    margin: 1.5rem 0 0.8rem;
    font-size: 1.2rem;
}

.legal-section p {
    margin-bottom: 1rem;
    color: #475569;
}

.legal-section ul,
.legal-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    color: #475569;
}

.legal-section a {
    color: #667eea;
    text-decoration: underline;
}

.legal-section a:hover {
    color: #5568d3;
}

.legal-footer {
    background: #f8fafc;
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 3rem;
}

.legal-footer p {
    margin: 0;
    color: #475569;
}

/* CONTACTO */
.contacto-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contacto-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contacto-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contacto-form .form-group {
    margin-bottom: 1.5rem;
}

.contacto-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #334155;
    font-weight: 600;
}

.contacto-form input,
.contacto-form select,
.contacto-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.contacto-form textarea {
    resize: vertical;
    font-family: inherit;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.info-card h3 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-card p {
    color: #64748b;
    margin: 0.3rem 0;
    font-size: 0.95rem;
}

.info-card small {
    color: #94a3b8;
    font-size: 0.85rem;
}

.info-card a {
    color: #667eea;
    text-decoration: none;
}

.info-card a:hover {
    text-decoration: underline;
}

.info-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: #667eea;
    font-weight: 600;
}

@media (max-width: 968px) {
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .legal-page,
    .contacto-page {
        padding: 1.5rem;
    }
}

/* === FAVORITOS EN PERFIL === */
.favoritos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.favorito-miniatura {
    position: relative;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
    border: 2px solid transparent;
}

.favorito-miniatura:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
    border-color: #667eea;
}

.favorito-miniatura img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.placeholder-favorito {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    font-size: 2rem;
}

.favorito-nombre {
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e293b;
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 45px;
}

.favorito-miniatura:hover .favorito-nombre {
    color: #667eea;
}

/* Responsive favoritos */
@media (max-width: 768px) {
    .favoritos-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .favorito-miniatura img,
    .placeholder-favorito {
        height: 100px;
    }
    
    .favorito-nombre {
        font-size: 0.8rem;
        padding: 8px;
        min-height: 40px;
    }
}

@media (min-width: 1200px) {
    .favoritos-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .favorito-miniatura img,
    .placeholder-favorito {
        height: 140px;
    }
}

    /* =====================================================
   COLECCIONES EN DETALLE PRODUCTO
   ===================================================== */

    .producto-colecciones {
        margin: 20px 0;
        padding: 16px 0;
        border-top: 1px solid #e5e7eb;
        border-bottom: 1px solid #e5e7eb;
    }

        .producto-colecciones strong {
            display: block;
            margin-bottom: 10px;
            color: #1e293b;
            font-size: 0.95rem;
        }

    .badge-coleccion {
        display: inline-block;
        padding: 8px 16px;
        margin: 4px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white !important;
        border-radius: 8px;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 600;
        transition: all 0.3s;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    }

        .badge-coleccion:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
            background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
            color: white !important;
        }
    /* =====================================================
   CORRECCIONES DETALLE PRODUCTO
   Añadir este archivo después de main.css en el header
   ===================================================== */

    /* Contenedor principal galería con ancho limitado */
    .producto-galeria {
        max-width: 100%;
        overflow: hidden;
    }

    /* Container miniaturas con flechas HORIZONTAL */
    .galeria-miniaturas-container {
        position: relative;
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 12px;
        width: 100%;
        max-width: 100%;
    }

    .galeria-miniaturas {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex: 1;
        min-width: 0;
    }

        .galeria-miniaturas::-webkit-scrollbar {
            display: none;
        }

    .galeria-arrow {
        background: rgba(0, 0, 0, 0.7);
        color: white;
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 24px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: all 0.2s;
        z-index: 10;
    }

        .galeria-arrow:hover {
            background: rgba(0, 0, 0, 0.9);
            transform: scale(1.1);
        }

        .galeria-arrow:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

    /* Miniaturas */
    .miniatura {
        position: relative;
        flex-shrink: 0;
        width: 100px;
        height: 100px;
        border-radius: 8px;
        overflow: hidden;
        cursor: pointer;
        border: 3px solid transparent;
        transition: all 0.2s;
    }

        .miniatura:hover {
            border-color: #667eea;
            transform: scale(1.05);
        }

        .miniatura.active {
            border-color: #667eea;
            box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
        }

        .miniatura img,
        .miniatura-video-preview {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .video-badge {
        position: absolute;
        bottom: 4px;
        right: 4px;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 12px;
    }

    /* Videos sin controles */
    video.imagen-principal {
        outline: none;
    }

        video.imagen-principal::-webkit-media-controls {
            display: none !important;
        }

        video.imagen-principal::-webkit-media-controls-enclosure {
            display: none !important;
        }

        video.imagen-principal::-webkit-media-controls-panel {
            display: none !important;
        }

    /* Precio y botón */
    .producto-precio-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin: 20px 0;
    }

    .form-agregar-inline {
        margin: 0;
    }

    .btn-add-cart {
        padding: 12px 24px;
        font-size: 0.95rem;
        white-space: nowrap;
    }

    /* Archivos Premium - CON BORDE VISIBLE */
    .archivos-descarga-premium {
        background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
        border: 2px solid #3b82f6;
        border-radius: 12px;
        padding: 24px;
        margin: 20px 0;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    }

    .archivos-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 10px;
    }

    .archivos-icon {
        font-size: 28px;
    }

    .archivos-header h3 {
        margin: 0;
        color: #1e40af;
        font-size: 1.2rem;
        font-weight: 700;
    }

    .archivos-subtitle {
        color: #1e40af;
        margin: 0 0 16px 0;
        font-size: 14px;
        opacity: 0.9;
    }

    /* Archivos Bloqueado - CON BORDE VISIBLE */
    .archivos-descarga-locked {
        background: #f8fafc;
        border: 2px solid #cbd5e1;
        border-radius: 12px;
        padding: 24px;
        margin: 20px 0;
    }

        .archivos-descarga-locked .archivos-header h3 {
            color: #64748b;
        }

        .archivos-descarga-locked .archivos-subtitle {
            color: #64748b;
        }

    .lista-archivos {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .archivo-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 18px;
        background: white;
        border-radius: 8px;
        border: 2px solid #e5e7eb;
        transition: all 0.2s;
    }

    .archivo-descargable {
        text-decoration: none;
        color: inherit;
    }

        .archivo-descargable:hover {
            border-color: #3b82f6;
            background: #eff6ff;
            transform: translateX(6px);
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
        }

    .archivo-bloqueado {
        opacity: 0.65;
        cursor: not-allowed;
    }

    .archivo-nombre {
        font-weight: 600;
        color: #1e293b;
        font-size: 0.95rem;
    }

    .archivo-size {
        font-size: 13px;
        color: #64748b;
        font-weight: 500;
    }

    .archivos-empty {
        color: #94a3b8;
        font-style: italic;
        text-align: center;
        padding: 20px;
    }

    /* Tags - HOVER CON COLOR VISIBLE */
    .producto-tags {
        margin: 16px 0;
        padding: 16px 0;
        border-top: 1px solid #e5e7eb;
    }

    .tag-badge {
        display: inline-block;
        padding: 6px 14px;
        margin: 4px;
        background: #e2e8f0;
        color: #475569;
        border-radius: 8px;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
        transition: all 0.3s;
        border: 2px solid transparent;
    }

        .tag-badge:hover {
            background: #667eea;
            color: white !important;
            transform: translateY(-3px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
            border-color: #667eea;
        }

    /* === COLECCIONES - IMÁGENES DINÁMICAS === */
    .coleccion-imagenes-dinamicas {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 4px;
    }

    .imagen-dinamica {
        width: 100%;
        height: 100%;
        object-fit: cover;
        animation: slideInDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
        opacity: 0.9;
        transition: opacity 0.3s;
    }

    .coleccion-card:hover .imagen-dinamica {
        opacity: 1;
    }

    @keyframes slideInDown {
        0% {
            transform: translateY(-100%);
            opacity: 0;
        }
        100% {
            transform: translateY(0);
            opacity: 0.9;
        }
    }

    /* Móvil vertical - Galería en columna única */
    @media (max-width: 768px) and (orientation: portrait) {
        .producto-detalle-enhanced {
            display: block;
        }

        /* Título primero */
        .producto-info-enhanced .producto-header-row {
            order: -1;
            margin-bottom: 1.5rem;
        }

        /* Luego galería en columna completa */
        .producto-galeria {
            width: 100%;
            margin-bottom: 1.5rem;
        }

        .galeria-principal {
            min-height: 280px;
            width: 100%;
        }

        .imagen-principal {
            max-height: 350px;
            width: 100%;
            object-fit: contain;
        }

        .galeria-miniaturas-container {
            width: 100%;
        }

        .producto-precio-container {
            flex-direction: column;
            align-items: stretch;
        }

        .btn-add-cart {
            width: 100%;
        }
    }
