/* =========================================================================
   SERVIDORES DE JUEGOS - CSS
   ========================================================================= */

/* HERO SECTION */
.games-hero {
    padding: 100px 0 60px;
    text-align: center;
    background: radial-gradient(ellipse 42% 112% at 50% 50%, rgb(37 99 235 / 18%) 0%, transparent 70%), var(--bg-dark);
}

.games-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.games-sub {
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    color: #a0a5b1;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* GAMES GRID SECTION */
.games-section {
    padding: 20px 0 80px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 50px;
}

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

/* GAME CARD */
.game-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: #11141e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    aspect-ratio: 4 / 3;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}

.game-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1c2130;
    /* Fallback */
    z-index: 1;
    transition: transform 0.5s ease;
}

.game-card:hover .game-card-bg {
    transform: scale(1.05);
}

.game-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient to make text readable */
    background: linear-gradient(to top, rgba(10, 10, 15, 1) 0%, rgba(10, 10, 15, 0.8) 40%, rgba(10, 10, 15, 0) 100%);
    z-index: 2;
}

.game-card-content {
    position: relative;
    z-index: 3;
    padding: 15px 15px 20px 15px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.game-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.game-price {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    color: #a0a5b1;
    margin: 0 0 15px 0;
}

.btn-game-card {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    width: 100%;
}

.btn-game-card:hover {
    background: #1d4ed8;
    color: #fff;
}

.btn-game-card i {
    font-size: 0.75rem;
}

/* GAME FEATURES (Under Grid) */
.game-features-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.game-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(20, 24, 36, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 8px;
    flex: 1 1 200px;
    max-width: 250px;
    transition: all 0.3s ease;
}

.game-feature:hover {
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.3);
}

.gf-icon {
    font-size: 1.5rem;
    color: #2563eb;
}

.gf-text {
    display: flex;
    flex-direction: column;
}

.gf-text strong {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    color: #fff;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.gf-text span {
    font-size: 0.65rem;
    color: #a0a5b1;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* =========================================================================
   DOMAIN SPECIFIC STYLES
   ========================================================================= */

.domain-search-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.domain-search-form {
    display: flex;
    background: rgba(14, 27, 61, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s ease;
}

.domain-search-form:focus-within {
    border-color: rgba(37, 99, 235, 0.5);
}

.domain-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 25px;
    color: #fff;
    font-family: 'Roboto Mono', monospace;
    font-size: 1.1rem;
    outline: none;
}

.domain-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 30px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
}

.domain-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.domain-suggestions {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
}

.suggest-label { color: #5c6374; }
.suggest-item { color: #2563eb; cursor: pointer; font-weight: 500; }
.suggest-item:hover { text-decoration: underline; }

/* TLD GRID */
.tld-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.tld-card {
    background: rgba(20, 24, 36, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.tld-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.4);
}

.tld-card.popular {
    background: linear-gradient(160deg, rgba(37, 99, 235, 0.05) 0%, rgba(14, 27, 61, 0.4) 100%);
    border-color: rgba(37, 99, 235, 0.3);
}

.tld-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: #fff;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.tld-ext {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.tld-price-box {
    margin-bottom: 20px;
}

.tld-price-label { font-size: 0.75rem; color: #a0a5b1; display: block; }
.tld-price { font-size: 2rem; font-weight: 700; color: #fff; }
.tld-period { font-size: 0.9rem; color: #a0a5b1; }
.tld-renew { font-size: 0.75rem; color: #5c6374; margin-bottom: 25px; }

.btn-tld-card {
    display: block;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.tld-card:hover .btn-tld-card {
    background: #2563eb;
    border-color: #2563eb;
}

@media (max-width: 768px) {
    .domain-search-form { flex-direction: column; padding: 10px; }
    .domain-btn { padding: 15px; justify-content: center; }
}