:root {
    --bg: #06070E;
    --primary: #29524A;
    --accent: #ECA72C;
    --accent-strong: #EE5622;
    --text: #EAEAEA;

    --card-bg: #0B0F1A;
    --card-border: #1C2233;
    --input-bg: #0F1526;
    --input-border: #2A3248;

    --radius: 12px;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
    --container: 1320px;
}

/* ==========================
   BASE
========================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at 20% 20%, rgba(41, 82, 74, 0.10), transparent 35%),
        radial-gradient(circle at 80% 0%, rgba(236, 167, 44, 0.06), transparent 35%),
        var(--bg);
    background-attachment: scroll;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================
   NAVBAR
========================== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    max-width: var(--container);
    margin: 0 auto;
    padding: 16px 20px;

    background: rgba(6, 7, 14, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-bottom: 1px solid var(--primary);
    border-left: 1px solid rgba(255, 200, 90, 0.3);
    border-right: 1px solid rgba(255, 200, 90, 0.3);
}

.logo {
    font-family: 'serveria', sans-serif;
    font-size: 32px;
    letter-spacing: 4px;
    color: var(--accent);
    white-space: nowrap;
    flex-shrink: 0;
}

.search {
    display: flex;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.search input {
    width: 100%;
    max-width: 560px;
    min-width: 0;
    padding: 12px 16px;

    border: 1px solid var(--text);
    border-right: none;
    border-radius: 20px 0 0 20px;
    outline: none;

    background: #fff;
    color: #111;
    font-size: 15px;
}

.search input::placeholder {
    color: #6b7280;
}

.search button {
    padding: 12px 18px;
    border: 1px solid var(--text);
    border-left: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;

    background: var(--accent);
    color: #111;
    transition: 0.2s ease;
    flex-shrink: 0;
}

.search button:hover {
    background: var(--accent-strong);
    color: #fff;
}

.acciones,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
    min-width: max-content;
}

.btn,
.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 10px;

    background: var(--accent);
    color: #111;
    font-family: 'botones', sans-serif;
    font-size: 15px;
    letter-spacing: 0.5px;
    white-space: nowrap;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn:hover,
.btn-nav:hover {
    background: var(--accent-strong);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(238, 86, 34, 0.18);
}

.btn-nav--secondary {
    background: transparent;
    border-color: rgba(236, 167, 44, 0.35);
    color: var(--accent);
}

.btn-nav--secondary:hover {
    background: rgba(236, 167, 44, 0.1);
    color: #fff;
    border-color: rgba(236, 167, 44, 0.55);
}

/* ==========================
   BARRA INFO / TICKER
========================== */
.info-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 56px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--primary);
    background: #080B14;
    overflow: hidden;
}

.ticker-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    padding-left: 100%;
    animation: tickerMove 28s linear infinite;
    will-change: transform;
}

.ticker-item {
    color: #bfc5cf;
    font-size: 14px;
    opacity: 0.9;
}

.ticker-item strong {
    color: var(--accent);
    font-family: 'botones', sans-serif;
    letter-spacing: 1px;
}

/* ==========================
   BLOQUE SUPERIOR VISUAL
========================== */
/* ==========================
   BLOQUE SUPERIOR VISUAL
========================== */
.home-top-visual {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--bg);
}

.bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.home-top-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(6, 7, 14, 0.28) 0%,
        rgba(6, 7, 14, 0.40) 35%,
        rgba(6, 7, 14, 0.58) 70%,
        rgba(6, 7, 14, 0.78) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.home-top-inner {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    margin: 0 auto;
    padding: 40px 20px 30px;
}

/* ==========================
   HERO BANNER
========================== */
.hero-banner {
    margin: 0;
    padding: 0;
}

.hero-banner__content {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    border-radius: 18px 18px 0 0;

    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
}

.hero-banner__content::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-banner__content::after {
    content: "";
    position: absolute;
    top: -20%;
    left: 47%;
    width: 2px;
    height: 160%;
    transform: rotate(37deg);
    opacity: 0.75;
    pointer-events: none;
}

.hero-banner__left,
.hero-banner__right {
    position: relative;
    z-index: 1;
}

.hero-banner__left {
    padding: 34px 34px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-banner__eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-family: 'botones', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-banner__left h1 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 3rem;
    line-height: 1.05;
    font-family: 'formularios', sans-serif;
}

.hero-banner__text {
    margin: 0;
    max-width: 620px;
    color: #d7dbe2;
    font-size: 1.1rem;
    line-height: 1.65;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.38);
}

.hero-banner__right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.hero-banner__logo {
    text-align: center;
    font-family: 'serveria', sans-serif;
    font-size: 4.8rem;
    line-height: 1;
    letter-spacing: 7px;
    color: var(--accent);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* ==========================
   CONTADOR
========================== */
.server-counter-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 18px;
    font-family: orbitron, sans-serif;
    letter-spacing: 3px;
    background: linear-gradient(
        90deg,
        #ECA72C,
        #EE5622,
        #c9ec2c,
        #2ceea5,
        #2c9eec,
        #c92cec,
        #ec2c2c,
        #ec2c9e,
        #ec2c2c,
        #2c9eec,
        #2ceea5,
        #c9ec2c,
        #EE5622,
        #ECA72C
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 4s linear infinite;
}

/* ==========================
   TITULOS DE SECCIÓN
========================== */
.section-title {
    display: flex;
    flex-direction: column;
    align-content: center;
}

.section-title__content {
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.section-title h1,
.section-title h2 {
    margin: 0 0 3px;
    color: var(--accent);
    font-family: 'botones', sans-serif;
    font-size: 38px;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.section-title p {
    margin: 0;
    color: #b8bec8;
    font-size: 22px;
    font-family: 'botones', sans-serif;
}

.section-title--banner {
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    padding: 14px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 18px 18px;
    grid-column: 1 / -1;
}

.section-title--banner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.section-title--banner h1,
.section-title--banner h2 {
    margin: 0 0 10px;
    color: var(--accent);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.section-title--banner p {
    margin: 0;
    color: #e2e8f0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
    max-width: 720px;
    line-height: 1.6;
}

/* ==========================
   LAYOUT HOME
========================== */
.home-container {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 25px;

    max-width: var(--container);
    margin: 0 auto;
    padding: 34px 20px 40px;

    background: var(--bg);
    border-radius: 22px 22px 0 0;
}

.home-container::before {
    content: "";
    position: absolute;
    top: -70px;
    left: 0;
    width: 100%;
    height: 70px;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, var(--bg));
}

.home-left,
.home-right {
    min-width: 0;
}

/* ==========================
   LISTA DE CARDS
========================== */
.cards-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cards-list .card-servidor {
    width: 100%;
    max-width: 100%;
}

/* ==========================
   SIDEBAR / TOP 5
========================== */
.top-box {
    position: sticky;
    top: 20px;

    background: #0B0F1A;
    border: 1px solid #1C2233;
    border-radius: 10px;
    padding: 18px;

    box-shadow: var(--shadow);
}

.top-box h2 {
    margin: 0 0 16px;
    color: var(--accent);
    font-family: 'orbitron', sans-serif;
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}

.top-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 14px;

    padding: 14px;
    border-radius: 12px;

    background: #0F1526;
    border: 1px solid #1C2233;
    transition: 0.2s ease;
}

.top-item:hover {
    border-color: rgba(236, 167, 44, 0.35);
    transform: translateY(-1px);
}

.top-rank {
    width: 52px;
    height: 52px;
    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--accent);
    color: #111;
    font-family: 'botones', sans-serif;
    font-size: 22px;
    flex-shrink: 0;
}

.top-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top-info strong {
    color: var(--text);
    font-size: 22px;
    font-family: 'formularios', sans-serif;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================
   ESTADO VACÍO
========================== */
.empty-state {
    background: #0B0F1A;
    border: 1px solid #1C2233;
    border-radius: 10px;
    padding: 20px;
    color: #c5c5c5;
    box-shadow: var(--shadow);
}

/* ==========================
   ANIMACIONES
========================== */
@keyframes tickerMove {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 1100px) {
    .navbar {
        gap: 16px;
    }

    .search input {
        max-width: 100%;
    }
}

@media (max-width: 980px) {
    .home-container {
        grid-template-columns: 1fr;
    }

    .top-box {
        position: static;
    }

    .hero-banner__content {
        grid-template-columns: 1fr;
    }

    .hero-banner__content::after {
        display: none;
    }

    .hero-banner__content::before {
        background: linear-gradient(
            180deg,
            rgba(236, 167, 44, 0.10) 0%,
            transparent 55%
        );
    }

    .hero-banner__right {
        padding-top: 0;
        padding-bottom: 28px;
    }

    .hero-banner__logo {
        font-size: 3.6rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: stretch;
    }

    .logo {
        text-align: center;
    }

    .search {
        width: 100%;
        order: 2;
    }

    .acciones,
    .nav-actions {
        justify-content: center;
        width: 100%;
        order: 3;
    }

    .search input {
        max-width: none;
    }

    .server-counter {
        font-size: 12px;
        padding: 6px 12px;
        max-width: calc(100% - 32px);
    }

    .section-title h1,
    .section-title h2 {
        font-size: 22px;
    }

    .home-top-visual {
        margin-top: 20px;
    }

    .hero-banner__left {
        padding: 24px 22px 18px;
    }

    .hero-banner__left h1 {
        font-size: 2.2rem;
    }

    .hero-banner__text {
        font-size: 1rem;
    }

    .hero-banner__logo {
        font-size: 2.8rem;
        letter-spacing: 4px;
    }
}

@media (max-width: 560px) {
    .navbar,
    .home-container,
    .home-top-visual {
        padding-left: 16px;
        padding-right: 16px;
    }

    .logo {
        font-size: 28px;
        letter-spacing: 3px;
    }

    .acciones,
    .nav-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .btn-nav {
        width: 100%;
        text-align: center;
    }

    .ticker-track {
        gap: 24px;
    }

    .ticker-item {
        font-size: 13px;
    }

    .top-box {
        padding: 14px;
    }

    .top-box h2 {
        font-size: 18px;
    }

    .hero-banner__left h1 {
        font-size: 1.9rem;
    }

    .hero-banner__text {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .hero-banner__logo {
        font-size: 2.2rem;
        letter-spacing: 3px;
    }

    .section-title p {
        font-size: 18px;
    }
}

/* =========================
   FOOTER MINIMAL
========================= */
.main-footer {
    margin-top: 60px;
    padding: 20px 10px;

    text-align: center;

    background: rgba(6, 7, 14, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.footer-line {
    font-size: 13px;
    color: #c7cbd4;
    margin-bottom: 6px;
}

.footer-line strong {
    font-family: 'serveria', sans-serif;
    letter-spacing: 2px;
    font-size: 18px;

    background: linear-gradient(90deg, #ECA72C, #EE5622);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-copy {
    font-size: 12px;
    color: #7e8694;
}

/* ==========================
   DONACION SERVERIAFUS
========================== */
.donacion-wrapper {
    display: flex;
    justify-content: center;
    margin: 18px 0 0;
}

.donacion-box {
    max-width: 720px;
    width: 100%;
    padding: 16px 18px;
    text-align: center;
    background: transparent;
}

.donacion-texto {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #d7dbe2;
}

.btn-donar-paypal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 10px;
    word-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffc439, #ffb347);
    color: #111;
    font-family: 'botones', sans-serif;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.btn-donar-paypal:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}