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

/* Mejoras para dispositivos táctiles */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    touch-action: manipulation;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --steam-blue: #1b2838;
    --steam-light-blue: #2a475e;
    --steam-accent: #66c0f4;
    --steam-green: #90ba3c;
    --steam-dark: #171a21;
    --steam-gray: #c7d5e0;
    --steam-light-gray: #8f98a0;
    --steam-hover: #67c1f5;
    --steam-gradient: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    --text-primary: #c7d5e0;
    --text-secondary: #8f98a0;
    --border-color: #3c4043;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--steam-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header */
.header {
    background: var(--steam-gradient);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 600;
    color: var(--steam-accent);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: var(--steam-accent);
    color: var(--steam-dark);
}

.currency-selector select {
    background: var(--steam-light-blue);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

/* Botón de Cafecito */
.cafecito-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

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

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

.cafecito-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.cafecito-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.cafecito-btn svg {
    transition: transform 0.3s ease;
}

.cafecito-btn:hover svg {
    transform: scale(1.1) rotate(5deg);
}

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

.main-content {
    display: flex;
    gap: 20px;
}

.left-column {
    flex: 1;
}

.cart-container {
    width: 350px;
    background: linear-gradient(135deg, var(--steam-blue), #1a2332);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--steam-border);
}

.cart-header h3 {
    color: var(--steam-accent);
    margin: 0;
}

.cart-count {
    background-color: var(--steam-accent);
    color: var(--steam-dark);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
}

.empty-cart {
    color: var(--text-secondary);
    text-align: center;
    padding: 20px 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--steam-border);
}

.cart-item-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.cart-item-img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    overflow: hidden;
    border-radius: 4px;
}

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

.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--steam-light-blue);
}

/* Estilos antiguos eliminados */

.cart-item-name {
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.cart-item-price {
    font-size: 0.8rem;
    color: var(--steam-green);
}

.remove-item {
    background: none;
    border: none;
    color: var(--steam-red);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 5px;
}

.empty-cart {
    text-align: center;
    padding: 20px 0;
    color: var(--text-secondary);
}

/* Estilos antiguos eliminados */

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.cart-item-price {
    font-size: 13px;
    color: var(--steam-green);
}

.cart-item-remove {
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.cart-item-remove:hover {
    color: var(--steam-accent);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--steam-border);
    font-weight: bold;
}

.add-to-cart-btn {
    display: block;
    width: 100%;
    padding: 8px;
    margin-top: 10px;
    background-color: var(--steam-green);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.add-to-cart-btn:hover {
    background-color: #4CAF50;
}

.add-to-cart-btn.in-cart {
    background-color: var(--steam-red);
}

.add-to-cart-btn.in-cart:hover {
    background-color: #e53935;
}

.total-amount {
    color: var(--steam-green);
}

/* Mensaje de bienvenida */
.welcome-message {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--steam-dark-blue), var(--steam-blue));
    border-radius: 12px;
    border: 2px solid var(--steam-border);
    margin: 20px 0;
}

.welcome-message h3 {
    color: var(--steam-green);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.welcome-message p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Mejoras del carrito */
.cart-header {
    background: linear-gradient(135deg, var(--steam-green), #4CAF50);
    color: white;
    padding: 15px;
    margin: -25px -25px 20px -25px;
    border-radius: 10px 10px 0 0;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cart-total {
    background: linear-gradient(135deg, var(--steam-dark-blue), #1a2332);
    padding: 15px;
    margin: 20px -25px -25px -25px;
    border-radius: 0 0 10px 10px;
    border-top: 2px solid var(--steam-green);
}

/* Estilos para la búsqueda central */
.central-search {
    background: linear-gradient(135deg, var(--steam-dark-blue), var(--steam-blue));
    padding: 30px;
    margin: 20px 0;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.central-search h2 {
    color: var(--steam-green);
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.search-section {
    margin-bottom: 30px;
}

.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    align-items: center;
    width: 100%;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    align-items: center;
    position: relative;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--steam-light-blue);
    color: var(--text-primary);
    font-size: 16px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--steam-green);
    box-shadow: 0 0 10px rgba(102, 192, 244, 0.3);
}

.search-box button {
    padding: 15px 25px;
    background: linear-gradient(135deg, var(--steam-green), #4CAF50);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 192, 244, 0.3);
}

.search-box button:hover {
    background: linear-gradient(135deg, #4CAF50, var(--steam-green));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 192, 244, 0.4);
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--steam-light-blue);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--steam-blue);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    margin-top: 1px;
}

.autocomplete-results.active {
    display: block;
    animation: slideDown 0.2s ease-out;
}

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

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.autocomplete-item:hover {
    background: linear-gradient(135deg, var(--steam-light-blue), rgba(102, 192, 244, 0.1));
    transform: translateX(4px);
    border-left: 3px solid var(--steam-accent);
}

.autocomplete-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.autocomplete-item:hover img {
    transform: scale(1.05);
}

.autocomplete-item-name {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.search-input:focus {
    outline: none;
    border-color: var(--steam-accent);
    box-shadow: 0 0 0 2px rgba(102, 192, 244, 0.2);
}

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

.search-btn {
    padding: 12px 16px;
    background: var(--steam-accent);
    border: none;
    border-radius: 4px;
    color: var(--steam-dark);
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(25, 35, 48, 0.8), rgba(102, 192, 244, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(102, 192, 244, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: filterSlideIn 0.3s ease-out;
}

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

.filters.hidden {
    display: none;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--steam-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-group label::before {
    content: "⚙️";
    font-size: 12px;
}

.filter-group:first-child label::before {
    content: "📊";
}

.filter-group select {
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--steam-blue), var(--steam-light-blue));
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    background-clip: padding-box;
}

.filter-group select:hover {
    border-color: var(--steam-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 192, 244, 0.3);
    background: linear-gradient(135deg, var(--steam-light-blue), rgba(102, 192, 244, 0.2));
}

.filter-group select:focus {
    outline: none;
    border-color: var(--steam-accent);
    box-shadow: 0 0 0 3px rgba(102, 192, 244, 0.3);
}

.filter-group select option {
    background: var(--steam-blue);
    color: var(--text-primary);
    padding: 8px;
}

/* Exchange rates */
.exchange-rates {
    background: var(--steam-gradient);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.rate-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rate-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.rate-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--steam-accent);
}

.rate-change {
    font-size: 12px;
    margin-top: 5px;
}

.rate-change.positive {
    color: var(--steam-green);
}

.rate-change.negative {
    color: #ff6b6b;
}

/* Games grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.game-card {
    background: var(--steam-gradient);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.game-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: var(--steam-light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.game-content {
    padding: 15px;
}

.game-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.3;
}

.game-developer {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.game-prices {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.price-label {
    color: var(--text-secondary);
    font-size: 12px;
}

.price-value {
    font-weight: 600;
    color: var(--steam-accent);
}

.price-usd {
    color: var(--steam-green);
    font-size: 12px;
}

/* Loading states */
.loading,
.loading-games {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--steam-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    margin: 20px 0;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Footer */
.footer {
    background: var(--steam-blue);
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer .disclaimer {
    margin-top: 10px;
    padding: 8px 15px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 4px;
    color: #ffc107;
    font-size: 12px;
    display: inline-block;
    max-width: 600px;
}

/* Responsive design */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .cart-container {
        width: 100%;
        position: static;
        max-height: none;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Móviles grandes */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 10px 0;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .cafecito-btn {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 20px;
    }
    
    .nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-input {
        width: 100%;
        font-size: 16px; /* Evita zoom en iOS */
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .filters {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .filter-group {
        min-width: auto;
        width: 100%;
    }
    
    .filter-group select {
        width: 100%;
        font-size: 16px; /* Evita zoom en iOS */
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .rates-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .exchange-rates {
        margin-bottom: 20px;
    }
    
    .central-search h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .autocomplete-results {
        max-height: 250px;
    }
    
    .autocomplete-item {
        padding: 15px;
        gap: 15px;
    }
    
    .autocomplete-item img {
        width: 50px;
        height: 50px;
    }
    
    .cart-container {
        padding: 20px;
        border-radius: 8px;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cart-item-info {
        width: 100%;
    }
    
    .game-card {
        margin-bottom: 15px;
    }
    
    .game-image {
        height: 120px;
    }
    
    .welcome-message {
        padding: 40px 20px;
    }
    
    .welcome-message h3 {
        font-size: 1.3rem;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .main {
        padding: 15px 0;
    }
    
    .header-content {
        padding: 8px 0;
    }
    
    .logo {
        font-size: 18px;
        gap: 8px;
    }
    
    .logo svg {
        width: 24px;
        height: 24px;
    }
    
    .cafecito-btn {
        padding: 8px 12px;
        font-size: 12px;
        gap: 6px;
        border-radius: 18px;
    }
    
    .cafecito-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .central-search h2 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .search-input {
        padding: 12px;
        font-size: 16px;
    }
    
    .search-btn {
        padding: 12px;
        font-size: 14px;
    }
    
    .filters {
        padding: 12px;
        gap: 12px;
    }
    
    .game-card {
        border-radius: 6px;
    }
    
    .game-content {
        padding: 12px;
    }
    
    .game-title {
        font-size: 14px;
        line-height: 1.2;
    }
    
    .game-developer {
        font-size: 11px;
    }
    
    .price-row {
        font-size: 12px;
    }
    
    .price-label {
        font-size: 11px;
    }
    
    .add-to-cart-btn {
        padding: 6px;
        font-size: 12px;
    }
    
    .cart-container {
        padding: 15px;
    }
    
    .cart-header h3 {
        font-size: 16px;
    }
    
    .cart-count {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    
    .autocomplete-item {
        padding: 12px;
    }
    
    .autocomplete-item-name {
        font-size: 13px;
    }
    
    .welcome-message {
        padding: 30px 15px;
    }
    
    .welcome-message h3 {
        font-size: 1.1rem;
    }
    
    .welcome-message p {
        font-size: 1rem;
    }
    
    .footer {
        padding: 15px 0;
    }
    
    .footer .disclaimer {
        margin: 8px 10px 0;
        padding: 6px 12px;
        font-size: 11px;
        max-width: none;
        width: calc(100% - 20px);
    }
}

/* Móviles muy pequeños */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }
    
    .logo span {
        font-size: 16px;
    }
    
    .cafecito-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .search-input {
        padding: 10px;
    }
    
    .search-btn {
        padding: 10px;
    }
    
    .game-content {
        padding: 10px;
    }
    
    .cart-container {
        padding: 12px;
    }
}

/* Landscape móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .main {
        padding: 10px 0;
    }
    
    .welcome-message {
        padding: 20px 15px;
    }
    
    .central-search h2 {
        margin-bottom: 10px;
    }
    
    .exchange-rates {
        margin-bottom: 15px;
    }
}

/* Mejoras de accesibilidad táctil */
@media (hover: none) and (pointer: coarse) {
    .game-card:hover {
        transform: none;
    }
    
    .game-card:active {
        transform: scale(0.98);
    }
    
    .autocomplete-item:hover {
        transform: none;
        border-left: none;
    }
    
    .autocomplete-item:active {
        background: var(--steam-light-blue);
    }
    
    .cafecito-btn:hover {
        transform: none;
    }
    
    .cafecito-btn:active {
        transform: scale(0.95);
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--steam-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--steam-light-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--steam-accent);
}