/**
 * Estilos principales - Tienda Online de Monedas
 * Diseño profesional y moderno
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #dc2626;
    --primary-dark: #b91c1c;
    --primary-light: #ef4444;
    --accent-color: #dc2626;
    --secondary-color: #000000;
    --text-color: #1a1a1a;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --bg-dark: #000000;
    --border-color: #e5e7eb;
    --hover-color: #991b1b;
    --success-color: #16a34a;
    --warning-color: #eab308;
    --danger-color: #dc2626;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.75;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Mejoras para móviles */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    /* Mejoras de legibilidad */
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1;
    font-kerning: normal;
    /* Mejor contraste y legibilidad */
    letter-spacing: -0.01em;
}

/* Skip link para accesibilidad */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* Mejoras de accesibilidad táctil */
a, button, .moneda-card, .subasta-card {
    -webkit-tap-highlight-color: rgba(220, 38, 38, 0.1);
    min-height: 44px;
    min-width: 44px;
}

/* Imágenes con transición suave */
img {
    transition: opacity 0.3s ease;
    max-width: 100%;
    height: auto;
}

img.loaded {
    opacity: 1;
}

img:not(.loaded) {
    opacity: 0;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Media Query Base - 768px ya está definido más abajo */

/* Header */
.main-header {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

/* Header Top Bar */
.header-top-bar {
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.8125rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.header-top-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.top-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.8125rem;
    white-space: nowrap;
}

.top-link:hover {
    color: var(--accent-color);
}

.top-link svg {
    width: 14px;
    height: 14px;
    opacity: 0.8;
    flex-shrink: 0;
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.top-badge {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    white-space: nowrap;
}

/* Header Main */
.header-main {
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.header-main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex: 1;
    min-width: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: var(--transition);
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    color: white;
    flex-shrink: 0;
    transition: var(--transition);
}

.logo a:hover .logo-icon {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

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

.logo-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo a:hover .logo-name {
    color: var(--accent-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.625rem 1rem;
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    border-radius: var(--radius-sm);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
    background: rgba(220, 38, 38, 0.05);
}

.nav-link[aria-current="page"] {
    color: var(--accent-color);
    font-weight: 600;
}

.nav-link[aria-current="page"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
}

.header-search {
    position: relative;
}

.search-form {
    position: relative;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    transition: var(--transition-fast);
    min-width: 280px;
}

.search-wrapper:focus-within {
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.search-icon {
    color: var(--text-light);
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.search-wrapper:focus-within .search-icon {
    color: var(--accent-color);
}

.header-search input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 0.9rem;
    outline: none;
    padding: 0;
    width: 100%;
}

.header-search input::placeholder {
    color: var(--text-light);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-action-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem;
    color: var(--text-color);
    text-decoration: none;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
}

.header-action-btn:hover {
    background: var(--bg-light);
    color: var(--accent-color);
}

.header-action-btn svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

.action-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--accent-color);
    color: white;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0 5px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Account Menu */
.account-menu {
    position: relative;
}

.account-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.account-name {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    overflow: hidden;
}

.account-menu:hover .account-dropdown,
.account-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1rem;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-header strong {
    display: block;
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.dropdown-header span {
    display: block;
    color: var(--text-light);
    font-size: 0.8rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
}

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

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--accent-color);
    padding-left: 1.5rem;
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    flex-shrink: 0;
}

.dropdown-item-primary {
    background: var(--accent-color);
    color: white !important;
    font-weight: 600;
    margin: 0.5rem;
    border-radius: var(--radius-sm);
}

.dropdown-item-primary:hover {
    background: var(--primary-dark);
    color: white !important;
    padding-left: 1.25rem;
}

.dropdown-item-danger {
    color: var(--accent-color);
}

.dropdown-item-danger:hover {
    background: rgba(220, 38, 38, 0.1);
    color: var(--primary-dark);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* Responsive Header Actions */
@media (max-width: 768px) {
    .header-actions {
        gap: 0.75rem;
    }
    
    .account-name {
        display: none;
    }
    
    .account-btn {
        padding: 0.625rem;
        min-width: 44px;
    }
    
    .account-dropdown {
        right: 0;
        left: auto;
        min-width: 200px;
    }
    
    .cart-link {
        padding: 0.625rem;
    }
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 0;
}

/* Hero Section */
.hero-section {
    background: var(--bg-color);
    color: var(--secondary-color);
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 38, 38, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(0,0,0,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title,
.hero-section h1,
.hero-section h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-title::after,
.hero-section h1::after,
.hero-section h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-section p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.btn-primary:hover::before {
    left: 100%;
}

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

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--secondary-color);
    transition: var(--transition);
    z-index: -1;
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-secondary:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    line-height: 1.3;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-top: 1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-box {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(220, 38, 38, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-box h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.feature-box p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}

/* Ocultar línea roja en checkout */
.checkout-section .section-header h2::after,
.form-section .section-header h2::after {
    display: none;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1.5rem auto 0;
}

/* Modern Section Headers */
.section-header.modern-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0 2rem;
    position: relative;
}

.section-header.modern-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 2px;
}

.section-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.section-header.modern-header h2 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.section-header.modern-header h2::after {
    display: none;
}

.section-icon {
    font-size: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(220, 38, 38, 0.05));
    border-radius: 50%;
    border: 2px solid rgba(220, 38, 38, 0.2);
    transition: var(--transition);
}

.section-header.modern-header:hover .section-icon {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-dark));
    border-color: var(--accent-color);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

.section-header.modern-header p {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Section */
.featured-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
}

/* Auctions Section */
.auctions-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.auctions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* Subasta Card Improvements */
.subasta-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.subasta-card.subasta-activa {
    border-color: rgba(220, 38, 38, 0.3);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.15);
}

.subasta-card.subasta-activa:hover {
    border-color: var(--accent-color);
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.25);
    transform: translateY(-8px);
}

.subasta-card-image {
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.subasta-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.subasta-badge-active {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-dark));
    color: white;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.subasta-info {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.subasta-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.4;
}

.subasta-precio-actual {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), rgba(220, 38, 38, 0.02));
    border-radius: var(--radius-md);
    border: 1px solid rgba(220, 38, 38, 0.1);
}

.precio-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.precio-valor {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
}

.subasta-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.subasta-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.subasta-meta-item svg {
    flex-shrink: 0;
    color: var(--accent-color);
}

/* Categories Section */
.categories-section {
    padding: 5rem 0;
    background: white;
}

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

.categoria-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
    padding: 2rem;
}

.categoria-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

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

.categoria-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(220, 38, 38, 0.3);
}

.categoria-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    gap: 1.5rem;
}

.categoria-card-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(220, 38, 38, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(220, 38, 38, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.categoria-card:hover .categoria-card-icon {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-dark));
    border-color: var(--accent-color);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3);
}

.categoria-icon-large {
    font-size: 3.5rem;
    display: block;
    transition: transform 0.3s ease;
}

.categoria-card:hover .categoria-icon-large {
    transform: scale(1.1);
}

.categoria-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 1;
    width: 100%;
}

.categoria-card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.3;
}

.categoria-description {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
    flex: 1;
}

.categoria-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-dark));
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
    margin-top: auto;
}

.categoria-card:hover .categoria-badge {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* Grids */
.monedas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    padding: 0;
    width: 100%;
}

.featured-section .monedas-grid,
.categoria-section .monedas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 1.5rem 0 0 0;
    padding: 0;
}

.monedas-list-section .monedas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    padding: 0;
}

@media (max-width: 1200px) {
    .monedas-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
    }
    
    .monedas-list-section .monedas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .monedas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .monedas-list-section .monedas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Subastas Hero Section */
.subastas-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 50%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.subastas-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(220, 38, 38, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(220, 38, 38, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.subastas-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-icon {
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(220, 38, 38, 0.2);
    border-radius: 50%;
    color: var(--accent-color);
    animation: pulse 2s ease-in-out infinite;
}

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

.subastas-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    letter-spacing: -1px;
    background: linear-gradient(135deg, white 0%, rgba(255,255,255,0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.85);
    margin: 0 0 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Header */
.section-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 0.5rem 0;
}

.section-header h2 svg {
    color: var(--accent-color);
}

.section-header p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}

/* Subastas List Section */
.subastas-list-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.subastas-activas {
    margin-bottom: 5rem;
}

.subastas-finalizadas {
    margin-top: 4rem;
}

.subastas-grid,
.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 0;
}

@media (min-width: 1400px) {
    .subastas-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.moneda-card,
.subasta-card,
.categoria-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    text-align: left;
}

.subasta-card {
    background: white;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.subasta-card.subasta-activa {
    border-color: rgba(220, 38, 38, 0.2);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.15);
}

.subasta-card.subasta-activa:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.25);
    transform: translateY(-6px);
}

.subasta-card.subasta-finalizada {
    opacity: 0.85;
    border-color: var(--border-color);
}

.subasta-card.subasta-finalizada:hover {
    opacity: 1;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.categoria-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-light));
    transform: scaleX(0);
    transition: var(--transition);
}

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

.moneda-card::after,
.subasta-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0) 0%, rgba(220, 38, 38, 0.02) 100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.moneda-card:hover::after,
.subasta-card:hover::after {
    opacity: 1;
}

.moneda-card:hover,
.subasta-card:hover,
.categoria-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(220, 38, 38, 0.15);
}

.moneda-card::before,
.subasta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-light), var(--accent-color));
    background-size: 200% 100%;
    opacity: 0;
    transition: var(--transition);
    animation: gradient-shift 2s linear infinite;
}

.moneda-card:hover::before,
.subasta-card:hover::before {
    opacity: 1;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.moneda-card-image,
.subasta-card-image {
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.moneda-badge-destacado {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--secondary-color);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    animation: badge-shine 3s ease-in-out infinite;
}

.moneda-badge-destacado svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.moneda-badge-nuevo {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 3;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, var(--success-color) 0%, #28a745 100%);
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

@keyframes badge-shine {
    0%, 100% { 
        box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.6);
        transform: scale(1.05);
    }
}

.subasta-card-image {
    height: 280px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e9ecef 100%);
}

.moneda-card img,
.subasta-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    background: var(--bg-light);
    display: block;
}

.moneda-card:hover img,
.subasta-card:hover img {
    transform: scale(1.08);
}

.subasta-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.subasta-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: var(--transition);
}

.subasta-card.subasta-finalizada .subasta-overlay-dark {
    opacity: 1;
}

.subasta-countdown {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 2;
}

.subasta-countdown svg {
    width: 16px;
    height: 16px;
    color: var(--accent-color);
}

.no-image {
    width: 100%;
    height: 100%;
    min-height: 280px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.no-image svg {
    width: 64px;
    height: 64px;
    opacity: 0.4;
    color: var(--text-light);
}

.no-image span {
    font-weight: 500;
    color: var(--text-light);
}

.moneda-info,
.subasta-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    gap: 0.75rem;
}

.subasta-info {
    padding: 1.75rem;
}

.moneda-info h3,
.subasta-info h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    line-height: 1.4;
    min-height: 2.6rem;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.moneda-card a,
.subasta-card a,
.categoria-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.moneda-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

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

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

.badge-live {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(220, 38, 38, 0.6); }
}

.badge-finished {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.subasta-price {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin: 0.5rem 0;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.2;
}

.subasta-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.meta-item svg {
    width: 16px;
    height: 16px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.subasta-action {
    margin-top: auto;
    padding-top: 1rem;
}

.btn-pujar,
.btn-ver {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-pujar:hover,
.btn-ver:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-ver {
    background: linear-gradient(135deg, var(--text-color) 0%, #374151 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-ver:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

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

.empty-state h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 0 0 0.75rem 0;
}

.empty-state p {
    font-size: 1rem;
    margin: 0;
}

.subasta-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.badge-destacado {
    background: var(--warning-color);
    color: var(--secondary-color);
}

.badge-reservado {
    background: var(--danger-color);
    color: white;
}

.precio-wrapper {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.precio {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0;
    display: block;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.precio-original {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 400;
}

.moneda-meta {
    display: flex;
    gap: 0.75rem;
    margin: 0.75rem 0;
    font-size: 0.8125rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: var(--transition-fast);
}

.meta-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--accent-color);
    opacity: 0.8;
}

.meta-item:hover {
    background: rgba(220, 38, 38, 0.08);
    color: var(--secondary-color);
}

.meta-item:hover svg {
    opacity: 1;
    color: var(--accent-color);
}

.moneda-referencia {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8125rem;
    color: var(--text-light);
}

.ref-label {
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.ref-value {
    font-family: 'Courier New', monospace;
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    border-radius: 4px;
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination a.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Detail Pages */
.moneda-detail-section,
.subasta-detail-section {
    background: #ffffff;
}

.moneda-detail,
.subasta-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin: 2rem 0;
    background: white;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    position: relative;
}

.moneda-images {
    position: sticky;
    top: 100px;
}

.moneda-images .main-image {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    background: #ffffff;
    position: relative;
}

.moneda-images .main-image:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.moneda-images .main-image img {
    width: 100%;
    height: auto;
    display: block;
    background: #fafafa;
}

.image-badge-container {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

.image-badge-destacado,
.image-badge-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: rgba(26, 26, 26, 0.95);
    color: white;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.image-badge-destacado svg {
    width: 14px;
    height: 14px;
    fill: #ffd700;
    stroke: none;
}

.image-badge-stock {
    background: rgba(220, 38, 38, 0.95);
}

.moneda-images .gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.moneda-images .gallery-item {
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
}

.moneda-images .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #e5e5e5;
    background: #ffffff;
    opacity: 0.7;
}

.moneda-images .gallery-item:hover {
    opacity: 1;
}

.moneda-images .gallery-item.active {
    border-color: #1a1a1a;
    opacity: 1;
}

.moneda-images .gallery-item.active img {
    border-color: #1a1a1a;
}

.moneda-info-detail {
    padding: 0;
}

.moneda-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.moneda-ref-header {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 0.8125rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.moneda-ref-header .ref-label {
    color: #999;
}

.moneda-ref-header .ref-value {
    font-family: 'Courier New', monospace;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: 1px;
}

.moneda-info-detail h1 {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 300;
    color: #1a1a1a;
    margin: 0 0 1.5rem 0;
    line-height: 1.3;
    letter-spacing: -0.03em;
}

.moneda-badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
    border-radius: 6px;
    font-size: 0.8125rem;
    color: #92400e;
    font-weight: 600;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.moneda-badge-premium svg {
    width: 16px;
    height: 16px;
    fill: #f59e0b;
    stroke: none;
}

.precio-section {
    margin-bottom: 3rem;
}

.precio-wrapper {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.precio-main {
    margin-bottom: 1.5rem;
}

.precio-label-mobile {
    display: block;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.precio-container {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.precio-section .precio {
    font-size: 3rem;
    font-weight: 300;
    color: #ffffff;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -2px;
}

.precio-discount {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.precio-section .precio-original {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    font-weight: 400;
}

.discount-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #dc2626;
    color: white;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.precio-benefits {
    display: flex;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.precio-benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 500;
}

.precio-benefit svg {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.7);
    stroke-width: 2;
    flex-shrink: 0;
}

.moneda-specs {
    background: transparent;
    padding: 0;
    margin-bottom: 3rem;
    border: none;
}

.specs-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 2rem 0;
    text-transform: none;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.specs-title svg {
    width: 20px;
    height: 20px;
    color: #1a1a1a;
    stroke-width: 2;
}

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

.spec-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.spec-card:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.spec-card-highlight {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fecaca;
}

.spec-card-stock {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #bbf7d0;
}

.spec-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.spec-icon svg {
    width: 20px;
    height: 20px;
    color: #1a1a1a;
    stroke-width: 2;
}

.spec-content {
    flex: 1;
    min-width: 0;
}

.spec-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.spec-value {
    font-size: 1rem;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.4;
}

.stock-indicator {
    display: inline-block;
    color: #16a34a;
    font-weight: 600;
}

.stock-count {
    display: block;
    font-size: 0.875rem;
    color: #666;
    font-weight: 400;
    margin-top: 0.25rem;
}

.stock-unavailable {
    color: #666;
    font-weight: 500;
}

.buy-section {
    margin: 3rem 0;
    padding-top: 2.5rem;
    border-top: 1px solid #e5e5e5;
}

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

.btn-buy,
.btn-bid {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 1.5rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
    width: 100%;
    text-transform: none;
    letter-spacing: 0.3px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    overflow: hidden;
}

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

.btn-buy:hover::before {
    left: 100%;
}

.btn-buy svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
    position: relative;
    z-index: 1;
}

.btn-buy .btn-arrow {
    width: 18px;
    height: 18px;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.btn-buy:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-buy:hover,
.btn-bid:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    transform: translateY(-2px);
}

.btn-buy:active,
.btn-bid:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
}

.buy-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.buy-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
}

.buy-feature:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
    transform: translateX(4px);
}

.buy-feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.buy-feature-icon svg {
    width: 20px;
    height: 20px;
    color: #dc2626;
    stroke-width: 2;
}

.buy-feature-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.buy-feature strong {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.buy-feature span {
    font-size: 0.8125rem;
    color: #666;
    line-height: 1.5;
}

.availability-notice {
    padding: 2.5rem 2rem;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    text-align: center;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.availability-notice svg {
    width: 24px;
    height: 24px;
    color: #999;
    stroke-width: 1.5;
}

.availability-notice p {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    color: #1a1a1a;
}

.descripcion-section {
    margin: 4rem 0 0 0;
    padding: 3rem 0 0 0;
    background: transparent;
    border-top: 2px solid #f0f0f0;
}

.section-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 2rem 0;
    text-transform: none;
    letter-spacing: -0.01em;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title svg {
    width: 22px;
    height: 22px;
    color: #1a1a1a;
    stroke-width: 2;
}

.descripcion-content {
    color: #333;
    line-height: 1.9;
    font-size: 1rem;
    font-weight: 400;
    margin-top: 1.5rem;
    max-width: 100%;
}

.descripcion-content p {
    margin-bottom: 1.25rem;
}

.descripcion-content p:last-child {
    margin-bottom: 0;
}

.descripcion-content p {
    margin-bottom: 1.25rem;
}

.descripcion-content p:last-child {
    margin-bottom: 0;
}

.descripcion-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--secondary-color);
    font-weight: 600;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.descripcion-content {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1rem;
}

.descripcion-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.descripcion-content {
    line-height: 1.8;
    color: var(--text-color);
}

.related-section {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid #e5e5e5;
}

.related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.related-section h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.related-section h2 svg {
    width: 24px;
    height: 24px;
    color: #1a1a1a;
    stroke-width: 2;
}

.related-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
}

.related-view-all:hover {
    border-color: #1a1a1a;
    background: #f9f9f9;
}

.related-view-all svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.related-view-all:hover svg {
    transform: translateX(2px);
}

.related-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.related-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Mejoras en imágenes */
.main-image-wrapper {
    position: relative;
}

.main-image {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.main-image img {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
    display: block;
}

.main-image:hover img {
    transform: scale(1.02);
}

.image-zoom-hint {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.main-image:hover .image-zoom-hint {
    opacity: 1;
}

.image-zoom-hint svg {
    width: 16px;
    height: 16px;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    overflow: hidden;
}

.gallery-item.active {
    border-color: #1a1a1a;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Iconos en especificaciones */
.specs-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.specs-title svg {
    width: 20px;
    height: 20px;
    color: #1a1a1a;
    stroke-width: 2;
}

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

.spec-item dt svg {
    width: 16px;
    height: 16px;
    color: #666;
    stroke-width: 2;
    flex-shrink: 0;
}

.stock-badge {
    display: inline-block;
    background: #1a1a1a;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Mejoras en sección de título */
.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title svg {
    width: 20px;
    height: 20px;
    color: #1a1a1a;
    stroke-width: 2;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 100%);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color) 20%, var(--accent-color) 80%, transparent);
}

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

@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 2.5rem;
    }
}

@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 2.5rem;
    }
}

.footer-section h3,
.footer-section h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section h3 {
    font-size: 1.5rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

/* ============================================
   Breadcrumb - Diseño Profesional y Moderno
   ============================================ */

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-light);
}

.breadcrumb ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: center;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 400;
    padding: 0;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 0.875rem;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 2px;
}

.breadcrumb .separator {
    color: var(--text-light);
    margin: 0 0.5rem;
    font-size: 0.75rem;
    opacity: 0.5;
    display: inline-flex;
    align-items: center;
    user-select: none;
    font-weight: 300;
    padding: 0;
    line-height: 1;
}

.breadcrumb .separator::before {
    content: '/';
    display: block;
    line-height: 1;
}

.breadcrumb .current,
.breadcrumb [aria-current="page"] {
    color: var(--text-color);
    font-weight: 500;
    padding: 0;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 0.875rem;
}

/* Mejora visual para elementos no clickeables */
.breadcrumb > * {
    flex-shrink: 0;
}

/* Breadcrumb en contexto de página específica */
.moneda-detail-section .breadcrumb,
.categoria-section .breadcrumb,
.monedas-list-section .breadcrumb,
.subasta-detail-section .breadcrumb {
    margin-bottom: 1.5rem;
    padding-top: 0;
}

/* Categoria Section */
.categoria-section {
    background: #ffffff;
}

.categoria-section .page-header {
    padding: 1.5rem 0 1rem;
    margin-bottom: 1.5rem;
    background: transparent;
    border-bottom: none;
}

.categoria-section .page-header h1 {
    margin-bottom: 0.5rem;
}

.categoria-section .category-description {
    margin-top: 0.25rem;
}

.subcategorias {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
}

.subcategorias h2 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.subcategoria-card {
    display: block;
    padding: 1rem 1.25rem;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.subcategoria-card:hover {
    background: #f5f5f5;
    border-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.subcategoria-card h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.subcategoria-card p {
    font-size: 0.8125rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Badges */
.badge-active,
.badge-finalizada {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
}

.badge-active {
    background: #4caf50;
    color: white;
}

.badge-finalizada {
    background: #999;
    color: white;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9375rem;
    transition: var(--transition-fast);
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.8125rem;
    font-style: italic;
    opacity: 0.8;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row-2 {
    grid-template-columns: repeat(2, 1fr);
}

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

/* Auth Section */
.auth-section {
    padding: 0;
    min-height: 100vh;
    background: #f8f9fa;
    position: relative;
}

.auth-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    min-height: 100vh;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
}

/* Sidebar Informativo */
.auth-sidebar {
    background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 50%, #2d2d2d 100%);
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.auth-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(220, 38, 38, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(220, 38, 38, 0.15) 0%, transparent 60%),
        linear-gradient(180deg, transparent 0%, rgba(220, 38, 38, 0.05) 100%);
    pointer-events: none;
    animation: sidebarGlow 8s ease-in-out infinite;
}

@keyframes sidebarGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.auth-sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px
        );
    pointer-events: none;
    opacity: 0.3;
}

.auth-sidebar-content {
    padding: 2rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    overflow-y: auto;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.auth-logo::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 2px;
}

.logo-icon {
    font-size: 2.25rem;
    filter: drop-shadow(0 4px 8px rgba(220, 38, 38, 0.4));
    animation: logoFloat 3s ease-in-out infinite;
    transform-origin: center;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

.auth-logo h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: white;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.auth-info {
    margin-bottom: 2rem;
}

.auth-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: white;
    line-height: 1.3;
}

.auth-info p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.auth-features {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
}

.feature-item {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    padding: 1.125rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(220, 38, 38, 0.4);
    transform: translateX(6px);
    box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.2);
}

.feature-item:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

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

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.feature-item div {
    flex: 1;
}

.feature-item strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.feature-item p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
}

.auth-security {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.125rem;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-radius: 10px;
    border: 1px solid rgba(220, 38, 38, 0.4);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
    position: relative;
    overflow: hidden;
}

.security-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: securityShine 3s infinite;
}

@keyframes securityShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.security-icon {
    font-size: 1.1rem;
    filter: drop-shadow(0 2px 4px rgba(220, 38, 38, 0.3));
    position: relative;
    z-index: 1;
}

/* Main Content */
.auth-main {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2.5rem 2.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    overflow-y: auto;
    position: relative;
}

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

.auth-main::-webkit-scrollbar,
.auth-sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.auth-main::-webkit-scrollbar-track,
.auth-sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.auth-main::-webkit-scrollbar-thumb,
.auth-sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.auth-sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    position: relative;
    z-index: 1;
    width: 100%;
}

.auth-card {
    width: 100%;
    max-width: 520px;
    background: white;
    border-radius: 16px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 2.5rem;
    border: 1px solid rgba(229, 231, 235, 0.8);
    position: relative;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-dark));
    opacity: 0.8;
}

.auth-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

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

.auth-header {
    text-align: left;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.auth-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 2px;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.625rem 0;
    letter-spacing: -0.5px;
    position: relative;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
}

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

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form .form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
    display: block;
}

/* Input con icono */
.form-group-icon .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-group-icon .input-icon {
    position: absolute;
    left: 1rem;
    font-size: 1.1rem;
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(0.3);
}

.form-group-icon input {
    padding-left: 2.75rem !important;
}

.form-group-icon .input-wrapper:hover .input-icon {
    opacity: 0.7;
    transform: scale(1.1);
}

.form-group-icon .input-wrapper:focus-within .input-icon {
    opacity: 1;
    transform: scale(1.15);
    filter: grayscale(0) drop-shadow(0 2px 4px rgba(220, 38, 38, 0.2));
}

.auth-form .form-group input {
    padding: 0.875rem 1rem;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.9375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafafa;
    width: 100%;
    box-sizing: border-box;
    color: #1f2937;
}

.auth-form .form-group input:hover {
    border-color: #9ca3af;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.auth-form .form-group input:focus {
    border-color: var(--accent-color);
    background: white;
    box-shadow: 
        0 0 0 4px rgba(220, 38, 38, 0.1),
        0 4px 12px rgba(220, 38, 38, 0.15);
    outline: none;
    transform: translateY(-1px);
}

.auth-form .form-group input::placeholder {
    color: #9ca3af;
    opacity: 0.7;
}

.btn-auth {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    letter-spacing: 0.3px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

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

.btn-auth:hover::before {
    left: 100%;
}

.btn-auth .btn-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.btn-auth:hover .btn-icon {
    transform: translateX(4px);
}

.btn-auth:hover {
    box-shadow: 
        0 6px 20px rgba(220, 38, 38, 0.35),
        0 2px 8px rgba(220, 38, 38, 0.2);
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-color) 100%);
}

.btn-auth:active {
    transform: translateY(0) scale(0.98);
}

.auth-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    position: relative;
}

.auth-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.5;
}

.auth-footer p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.auth-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.auth-footer a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.5rem;
    right: 0.5rem;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.auth-footer a:hover {
    color: var(--primary-dark);
    background: rgba(220, 38, 38, 0.05);
}

.auth-footer a:hover::after {
    transform: scaleX(1);
}

.alert {
    padding: 1.125rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
    opacity: 0.3;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.alert-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee 100%);
    border: 1.5px solid #fecaca;
    color: #991b1b;
    box-shadow: 
        0 4px 12px rgba(153, 27, 27, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.alert-error ul {
    margin: 0;
    padding-left: 1.5rem;
}

.alert-error li {
    margin: 0.25rem 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Page Headers */
.page-header {
    padding: 2.5rem 2rem;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.category-description {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 800px;
    line-height: 1.7;
    margin-top: 0.5rem;
}

.categoria-section .results-count {
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.results-count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, #f8f9fa 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.results-count::before {
    content: '📊';
    font-size: 1.125rem;
    display: inline-block;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    font-size: 1.1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

/* Filters */
.filters {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.filters h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
}

.category-filters a {
    padding: 0.5rem 1.25rem;
    background: white;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
}

.category-filters a:hover,
.category-filters a.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Subasta Detail */
.subasta-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.stat {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    text-align: center;
}

.stat .label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.stat .value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.bid-section {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.bid-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.pujas-section {
    margin: 2rem 0;
}

.pujas-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.pujas-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.pujas-table thead {
    background: var(--accent-color);
    color: white;
}

.pujas-table th,
.pujas-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.pujas-table tbody tr:hover {
    background: var(--bg-light);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.mobile-menu-toggle:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.mobile-menu-toggle:hover #menu-icon::before,
.mobile-menu-toggle:hover #menu-icon::after {
    background: white;
}

#menu-icon {
    position: relative;
    width: 20px;
    height: 16px;
    display: block;
}

#menu-icon::before,
#menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition-fast);
    border-radius: 2px;
}

#menu-icon::before {
    top: 0;
}

#menu-icon::after {
    bottom: 0;
}

.mobile-menu-toggle.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.mobile-menu-toggle.active #menu-icon::before {
    top: 7px;
    transform: rotate(45deg);
    background: white;
}

.mobile-menu-toggle.active #menu-icon::after {
    bottom: 7px;
    transform: rotate(-45deg);
    background: white;
}

/* Responsive */
/* ============================================
   Navegación Jerárquica de Categorías
   ============================================ */

.monedas-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    margin-top: 2rem;
    align-items: start;
}

.categorias-sidebar {
    background: white;
    border-radius: var(--radius-md);
    padding: 0;
    height: fit-content;
    position: sticky;
    top: 120px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    min-width: 320px;
    max-width: 320px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--secondary-color);
    letter-spacing: -0.2px;
}

.sidebar-toggle-mobile {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.sidebar-toggle-mobile:hover {
    background: var(--bg-light);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.categoria-search-wrapper {
    position: relative;
    padding: 0.875rem 1.25rem;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.categoria-search {
    width: 100%;
    padding: 0.625rem 2.25rem 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    transition: var(--transition-fast);
    background: white;
    font-family: inherit;
    color: var(--text-color);
}

.categoria-search::placeholder {
    color: var(--text-light);
    opacity: 0.6;
}

.categoria-search:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
    background: white;
}

.categoria-search-wrapper .search-icon {
    position: absolute;
    right: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--text-light);
    pointer-events: none;
    opacity: 0.5;
}

.categorias-tree {
    display: flex;
    flex-direction: column;
    gap: 0.0625rem;
    padding: 0.5rem;
    max-height: calc(100vh - 240px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

.categorias-tree::-webkit-scrollbar {
    width: 6px;
}

.categorias-tree::-webkit-scrollbar-track {
    background: transparent;
}

.categorias-tree::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

.categorias-tree::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.categoria-group,
.categoria-subgroup {
    display: flex;
    flex-direction: column;
}

.categoria-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    text-decoration: none;
    color: var(--text-color);
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    position: relative;
    font-size: 0.875rem;
    overflow: hidden;
    white-space: nowrap;
    min-height: 36px;
    box-sizing: border-box;
    line-height: 1.4;
}

.categoria-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.15s ease;
}

.categoria-item:hover {
    background: rgba(220, 38, 38, 0.05);
    color: var(--accent-color);
}

.categoria-item:hover::before {
    transform: scaleY(1);
}

.categoria-item.active {
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(220, 38, 38, 0.2);
}

.categoria-item.active::before {
    transform: scaleY(1);
    width: 3px;
    background: rgba(255, 255, 255, 0.4);
}

.categoria-item.active:hover {
    background: var(--primary-dark);
}

.categoria-item.principal {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 0.875rem;
}

.categoria-item.secundaria {
    padding-left: 1.75rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.categoria-item.terciaria {
    padding-left: 3rem;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 400;
}

.categoria-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    transition: transform 0.15s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.categoria-item:hover .categoria-icon {
    opacity: 1;
}

.categoria-item.active .categoria-icon {
    opacity: 1;
    filter: brightness(1.1);
}

.categoria-nombre {
    flex: 1;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.categoria-toggle {
    font-size: 0.6rem;
    transition: transform 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    background: transparent;
    color: var(--text-light);
    opacity: 0.6;
    margin-left: auto;
}

.categoria-item.active .categoria-toggle {
    color: white;
    opacity: 0.9;
}

.categoria-toggle:hover {
    opacity: 1;
    background: rgba(220, 38, 38, 0.1);
}

.categoria-item.active .categoria-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.categoria-badge {
    background: rgba(220, 38, 38, 0.1);
    color: var(--accent-color);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    min-width: 22px;
    text-align: center;
    flex-shrink: 0;
    transition: var(--transition-fast);
    line-height: 1.2;
    white-space: nowrap;
}

.categoria-item.active .categoria-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.categoria-item:hover .categoria-badge {
    background: rgba(220, 38, 38, 0.15);
}

.categoria-hijas,
.categoria-nietas {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.2s ease;
    margin-left: 0.875rem;
    border-left: 1px solid var(--border-color);
    padding-left: 0.625rem;
    opacity: 0;
}

.categoria-hijas.expanded,
.categoria-nietas.expanded {
    max-height: 3000px;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    opacity: 1;
}

.monedas-content {
    min-width: 0;
}

/* Estilos adicionales para breadcrumb en diferentes contextos */
.breadcrumb li[aria-hidden="true"] {
    display: none;
}

/* Breadcrumb responsive */
@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.8rem;
        margin-bottom: 1.25rem;
    }
    
    .breadcrumb a,
    .breadcrumb .current {
        font-size: 0.8rem;
    }
    
    .breadcrumb .separator {
        margin: 0 0.375rem;
        font-size: 0.7rem;
    }
    
    /* Truncar elementos intermedios en móvil si hay muchos */
    .breadcrumb a:not(:first-child):not(:last-of-type) {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .breadcrumb .current {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Vista de Categorías Principales */
.categorias-principales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.categoria-principal-card {
    background: linear-gradient(135deg, white 0%, var(--bg-light) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.categoria-principal-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(220, 38, 38, 0.3);
}

    .categoria-principal-card a {
        display: block;
        text-decoration: none;
        color: inherit;
        padding: 2rem;
    }
    
    @media (max-width: 768px) {
        .categoria-principal-card a {
            padding: 1.5rem;
        }
        
        .categoria-icon-wrapper {
            width: 56px;
            height: 56px;
        }
        
        .categoria-icon-large {
            font-size: 2rem;
        }
        
        .categoria-card-header {
            gap: 1rem;
            margin-bottom: 1rem;
        }
        
        .categoria-principal-card .categoria-description {
            font-size: 0.875rem;
            margin-bottom: 1.25rem;
        }
        
        .categoria-subcategorias {
            margin-top: 1.25rem;
            padding-top: 1.25rem;
        }
    }

.categoria-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.categoria-icon-wrapper {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(220, 38, 38, 0.05));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.categoria-principal-card:hover .categoria-icon-wrapper {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-dark));
    transform: scale(1.1) rotate(5deg);
}

.categoria-icon-large {
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

.categoria-principal-card:hover .categoria-icon-large {
    transform: scale(1.1);
}

.categoria-header-content {
    flex: 1;
    min-width: 0;
}

.categoria-card-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.categoria-total-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    margin-top: 0.25rem;
}

.categoria-principal-card .categoria-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.categoria-subcategorias strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.categoria-subcategorias ul {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0 0;
}

.categoria-subcategorias li {
    padding: 0.625rem 0;
    font-size: 0.9rem;
    color: var(--text-color);
    border-bottom: 1px solid var(--bg-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.categoria-subcategorias li:hover {
    color: var(--accent-color);
    padding-left: 0.5rem;
}

.categoria-subcategorias li:last-child {
    border-bottom: none;
}

.subcat-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.subcat-count {
    margin-left: auto;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
}

.categoria-subcategorias li.more {
    color: var(--accent-color);
    font-weight: 600;
    font-style: italic;
    justify-content: center;
    padding: 0.75rem 0;
}

.categoria-link {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--accent-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-fast);
}

.categoria-link .arrow {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.categoria-principal-card:hover .categoria-link {
    color: var(--primary-dark);
}

.categoria-principal-card:hover .categoria-link .arrow {
    transform: translateX(5px);
}

.page-description {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    line-height: 1.6;
}

.results-count {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }
    
    /* Header Tablet */
    .header-top-bar {
        font-size: 0.75rem;
        padding: 0.45rem 0;
    }
    
    .header-top-left {
        gap: 1rem;
    }
    
    .header-top-right {
        gap: 0.75rem;
    }
    
    .top-link {
        font-size: 0.75rem;
    }
    
    .top-badge {
        font-size: 0.7rem;
    }
    
    .header-main-content {
        gap: 1.5rem;
        padding: 0.875rem 0;
    }
    
    .header-left {
        gap: 2rem;
    }
    
    .logo-name {
        font-size: 1.375rem;
    }
    
    .logo-tagline {
        font-size: 0.68rem;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .main-nav ul {
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.875rem;
    }
    
    .header-search {
        max-width: 260px;
    }
    
    .search-wrapper {
        min-width: 240px;
        padding: 0.45rem 0.875rem;
    }
    
    .header-actions {
        gap: 0.625rem;
    }
    
    .header-action-btn {
        width: 42px;
        height: 42px;
    }
    
    /* Footer Tablet */
    .main-footer {
        padding: 3.5rem 0 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
        text-align: center;
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 1rem;
    }
    
    .footer-section h3 {
        font-size: 1.375rem;
    }
    
    .footer-section h4 {
        font-size: 1.05rem;
    }
    
    /* Layouts */
    .monedas-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .auth-layout {
        grid-template-columns: 1fr;
    }
    
    .auth-sidebar {
        display: none;
    }
    
    .auth-main {
        padding: 1.5rem 1.5rem;
        align-items: flex-start;
    }
    
    .auth-card {
        max-width: 100%;
        padding: 1.75rem 1.5rem;
        border-radius: 12px;
        margin-top: 0;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .form-row-2 {
        grid-template-columns: 1fr;
    }
    
    .form-group-icon .input-icon {
        left: 0.875rem;
        font-size: 1rem;
    }
    
    .form-group-icon input {
        padding-left: 2.75rem !important;
    }
    
    .categorias-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        min-width: 100%;
    }
    
    .categorias-sidebar.mobile-open {
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .sidebar-toggle-mobile {
        display: flex;
    }
    
    .categorias-principales-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .categoria-item {
        padding: 0.625rem 0.75rem;
        font-size: 0.85rem;
        min-height: 34px;
    }
    
    .categoria-item.principal {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }
    
    .moneda-detail,
    .subasta-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .moneda-images {
        position: static;
    }
    
    /* Grids Tablet - Ya definido arriba en @media (max-width: 1200px) */
    
    .subastas-grid,
    .categorias-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.75rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Mejoras generales móvil */
    body {
        font-size: 15px;
        line-height: 1.6;
    }
    
    h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    /* Categorías Mobile */
    .categorias-principales-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 1.5rem;
    }
    
    .categoria-principal-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .categoria-card-header {
        margin-bottom: 1rem;
    }
    
    .categoria-card-header h2 {
        font-size: 1.25rem;
        line-height: 1.3;
    }
    
    .categoria-icon-large {
        font-size: 2rem;
    }
    
    .categoria-total-badge {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
    
    .categoria-subcategorias {
        font-size: 0.875rem;
    }
    
    .categoria-link {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
        font-size: 0.875rem;
    }
    
    .categoria-item.secundaria {
        padding-left: 1.5rem;
    }
    
    .categoria-item.terciaria {
        padding-left: 2.5rem;
    }
    
    .sidebar-header {
        padding: 0.875rem 1rem;
    }
    
    .sidebar-header h2 {
        font-size: 1rem;
    }
    
    .categoria-search-wrapper {
        padding: 0.75rem 1rem;
    }
    
    .categoria-search {
        padding: 0.5rem 2rem 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .categoria-search-wrapper .search-icon {
        right: 1.5rem;
        font-size: 0.85rem;
    }
    
    .categorias-tree {
        padding: 0.5rem 0.75rem 0.75rem;
        max-height: calc(100vh - 250px);
    }
    
    .categoria-hijas,
    .categoria-nietas {
        margin-left: 0.75rem;
        padding-left: 0.5rem;
    }
    
    /* Layouts Mobile */
    .monedas-layout {
        gap: 1.25rem;
        margin-top: 1.5rem;
    }
    
    /* Cards Mobile */
    .moneda-card,
    .subasta-card {
        border-radius: 12px;
    }
    
    .moneda-card-image,
    .subasta-card-image {
        height: 240px;
    }
    
    .moneda-info,
    .subasta-info {
        padding: 1.25rem;
        gap: 0.625rem;
    }
    
    .moneda-info h3,
    .subasta-info h3 {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
    
    .moneda-info p,
    .subasta-info p {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .moneda-meta {
        gap: 0.5rem;
        margin: 0.5rem 0;
    }
    
    .meta-item {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .meta-item svg {
        width: 12px;
        height: 12px;
    }
    
    .precio-wrapper {
        padding-top: 0.75rem;
        margin-top: 0.5rem;
    }
    
    .precio {
        font-size: 1.5rem;
    }
    
    .moneda-badge-destacado,
    .moneda-badge-nuevo {
        top: 0.5rem;
        padding: 0.375rem 0.625rem;
        font-size: 0.6875rem;
    }
    
    .moneda-badge-destacado {
        right: 0.5rem;
    }
    
    .moneda-badge-nuevo {
        left: 0.5rem;
    }
    
    .moneda-referencia {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        font-size: 0.75rem;
    }
    
    /* Precios Mobile */
    .precio {
        font-size: 1.5rem;
    }
    
    /* Botones Mobile */
    .btn-primary,
    .btn-secondary,
    .btn-buy,
    .btn-bid {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
        min-height: 48px;
        width: 100%;
        justify-content: center;
    }
    
    /* Page Headers Mobile */
    .page-header {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }
    
    .categoria-section .page-header {
        padding: 1rem 0 0.75rem;
        margin-bottom: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .category-description {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
    
    .subcategorias {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }
    
    .subcategorias h2 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    .subcategorias-grid {
        gap: 0.875rem;
    }
    
    .subcategoria-card {
        padding: 0.875rem 1rem;
    }
    
    .categoria-section .results-count {
        margin-bottom: 1rem;
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .categoria-section .monedas-grid {
        margin: 1rem 0 0 0;
    }
}

@media (max-width: 768px) {
    /* Header Mobile */
    .header-top-bar {
        padding: 0.5rem 0;
        font-size: 0.7rem;
        display: none; /* Ocultar barra superior en móvil para ahorrar espacio */
    }
    
    .header-top-content {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .header-top-left {
        flex-direction: column;
        gap: 0.375rem;
        width: 100%;
    }
    
    .header-top-right {
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }
    
    .top-link {
        font-size: 0.7rem;
        padding: 0.25rem 0;
    }
    
    .top-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
    
    .header-main-content {
        flex-wrap: nowrap;
        gap: 0.75rem;
        padding: 0.875rem 0;
        align-items: center;
    }
    
    .header-left {
        flex: 1;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        min-width: 0;
    }
    
    .logo {
        flex-shrink: 0;
    }
    
    .logo a {
        gap: 0.625rem;
    }
    
    .logo-name {
        font-size: 1.125rem;
    }
    
    .logo-tagline {
        display: none; /* Ocultar tagline en móvil */
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .logo-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        opacity: 0;
        order: 0;
        background: white;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
        z-index: 999;
        border-top: 1px solid var(--border-color);
    }
    
    .main-nav.active {
        max-height: 500px;
        overflow-y: auto;
        opacity: 1;
        -webkit-overflow-scrolling: touch;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-nav li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 1rem 1.5rem;
        display: block;
        width: 100%;
        font-size: 0.9375rem;
        font-weight: 500;
    }
    
    .nav-link:hover,
    .nav-link[aria-current="page"] {
        background: var(--bg-light);
        color: var(--accent-color);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .header-right {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
    }
    
    .header-search {
        display: none; /* Ocultar búsqueda en móvil para ahorrar espacio */
    }
    
    .search-wrapper {
        min-width: auto;
        width: 100%;
    }
    
    .header-actions {
        gap: 0.375rem;
        display: flex;
        align-items: center;
    }
    
    .header-action-btn {
        width: 40px;
        height: 40px;
        padding: 0;
        min-width: 40px;
        min-height: 40px;
    }
    
    .header-action-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .account-name {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--bg-light);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        cursor: pointer;
        transition: var(--transition-fast);
        flex-shrink: 0;
    }
    
    .mobile-menu-toggle:hover,
    .mobile-menu-toggle.active {
        background: var(--accent-color);
        border-color: var(--accent-color);
    }
    
    .mobile-menu-toggle:hover #menu-icon::before,
    .mobile-menu-toggle:hover #menu-icon::after,
    .mobile-menu-toggle.active #menu-icon::before,
    .mobile-menu-toggle.active #menu-icon::after {
        background: white;
    }
    
    #menu-icon {
        position: relative;
        width: 20px;
        height: 16px;
        display: block;
    }
    
    #menu-icon::before,
    #menu-icon::after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--text-color);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 2px;
    }
    
    #menu-icon::before {
        top: 0;
    }
    
    #menu-icon::after {
        bottom: 0;
    }
    
    .mobile-menu-toggle.active #menu-icon::before {
        top: 7px;
        transform: rotate(45deg);
    }
    
    .mobile-menu-toggle.active #menu-icon::after {
        bottom: 7px;
        transform: rotate(-45deg);
    }
    
    .account-dropdown {
        right: 0;
        left: auto;
        min-width: 220px;
        max-width: calc(100vw - 2rem);
        margin-top: 0.5rem;
    }
    
    .action-badge {
        top: 2px;
        right: 2px;
        font-size: 0.65rem;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
    }
    
    /* Hero Mobile */
    .hero-section {
        padding: 2.5rem 0 1.75rem;
    }
    
    .hero-section h2 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }
    
    .hero-section p {
        font-size: 0.9375rem;
        line-height: 1.6;
        padding: 0 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 1rem;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.9375rem;
        min-height: 48px;
    }
    
    /* Subastas Mobile */
    .subastas-hero {
        padding: 2.5rem 0;
    }
    
    .subastas-hero h1 {
        font-size: 2rem;
        line-height: 1.3;
        padding: 0 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
        padding: 0 1rem;
        line-height: 1.6;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.25rem;
        margin-top: 1.75rem;
        padding: 0 1rem;
    }
    
    .stat-number {
        font-size: 1.875rem;
    }
    
    .stat-label {
        font-size: 0.8125rem;
    }
    
    .section-header {
        margin-bottom: 1.75rem;
        padding-bottom: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .subastas-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .subasta-card-image {
        height: 220px;
    }
    
    .subasta-info {
        padding: 1.25rem;
    }
    
    .subasta-countdown {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
    }
    
    .price-value {
        font-size: 1.25rem;
    }
    
    .subastas-list-section {
        padding: 2rem 0;
    }
    
    .subastas-activas {
        margin-bottom: 2.5rem;
    }
    
    /* Layouts Mobile */
    .monedas-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 1.5rem;
    }
    
    .categorias-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 1.5rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        width: 100%;
        border-radius: 10px;
    }
    
    .categorias-sidebar.mobile-open {
        max-height: 70vh;
        overflow-y: auto;
        margin-bottom: 1.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .sidebar-toggle-mobile {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        padding: 0.875rem 1rem;
        background: var(--bg-light);
        border: 1px solid var(--border-color);
        border-radius: 10px;
        margin-bottom: 1rem;
        font-weight: 600;
        color: var(--secondary-color);
    }
    
    .sidebar-toggle-mobile:hover {
        background: var(--accent-color);
        color: white;
        border-color: var(--accent-color);
    }
    
    /* Features Mobile */
    .features-section {
        padding: 2rem 0 !important;
    }
    
    .features-section > .container > div {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .feature-box {
        padding: 1.5rem !important;
    }
    
    /* Grids Mobile - Ya definido arriba en @media (max-width: 992px) */
    .monedas-grid {
        gap: 1.25rem;
        margin: 1.5rem 0;
    }
    
    .subastas-grid,
    .categorias-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin: 1.5rem 0;
    }
    
    .moneda-card,
    .subasta-card {
        margin: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    /* Section Headers Mobile */
    .section-header {
        padding-top: 1.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    /* Detail Pages Mobile */
    .moneda-detail-section,
    .subasta-detail-section {
        padding: 2rem 0;
    }
    
    .moneda-detail,
    .subasta-detail {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0;
    }
    
    .moneda-images {
        position: static;
    }
    
    .moneda-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .moneda-info-detail h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .precio-section {
        padding: 1.5rem;
    }
    
    .precio-main {
        flex-wrap: wrap;
    }
    
    .precio-section .precio {
        font-size: 2rem;
    }
    
    .spec-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem 0;
    }
    
    .spec-item dt {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }
    
    .spec-item dd {
        font-size: 0.875rem;
    }
    
    .buy-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .buy-feature {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
    
    .moneda-specs {
        padding: 0;
    }
    
    .moneda-specs p {
        font-size: 0.875rem;
        padding: 0.5rem 0;
        line-height: 1.6;
    }
    
    .moneda-images {
        margin: 1.25rem 0;
    }
    
    .moneda-images .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .moneda-images .gallery img {
        height: 80px;
        border-radius: 8px;
    }
    
    .btn-buy,
    .btn-bid {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Subasta Stats Mobile */
    .subasta-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 1.25rem;
    }
    
    .stat {
        padding: 1rem 0.75rem;
    }
    
    .stat .label {
        font-size: 0.8125rem;
    }
    
    .stat .value {
        font-size: 1.375rem;
    }
    
    /* Forms Mobile */
    .bid-section,
    .descripcion-section {
        padding: 1.25rem;
        margin: 1.25rem 0;
    }
    
    .bid-section h3,
    .descripcion-section h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group label {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Evita zoom en iOS */
        padding: 0.875rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Pagination Mobile */
    .pagination {
        gap: 0.375rem;
        flex-wrap: wrap;
        justify-content: center;
        margin: 2rem 0;
    }
    
    .pagination a,
    .pagination span {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
        min-width: 44px;
        min-height: 44px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Filters Mobile */
    .filters {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .filters h3 {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }
    
    .category-filters {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .category-filters a {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        min-height: 40px;
    }
    
    /* Results Count Mobile */
    .results-count {
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* No Results Mobile */
    .no-results {
        padding: 3rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Breadcrumb Mobile */
    .breadcrumb {
        font-size: 0.8rem;
        padding: 0;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Footer Mobile */
    .main-footer {
        padding: 2.5rem 0 1.5rem;
        margin-top: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .footer-section {
        text-align: left;
        padding: 0;
    }
    
    .footer-section:first-child {
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 2rem;
        margin-bottom: 1rem;
    }
    
    .footer-section h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .footer-section p {
        font-size: 0.875rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .footer-section ul {
        margin: 0;
        padding: 0;
    }
    
    .footer-section ul li {
        margin-bottom: 0.625rem;
    }
    
    .footer-section a {
        font-size: 0.875rem;
        display: inline-block;
        padding: 0.25rem 0;
        transition: all 0.2s ease;
    }
    
    .footer-section a:hover {
        padding-left: 0.5rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
        line-height: 1.6;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-bottom a {
        font-size: 0.8rem;
        display: inline-block;
    }
    
    /* Tables Mobile */
    .pujas-table {
        font-size: 0.875rem;
    }
    
    .pujas-table th,
    .pujas-table td {
        padding: 0.75rem 0.5rem;
    }
    
    /* Page Header Mobile */
    .page-header {
        padding: 2rem 0 1.5rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .category-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Mejoras generales móvil pequeño */
    body {
        font-size: 14px;
    }
    
    /* Header Mobile Pequeño */
    .header-main-content {
        padding: 0.75rem 0;
        gap: 0.5rem;
    }
    
    .header-left {
        gap: 0.5rem;
        min-width: 0;
    }
    
    .logo {
        flex-shrink: 0;
    }
    
    .logo a {
        gap: 0.5rem;
    }
    
    .logo-name {
        font-size: 1rem;
        line-height: 1.2;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }
    
    .logo-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .header-right {
        gap: 0.375rem;
        flex-shrink: 0;
    }
    
    .header-action-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
    
    .header-action-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }
    
    .action-badge {
        top: 1px;
        right: 1px;
        font-size: 0.6rem;
        min-width: 14px;
        height: 14px;
        padding: 0 3px;
    }
    
    .main-nav {
        top: 55px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }
    
    .nav-link {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .account-dropdown {
        min-width: 200px;
        max-width: calc(100vw - 1rem);
        right: 0;
        left: auto;
        margin-top: 0.5rem;
    }
    
    /* Mejoras de scroll móvil */
    .main-content {
        overflow-x: hidden;
    }
    
    * {
        -webkit-tap-highlight-color: rgba(220, 38, 38, 0.1);
    }
    
    /* Footer Mobile Pequeño */
    .main-footer {
        padding: 2rem 0 1.25rem;
    }
    
    .footer-content {
        gap: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-section h3 {
        font-size: 1.125rem;
    }
    
    .footer-section h4 {
        font-size: 0.9375rem;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.8125rem;
    }
    
    .footer-bottom {
        padding-top: 1.25rem;
        margin-top: 1.25rem;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
    }
    
    /* Hero Mobile Pequeño */
    .hero-section {
        padding: 2rem 0 1.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
    
    .subastas-hero {
        padding: 2rem 0;
    }
    
    .subastas-hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
        padding: 0 0.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.8125rem;
    }
    
    .section-header {
        margin-bottom: 1.25rem;
        padding-bottom: 0.875rem;
    }
    
    .section-header h2 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .section-header p {
        font-size: 0.875rem;
    }
    
    /* Mejoras de scroll y touch */
    html {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    body {
        overflow-x: hidden;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Mejoras de imágenes móvil */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    
    /* Mejoras de tablas móvil */
    table {
        font-size: 0.875rem;
        width: 100%;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    
    table thead,
    table tbody,
    table tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }
    
    /* Mejoras de modales/overlays móvil */
    .overlay,
    .modal {
        padding: 1rem;
    }
    
    /* Mejoras de listas móvil */
    ul, ol {
        padding-left: 1.25rem;
    }
    
    /* Mejoras de espaciado general móvil */
    section {
        padding: 1.75rem 0;
    }
    
    .section-header + * {
        margin-top: 1.5rem;
    }
    
    /* Mejoras de contenedores móvil */
    .container {
        max-width: 100%;
    }
    
    /* Mejoras de texto móvil */
    p {
        line-height: 1.6;
    }
    
    /* Mejoras de enlaces móvil */
    a {
        -webkit-tap-highlight-color: rgba(220, 38, 38, 0.1);
    }
    
    /* Mejoras de botones móvil */
    button,
    .btn-primary,
    .btn-secondary {
        -webkit-tap-highlight-color: rgba(220, 38, 38, 0.1);
        touch-action: manipulation;
    }
    
    /* Mejoras de inputs móvil */
    input,
    textarea,
    select {
        -webkit-appearance: none;
        appearance: none;
        touch-action: manipulation;
    }
    
    /* Mejoras de cards hover en móvil */
    @media (hover: none) {
        .moneda-card:hover,
        .subasta-card:hover,
        .categoria-card:hover,
        .categoria-principal-card:hover {
            transform: none;
        }
        
        .moneda-card:active,
        .subasta-card:active {
            transform: scale(0.98);
        }
    }
    
    /* Mejoras adicionales móvil pequeño */
    .monedas-grid {
        grid-template-columns: 1fr !important;
        margin: 1.25rem 0;
    }
    
    .subastas-grid {
        margin: 1.25rem 0;
    }
    
    .moneda-card-image,
    .subasta-card-image {
        height: 200px;
    }
    
    .moneda-info h3,
    .subasta-info h3 {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .precio {
        font-size: 1.375rem;
    }
    
    .moneda-meta {
        gap: 0.375rem;
        font-size: 0.75rem;
    }
    
    .meta-item {
        padding: 0.25rem 0.5rem;
        font-size: 0.6875rem;
    }
    
    .meta-item svg {
        width: 11px;
        height: 11px;
    }
    
    .moneda-badge-destacado,
    .moneda-badge-nuevo {
        top: 0.375rem;
        padding: 0.25rem 0.5rem;
        font-size: 0.625rem;
    }
    
    .moneda-badge-destacado {
        right: 0.375rem;
    }
    
    .moneda-badge-nuevo {
        left: 0.375rem;
    }
    
    .moneda-referencia {
        font-size: 0.6875rem;
    }
    
    .results-count {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    /* Mejoras de dropdowns móvil */
    .account-dropdown {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }
    
    .dropdown-item {
        padding: 0.875rem 1rem;
        min-height: 44px;
        font-size: 0.875rem;
    }
    
    /* Mejoras de breadcrumb móvil pequeño */
    .breadcrumb {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .breadcrumb::-webkit-scrollbar {
        display: none;
    }
    
    /* Mejoras de paginación móvil pequeño */
    .pagination {
        justify-content: center;
        margin: 1.5rem 0;
    }
    
    /* Mejoras de resultados móvil */
    .results-count {
        font-size: 0.8125rem;
        padding: 0.5rem 0.875rem;
    }
    
    /* Mejoras de empty state móvil */
    .no-results {
        padding: 2.5rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .empty-state {
        padding: 3rem 1.5rem;
    }
    
    .empty-state h2 {
        font-size: 1.25rem;
    }
    
    .empty-state p {
        font-size: 0.9375rem;
    }
    
    /* Mejoras de especificaciones móvil */
    .moneda-specs {
        font-size: 0.875rem;
    }
    
    .moneda-specs p {
        padding: 0.5rem 0;
        line-height: 1.6;
    }
    
    /* Mejoras de botones de acción móvil */
    .btn-buy,
    .btn-bid,
    .btn-pujar,
    .btn-ver {
        width: 100%;
        margin-top: 1rem;
        min-height: 48px;
    }
    
    /* Mejoras de badges móvil */
    .badge-live,
    .badge-finished {
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem;
    }
    
    /* Mejoras de countdown móvil */
    .subasta-countdown {
        font-size: 0.7rem;
        padding: 0.45rem 0.625rem;
    }
    
    /* Mejoras de precio móvil */
    .subasta-price {
        padding: 0.875rem;
    }
    
    .price-value {
        font-size: 1.125rem;
    }
    
    .price-label {
        font-size: 0.7rem;
    }
    
    /* Mejoras de meta items móvil */
    .meta-item {
        font-size: 0.8125rem;
    }
    
    .meta-item svg {
        width: 14px;
        height: 14px;
    }
    
    /* Cards Mobile Pequeño */
    .moneda-card,
    .subasta-card {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .moneda-card-image,
    .subasta-card-image {
        height: 200px;
    }
    
    .moneda-info,
    .subasta-info {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .moneda-info h3,
    .subasta-info h3 {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    .moneda-info p,
    .subasta-info p {
        font-size: 0.8125rem;
    }
    
    .moneda-info-detail h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .precio-section {
        padding: 1.25rem;
    }
    
    .precio-section .precio {
        font-size: 1.75rem;
    }
    
    .precio-label {
        font-size: 0.75rem;
    }
    
    .moneda-images .gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .moneda-images .gallery-item {
        aspect-ratio: 1;
    }
    
    .image-badge-container {
        top: 0.75rem;
        left: 0.75rem;
        gap: 0.375rem;
    }
    
    .image-badge-destacado,
    .image-badge-stock {
        padding: 0.375rem 0.75rem;
        font-size: 0.6875rem;
    }
    
    .precio-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .precio-section .precio {
        font-size: 2.25rem;
    }
    
    .precio-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .precio-benefits {
        flex-direction: column;
        gap: 1rem;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
    
    .spec-card {
        padding: 1rem;
    }
    
    .btn-buy {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }
    
    .buy-feature {
        padding: 0.875rem;
    }
    
    /* Grids Mobile Pequeño */
    .monedas-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.25rem 0;
    }
    
    .subastas-grid {
        gap: 1rem;
        margin: 1.25rem 0;
    }
    
    /* Buttons Mobile Pequeño */
    .btn-primary,
    .btn-secondary,
    .btn-buy,
    .btn-bid {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    /* Forms Mobile Pequeño */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.75rem;
        font-size: 16px;
    }
    
    /* Subasta Stats Mobile Pequeño */
    .subasta-stats {
        grid-template-columns: 1fr;
        gap: 0.625rem;
        padding: 1rem;
    }
    
    .stat {
        padding: 0.875rem;
    }
    
    .stat .value {
        font-size: 1.25rem;
    }
    
    /* Section Headers Mobile Pequeño */
    .section-header {
        margin-bottom: 1.25rem;
        padding-bottom: 0.875rem;
    }
    
    .section-header.modern-header {
        padding: 2rem 0 1.5rem;
        margin-bottom: 2rem;
    }
    
    .section-header.modern-header h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .section-icon {
        width: 48px;
        height: 48px;
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 1.25rem;
    }
    
    .section-header p {
        font-size: 0.875rem;
    }
    
    .section-header.modern-header p {
        font-size: 0.9rem;
    }
    
    /* Featured, Auctions, Categories Mobile */
    .featured-section,
    .auctions-section,
    .categories-section {
        padding: 3rem 0;
    }
    
    .subasta-card {
        border-radius: 12px;
    }
    
    .subasta-info {
        padding: 1.25rem;
    }
    
    .subasta-info h3 {
        font-size: 1.125rem;
    }
    
    .precio-valor {
        font-size: 1.5rem;
    }
    
    .categoria-card {
        padding: 1.5rem;
    }
    
    .categoria-card-icon {
        width: 80px;
        height: 80px;
    }
    
    .categoria-icon-large {
        font-size: 2.5rem;
    }
    
    .categoria-card-content h3 {
        font-size: 1.25rem;
    }
    
    .categorias-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .subastas-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Page Header Mobile Pequeño */
    .page-header {
        padding: 1.25rem 0;
        margin-bottom: 1.25rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .category-description {
        font-size: 0.875rem;
    }
    
    /* Breadcrumb Mobile Pequeño */
    .breadcrumb {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .breadcrumb a,
    .breadcrumb .current {
        font-size: 0.75rem;
        padding: 0;
    }
    
    .breadcrumb .separator {
        margin: 0 0.25rem;
        font-size: 0.65rem;
    }
    
    /* Pagination Mobile Pequeño */
    .pagination {
        gap: 0.25rem;
    }
    
    .pagination a,
    .pagination span {
        padding: 0.5rem 0.625rem;
        font-size: 0.8125rem;
        min-width: 40px;
        min-height: 40px;
    }
    
    /* Auth Mobile */
    .auth-section {
        min-height: auto;
    }
    
    .auth-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .auth-sidebar {
        display: none;
    }
    
    .auth-main {
        padding: 1.5rem 1rem;
        align-items: flex-start;
    }
    
    .auth-card {
        padding: 1.75rem 1.25rem;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        margin-top: 0;
    }
    
    .auth-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        text-align: center;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .auth-subtitle {
        font-size: 0.875rem;
    }
    
    .auth-form {
        margin-top: 1.5rem;
    }
    
    .auth-form .form-group {
        margin-bottom: 1.25rem;
    }
    
    .auth-form .form-group input {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }
    
    .form-group-icon .input-icon {
        left: 0.875rem;
        font-size: 0.95rem;
    }
    
    .form-group-icon input {
        padding-left: 2.5rem !important;
    }
    
    .btn-auth {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .form-row-2 {
        grid-template-columns: 1fr;
    }
    
    /* Mejoras responsive para página de detalle de moneda */
    .precio-wrapper {
        padding: 2rem 1.5rem;
        border-radius: 10px;
    }
    
    .precio-section .precio {
        font-size: 2rem;
    }
    
    .precio-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .precio-benefits {
        flex-direction: column;
        gap: 1rem;
    }
    
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }
    
    .spec-card {
        padding: 1rem;
        gap: 0.875rem;
    }
    
    .spec-icon {
        width: 40px;
        height: 40px;
    }
    
    .spec-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .image-badge-container {
        top: 0.75rem;
        left: 0.75rem;
        gap: 0.375rem;
    }
    
    .image-badge-destacado,
    .image-badge-stock {
        padding: 0.375rem 0.75rem;
        font-size: 0.6875rem;
    }
    
    .moneda-images .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   Legal pages & Cookie banner (RGPD)
   ============================================ */

.legal-section {
    padding: 2rem 0 4rem;
}

.legal-section h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.legal-section h2 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
}

.legal-section h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem;
}

.legal-section ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.legal-section a {
    color: var(--accent-color);
}

.legal-updated {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.container-narrow {
    max-width: 720px;
    margin: 0 auto;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    font-size: 1.5rem;
}

.footer-contact a {
    color: rgba(255,255,255,0.9);
}

.footer-contact a:hover {
    text-decoration: underline;
}

/* Cookie banner RGPD */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark, #1a1a1a);
    color: #fff;
    padding: 1rem 1.5rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    z-index: 9999;
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.cookie-banner-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
    min-width: 250px;
}

.cookie-banner-content a {
    color: var(--accent-color);
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.cookie-btn-necessary {
    background: #444;
    color: #fff;
}

.cookie-btn-accept {
    background: var(--accent-color, #dc2626);
    color: #fff;
}
