/* ==========================================================================
   APP.CSS - ROMs Retro - Estilo Moderno Inspirado en ROMSFUN
   ========================================================================== */

/* --------------------------------------------------------------------------
   Variables CSS
   -------------------------------------------------------------------------- */
:root {
    --primary-color: #e91e63;
    --primary-dark: #c2185b;
    --primary-light: #f8bbd9;
    --secondary-color: #7c4dff;
    --accent-color: #ff4081;
    --dark-color: #1a1a2e;
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --bg-light: #f8f9fa;
    --bg-gray: #f1f3f4;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    --transition: all 0.3s ease;
}

/* --------------------------------------------------------------------------
   Reset y Base
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
}

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

/* Wrapper principal para el contenido (entre header y footer) */
.main-content {
    flex: 1;
}

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

/* --------------------------------------------------------------------------
   Header / Navbar - Estilo Rosa Moderno
   -------------------------------------------------------------------------- */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    max-height: 40px;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1.2rem !important;
    border-radius: var(--radius-full);
    margin: 0 0.2rem;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: var(--white);
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* Buscador en Header */
.search-container {
    position: relative;
}

.search-container .input-group {
    flex-wrap: nowrap !important;
}

.search-container .form-control {
    border-radius: var(--radius-full) 0 0 var(--radius-full);
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.95);
    min-width: 200px;
    flex: 1 1 auto;
}

.search-container .form-control:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
    background: var(--white);
}

.search-container .btn {
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    background: var(--white);
    color: var(--primary-color);
    border: none;
    font-weight: 600;
    flex-shrink: 0;
    padding: 0.6rem 1rem;
}

.search-container .btn:hover {
    background: var(--dark-color);
    color: var(--white);
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1050;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 8px;
}

.search-dropdown.show { display: block; }

.search-dropdown-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--bg-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.search-dropdown-item:hover {
    background: var(--bg-gray);
    color: var(--primary-color);
}

.search-dropdown-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.search-dropdown-item .type-badge {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

/* Badge del usuario */
.navbar .badge {
    font-size: 0.7rem;
    padding: 0.3em 0.6em;
    border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    padding: 2.5rem 0 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.hero-section .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-section .hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.hero-section h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.hero-section h1 .highlight {
    color: var(--primary-color);
}

.hero-section .hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 1.5rem;
}

/* Buscador Hero */
.hero-search {
    max-width: 580px;
    margin: 0 auto;
}

.hero-search .input-group {
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-full);
    overflow: hidden;
    flex-wrap: nowrap !important;
}

.hero-search .form-control {
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    background: var(--white);
}

.hero-search .form-control:focus {
    box-shadow: none;
}

.hero-search .btn-search {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

/* Filtros Hero */
.hero-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.hero-filters .filter-select {
    border: 1px solid var(--bg-gray);
    border-radius: var(--radius-full);
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    background: var(--white);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    min-width: 150px;
}

.hero-filters .filter-select:focus,
.hero-filters .filter-select:hover {
    border-color: var(--primary-color);
    outline: none;
}

.btn-clear-filters {
    background: var(--bg-gray);
    color: var(--text-muted);
    border: none;
    border-radius: var(--radius-full);
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-clear-filters:hover {
    background: var(--text-muted);
    color: var(--white);
}

/* --------------------------------------------------------------------------
   Filtros Sugeridos (Pills)
   -------------------------------------------------------------------------- */
.suggested-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem;
}

.filter-pill {
    background: var(--bg-gray);
    color: var(--text-dark);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.filter-pill:hover {
    background: var(--primary-color);
    color: var(--white);
}

.filter-pill .count {
    background: rgba(0,0,0,0.08);
    padding: 1px 6px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
}

.filter-pill:hover .count {
    background: rgba(255,255,255,0.2);
}

/* --------------------------------------------------------------------------
   Section Headers
   -------------------------------------------------------------------------- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.section-header .section-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.btn-view-all {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.btn-view-all:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   Cards de ROMs - Estilo Moderno
   -------------------------------------------------------------------------- */
.rom-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: none;
    height: 100%;
}

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

.rom-card .card-img-top {
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: var(--transition);
}

.rom-card:hover .card-img-top {
    transform: scale(1.03);
}

.rom-card .card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.rom-card .card-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 40%);
    opacity: 0;
    transition: var(--transition);
}

.rom-card:hover .card-img-wrapper::after {
    opacity: 1;
}

.rom-card .card-body {
    padding: 1rem;
}

.rom-card .card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.4rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rom-card .card-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rom-card .rom-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.rom-card .rom-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #10b981;
}

.rom-card .rom-category {
    background: var(--bg-gray);
    color: var(--text-muted);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
}

.rom-card .btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    width: 100%;
    transition: var(--transition);
}

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

/* --------------------------------------------------------------------------
   Category Cards (Colecciones)
   -------------------------------------------------------------------------- */
.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    height: 200px;
    display: flex;
    align-items: flex-end;
}

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

.category-card .category-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0.9;
}

.category-card .category-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    color: var(--white);
    width: 100%;
}

.category-card .category-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.category-card .category-count {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Pagina Detalle ROM
   -------------------------------------------------------------------------- */
.rom-page .rom-image {
    max-height: 400px;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.rom-page h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.rom-page .rom-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.rom-page .rom-price {
    font-size: 1.5rem !important;
    font-weight: 700;
    color: #10b981 !important;
}

/* Botones de descarga */
.btn-download {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
    text-decoration: none;
    cursor: pointer;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
    color: var(--white);
}

.btn-unlock {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(233, 30, 99, 0.3);
    text-decoration: none;
}

.btn-unlock:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.4);
    color: var(--white);
}

/* SEO Content */
.seo-content-top,
.seo-content {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.seo-content-top h2,
.seo-content h2,
.seo-content-top h3,
.seo-content h3 {
    color: var(--dark-color);
    font-weight: 700;
}

.seo-content-top p,
.seo-content p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* Ad Zones */
.ad-zone {
    background: var(--bg-gray);
    border: 2px dashed #ddd;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Pagina Categorias
   -------------------------------------------------------------------------- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-list-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--text-dark);
}

.category-list-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--primary-color);
}

.category-list-item .category-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
}

.category-list-item .category-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.2rem;
}

.category-list-item .category-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Botones Generales
   -------------------------------------------------------------------------- */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: var(--radius-full);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: var(--transition);
}

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

.btn-success {
    background: #10b981;
    border-color: #10b981;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.btn-success:hover {
    background: #059669;
    border-color: #059669;
}

.btn-info {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    border-radius: var(--radius-full);
    font-weight: 600;
}

.btn-info:hover {
    background: #651fff;
    border-color: #651fff;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: var(--radius-full);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary {
    background: var(--bg-gray);
    border-color: var(--bg-gray);
    color: var(--text-dark);
    border-radius: var(--radius-full);
    font-weight: 600;
}

.btn-secondary:hover {
    background: #e0e0e0;
    border-color: #e0e0e0;
    color: var(--text-dark);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-control {
    border-radius: var(--radius-md);
    border: 2px solid var(--bg-gray);
    padding: 0.8rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-select {
    border-radius: var(--radius-md);
    border: 2px solid var(--bg-gray);
    padding: 0.8rem 1rem;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Alerts
   -------------------------------------------------------------------------- */
.alert {
    border-radius: var(--radius-md);
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
}

.alert-info {
    background: #e0e7ff;
    color: #3730a3;
}

/* --------------------------------------------------------------------------
   Cards Generales
   -------------------------------------------------------------------------- */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card-header {
    background: var(--bg-light);
    border-bottom: 1px solid var(--bg-gray);
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table th {
    background: var(--dark-color);
    color: var(--white);
    font-weight: 600;
    white-space: nowrap;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

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

/* --------------------------------------------------------------------------
   Badges
   -------------------------------------------------------------------------- */
.badge {
    padding: 0.4em 0.8em;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.badge.bg-success {
    background: #10b981 !important;
}

.badge.bg-warning {
    background: #f59e0b !important;
}

.badge.bg-danger {
    background: #ef4444 !important;
}

.badge.bg-info {
    background: var(--secondary-color) !important;
}

.badge.bg-primary {
    background: var(--primary-color) !important;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
    background: var(--dark-color) !important;
    color: rgba(255,255,255,0.8);
    padding: 1.25rem 0;
    margin-top: auto;
    font-size: 0.9rem;
}

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

footer a:hover {
    color: var(--white);
}

/* --------------------------------------------------------------------------
   Admin Dashboard - Tarjetas con borde lateral usando variables CSS
   -------------------------------------------------------------------------- */
.card[class*="border-left-"] {
    border-radius: var(--radius-lg);
    border-left-width: 4px !important;
    border-left-style: solid !important;
}

.card.border-left-primary {
    border-left-color: var(--primary-color) !important;
}

.card.border-left-success {
    border-left-color: var(--success-color, #10b981) !important;
}

.card.border-left-info {
    border-left-color: var(--secondary-color) !important;
}

.card.border-left-warning {
    border-left-color: var(--warning-color, #f59e0b) !important;
}

.card.border-left-danger {
    border-left-color: var(--danger-color, #ef4444) !important;
}

/* Utilidades de texto */
.text-xs { font-size: .75rem; }
.text-gray-300 { color: var(--text-muted) !important; }
.text-gray-800 { color: var(--text-dark) !important; }

/* --------------------------------------------------------------------------
   Auth Pages
   -------------------------------------------------------------------------- */
.auth-container {
    padding-top: 3vh;
    max-width: 100%;
    margin: 0 auto;
}

.auth-container .card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 320px;
}

.auth-container .card-body {
    padding: 2rem !important;
}

.auth-container .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem 0 1.25rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-filters {
        flex-direction: column;
        align-items: center;
    }

    .hero-filters .filter-select {
        width: 100%;
        max-width: 280px;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
    }

    .section-header h2 {
        font-size: 1.25rem;
    }

    .search-container {
        width: 100%;
        margin: 0.5rem 0;
    }

    .search-container .input-group {
        flex-wrap: nowrap !important;
    }

    .search-container .form-control {
        min-width: 0;
        flex: 1;
    }

    .rom-page h1 {
        font-size: 1.3rem;
    }

    .rom-page .rom-price {
        font-size: 1.25rem !important;
    }

    .btn-download,
    .btn-unlock {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }

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

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .search-container {
        width: 100%;
        margin: 0.5rem 0;
    }

    .search-container .input-group {
        flex-wrap: nowrap !important;
    }

    .search-container .form-control {
        min-width: 0;
        flex: 1;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .search-container .btn {
        padding: 0.5rem 0.75rem;
    }

    .hero-section {
        padding: 1.25rem 0 1rem;
    }

    .hero-section h1 {
        font-size: 1.3rem;
    }

    .hero-search .form-control {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .hero-search .btn-search {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .suggested-filters {
        gap: 0.4rem;
    }

    .filter-pill {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }

    .rom-card .card-body {
        padding: 0.85rem;
    }

    .rom-card .card-title {
        font-size: 0.9rem;
    }
}

/* --------------------------------------------------------------------------
   Animaciones
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-gray) 25%, var(--bg-light) 50%, var(--bg-gray) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
