:root {
    --o: #ff5a00;
    --o2: #e94700;
    --bg: #080b0d;
    --panel: #111518;
    --line: #30363a;
    --txt: #eeeeee;
    --muted: #a9adb0;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: #07090b;
    color: var(--txt);
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: radial-gradient(circle at 50% -10%, #40200e 0, transparent 36%), #080b0d;
}

.site-shell {
    max-width: 1536px;
    margin: auto;
    min-height: 100vh;
    background: linear-gradient(180deg, #0b0e10, #090c0e);
    box-shadow: 0 0 80px #000;
}

.topbar {
    min-height: 212px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px 290px;
    gap: 16px;
    align-items: center;
    padding: 18px 44px;
    background:
        linear-gradient(90deg, rgba(6, 8, 9, .98), rgba(8, 10, 11, .7)),
        url('../imagenes/cl-skyline.jpg') center / cover no-repeat;
    border-bottom: 1px solid #25292b;
}

.brand {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
    text-decoration: none;
    color: #fff;
}

.brand img {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 18px;
    filter: drop-shadow(0 12px 20px #000);
}

.brand span {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-style: italic;
    line-height: .86;
}

.brand b,
.brand strong {
    font-size: 54px;
    letter-spacing: -2px;
}

.brand strong {
    color: var(--o);
}

.brand small {
    margin-top: 18px;
    color: #b8b8b8;
    font-size: 27px;
    letter-spacing: 8px;
}

.server-box {
    display: flex;
    gap: 17px;
    align-items: center;
    min-height: 102px;
    padding: 16px 20px;
    overflow: hidden;
    border: 1px solid #444;
    border-radius: 9px;
    background: rgba(7, 9, 10, .88);
    box-shadow: inset 0 0 24px #000;
}

.server-icon {
    flex: 0 0 auto;
    color: #aaa;
    font-size: 45px;
}

.server-box > div {
    min-width: 0;
}

.server-box small {
    display: block;
    margin-bottom: 8px;
    color: var(--o);
    font-weight: 700;
}

.server-box a {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-box p {
    margin: 8px 0 0;
    font-weight: 700;
}

.server-box p.online {
    color: #31df33;
}

.server-box p.offline {
    color: #e55353;
}

.server-box em {
    margin-left: 35px;
    color: #ddd;
    font-style: normal;
    font-weight: 400;
}

.login-card {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    border: 1px solid #ff7a2f;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff6900, #e94800);
    box-shadow: 0 0 25px rgba(255, 90, 0, .18);
    color: #fff;
    text-decoration: none;
}

.login-card > span {
    font-size: 44px;
}

.login-card b {
    display: block;
    font-size: 20px;
}

.login-card small {
    display: block;
    margin-top: 7px;
    font-size: 16px;
}

.main-nav {
    display: flex;
    min-height: 70px;
    border-bottom: 1px solid #6b2b08;
    background: linear-gradient(#121619, #0c0f11);
}

.main-nav a {
    min-width: 195px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 31px;
    border-right: 1px solid #2a2f32;
    color: #eee;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.main-nav a:last-child {
    border-right: 0;
}

.main-nav a.active,
.main-nav a:hover {
    background: linear-gradient(135deg, #ff6500, #e74700);
    color: #fff;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 385px;
    gap: 14px;
    padding: 12px 30px;
}

.hero {
    position: relative;
    min-height: 425px;
    overflow: hidden;
    border: 1px solid #444;
    border-radius: 8px;
    background: url('../imagenes/cl-hero.jpg') center / cover no-repeat;
    box-shadow: inset 0 0 90px #000;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 7, 8, .98) 0, rgba(5, 7, 8, .88) 28%, rgba(5, 7, 8, .15) 62%, rgba(5, 7, 8, .05));
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: 43%;
    padding: 36px 30px 120px;
}

.hero-copy > span {
    color: var(--o);
    font-size: 22px;
    font-weight: 800;
}

.hero h1 {
    margin: 7px 0 12px;
    font-size: 50px;
    line-height: 1.04;
}

.hero h1 em {
    color: var(--o);
    font-style: normal;
}

.hero-copy i {
    display: block;
    width: 49px;
    height: 4px;
    margin: 14px 0;
    border-radius: 4px;
    background: var(--o);
}

.hero-copy p {
    margin: 12px 0;
    font-size: 18px;
    line-height: 1.42;
}

.hero-copy > a {
    display: inline-block;
    margin-top: 10px;
    padding: 17px 26px;
    border-radius: 7px;
    background: linear-gradient(135deg, #ff6500, #e74700);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
}

.hero-stats {
    position: absolute;
    z-index: 3;
    right: 22px;
    bottom: 13px;
    display: flex;
    overflow: hidden;
    border: 1px solid #3b4144;
    border-radius: 9px;
    background: rgba(7, 9, 10, .92);
}

.hero-stats div {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 25px;
    border-right: 1px solid #313638;
    font-size: 27px;
}

.hero-stats div:last-child {
    border-right: 0;
}

.hero-stats span {
    display: flex;
    flex-direction: column;
    font-size: 13px;
}

.hero-stats b {
    margin-top: 5px;
    color: var(--o);
}

.why {
    margin-top: 12px;
    padding: 18px 26px;
    border: 1px solid #343a3d;
    border-radius: 8px;
    background: linear-gradient(#111518, #0d1012);
}

.why h2 {
    margin: 0 0 14px;
    padding-left: 15px;
    border-left: 4px solid var(--o);
    font-size: 20px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.feature-grid article {
    min-height: 137px;
    display: flex;
    gap: 14px;
    padding: 20px 15px;
    border: 1px solid #343a3d;
    border-radius: 7px;
    background: linear-gradient(145deg, #171b1e, #0e1113);
}

.feature-grid strong {
    color: var(--o);
    font-size: 36px;
}

.feature-grid b,
.feature-grid p {
    font-size: 13px;
}

.feature-grid p {
    color: #ddd;
    line-height: 1.55;
}

.options-panel,
.vip-card {
    overflow: hidden;
    border: 1px solid #3b4144;
    border-radius: 8px;
    background: linear-gradient(#171b1e, #0d1012);
}

.options-panel h2 {
    margin: 0;
    padding: 17px 24px;
    border-bottom: 1px solid #373d40;
    color: var(--o);
    font-size: 19px;
}

.options-panel a {
    min-height: 47px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 20px;
    align-items: center;
    padding: 0 22px;
    border-bottom: 1px solid #303638;
    color: #eee;
    font-size: 17px;
    text-decoration: none;
}

.options-panel a:hover {
    background: #1a2023;
    color: var(--o);
}

.options-panel a.vip-link {
    color: #fff;
}

.options-panel a.vip-link span {
    color: var(--o);
}

.vip-card {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px;
}

.vip-badge {
    width: 95px;
    height: 110px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    clip-path: polygon(50% 0, 90% 18%, 83% 77%, 50% 100%, 17% 77%, 10% 18%);
    background: linear-gradient(#ffdc57, #d48700);
    color: #111;
    font-size: 28px;
    font-weight: 900;
    text-shadow: 0 1px #fff;
}

.vip-card > div:last-child {
    min-width: 0;
}

.vip-card h3 {
    margin: 0 0 9px;
    font-size: 16px;
}

.vip-card p {
    color: #ddd;
    line-height: 1.4;
}

.vip-card p b {
    color: var(--o);
}

.vip-card a {
    display: inline-block;
    padding: 12px 17px;
    border-radius: 6px;
    background: linear-gradient(135deg, #ff6500, #e74700);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

footer {
    min-height: 90px;
    display: grid;
    grid-template-columns: 320px 1fr 220px;
    align-items: center;
    padding: 20px 48px;
    border-top: 1px solid #2b3033;
    background: #090c0e;
    color: #aaa;
}

.mini-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-brand img {
    width: 47px;
    height: 47px;
    border-radius: 8px;
}

.mini-brand b {
    font-style: italic;
}

.mini-brand em {
    color: var(--o);
    font-style: normal;
}

.mini-brand small {
    display: block;
    letter-spacing: 4px;
}

.social {
    text-align: right;
    font-size: 23px;
}

@media (max-width: 1100px) {
    .topbar {
        grid-template-columns: minmax(0, 1fr) 330px;
    }

    .login-card {
        display: none;
    }

    .brand b,
    .brand strong {
        font-size: 42px;
    }

    .brand img {
        width: 130px;
        height: 130px;
    }

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

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

    aside {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .vip-card {
        margin-top: 0;
    }

    .main-nav a {
        min-width: 0;
    }

    .hero-copy {
        width: 52%;
    }
}

@media (max-width: 768px) {
    body {
        background: #080b0d;
    }

    .site-shell {
        width: 100%;
        overflow-x: hidden;
        box-shadow: none;
    }

    .topbar {
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px 14px;
        background:
            linear-gradient(180deg, rgba(5, 7, 8, .92), rgba(5, 7, 8, .98)),
            url('../imagenes/cl-skyline.jpg') center / cover no-repeat;
    }

    .brand {
        justify-content: center;
        gap: 12px;
        text-align: left;
    }

    .brand img {
        width: 84px;
        height: 84px;
        border-radius: 12px;
    }

    .brand b,
    .brand strong {
        font-size: clamp(30px, 8vw, 38px);
        letter-spacing: -1px;
    }

    .brand small {
        margin-top: 8px;
        font-size: 14px;
        letter-spacing: 5px;
    }

    .server-box {
        width: 100%;
        min-height: 78px;
        display: flex !important;
        padding: 12px 14px;
        gap: 12px;
        border-radius: 10px;
    }

    .server-icon {
        font-size: 30px;
    }

    .server-box small {
        margin-bottom: 4px;
        font-size: 11px;
    }

    .server-box a {
        font-size: 15px;
    }

    .server-box p {
        margin-top: 5px;
        font-size: 12px;
    }

    .server-box em {
        margin-left: 12px;
    }

    .login-card {
        width: 100%;
        min-height: 68px;
        display: flex !important;
        justify-content: flex-start;
        gap: 14px;
        padding: 12px 16px;
        border-radius: 10px;
    }

    .login-card > span {
        font-size: 30px;
    }

    .login-card b {
        font-size: 16px;
    }

    .login-card small {
        margin-top: 4px;
        font-size: 12px;
    }

    .main-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        min-height: 0;
        padding: 8px 10px 10px;
        border-bottom: 0;
        background: #0b0e10;
    }

    .main-nav a {
        min-width: 0;
        min-height: 56px;
        gap: 10px;
        padding: 0 8px;
        border: 1px solid #30363a;
        border-radius: 8px;
        font-size: 14px;
        white-space: nowrap;
    }

    .main-nav a.active,
    .main-nav a:hover {
        border-color: var(--o);
    }

    .content-grid {
        display: block;
        padding: 10px;
    }

    .hero {
        min-height: 470px;
        border-radius: 12px;
        background-position: 62% center;
    }

    .hero::before {
        background: linear-gradient(90deg, rgba(5, 7, 8, .98) 0, rgba(5, 7, 8, .82) 44%, rgba(5, 7, 8, .18) 78%, rgba(5, 7, 8, .04));
    }

    .hero-copy {
        width: 100%;
        padding: 24px 20px 155px;
    }

    .hero-copy > span {
        font-size: 18px;
    }

    .hero h1 {
        max-width: 360px;
        font-size: clamp(34px, 9vw, 44px);
    }

    .hero-copy p {
        max-width: 310px;
        font-size: 16px;
    }

    .hero-copy > a {
        width: min(100%, 320px);
        padding: 15px 18px;
        text-align: center;
    }

    .hero-stats {
        left: 12px;
        right: 12px;
        bottom: 12px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        background: rgba(7, 9, 10, .94);
    }

    .hero-stats div {
        min-width: 0;
        justify-content: center;
        gap: 7px;
        padding: 11px 6px;
        font-size: 22px;
    }

    .hero-stats span {
        font-size: 10px;
    }

    .why {
        padding: 16px;
    }

    .why h2 {
        font-size: 18px;
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .feature-grid article {
        min-height: 145px;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 16px 10px;
        text-align: center;
    }

    .feature-grid strong {
        font-size: 32px;
    }

    aside {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 12px;
    }

    aside .vip-card,
    aside .vip-card[style] {
        width: 100%;
        min-height: 150px;
        margin: 0 !important;
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 18px !important;
    }

    .vip-badge {
        width: 78px;
        height: 90px;
        font-size: 23px;
    }

    .vip-card h3 {
        font-size: 18px;
    }

    .vip-card p {
        margin: 8px 0;
        font-size: 14px;
    }

    .vip-card a {
        padding: 11px 14px !important;
        font-size: 13px;
    }

    .options-panel {
        width: 100%;
        order: 3;
    }

    .options-panel h2 {
        padding: 15px 18px;
        font-size: 18px;
    }

    .options-panel a {
        min-height: 52px;
        padding: 0 16px;
        font-size: 15px;
    }

    footer {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 22px 16px;
        text-align: center;
    }

    .mini-brand {
        justify-content: center;
    }

    .social {
        text-align: center;
    }
}

@media (max-width: 430px) {
    .brand img {
        width: 72px;
        height: 72px;
    }

    .brand b,
    .brand strong {
        font-size: 30px;
    }

    .brand small {
        font-size: 12px;
        letter-spacing: 4px;
    }

    .main-nav a {
        font-size: 12px;
    }

    .hero {
        min-height: 500px;
        background-position: 66% center;
    }

    .hero-copy {
        padding: 22px 18px 165px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-copy p {
        max-width: 270px;
        font-size: 15px;
    }

    .hero-stats div {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

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

    aside .vip-card,
    aside .vip-card[style] {
        min-height: 0;
        align-items: center;
    }

    .vip-badge {
        width: 70px;
        height: 82px;
    }
}

/* ==========================================================
   AJUSTE FINAL ANDROID: CABECERA, MENÚ Y FOTO MÁS COMPACTOS
   ========================================================== */
@media (max-width: 768px) {
    .topbar {
        height: auto !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 10px 12px !important;
    }

    .brand {
        min-height: 0 !important;
        justify-content: center !important;
        gap: 9px !important;
        padding: 0 !important;
    }

    .brand img {
        width: 55px !important;
        height: 55px !important;
        border-radius: 9px !important;
    }

    .brand span {
        line-height: .88 !important;
    }

    .brand b,
    .brand strong {
        font-size: 25px !important;
        letter-spacing: -1px !important;
    }

    .brand small {
        margin-top: 7px !important;
        font-size: 10px !important;
        letter-spacing: 4px !important;
    }

    .server-box {
        width: 100% !important;
        min-height: 56px !important;
        padding: 8px 12px !important;
        gap: 10px !important;
        border-radius: 7px !important;
    }

    .server-icon {
        font-size: 25px !important;
    }

    .server-box small {
        margin-bottom: 3px !important;
        font-size: 10px !important;
    }

    .server-box a {
        font-size: 13px !important;
    }

    .server-box p {
        margin-top: 4px !important;
        font-size: 11px !important;
    }

    .server-box em {
        margin-left: 10px !important;
    }

    .login-card {
        width: 100% !important;
        height: 52px !important;
        min-height: 52px !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        padding: 7px 14px !important;
        border-radius: 7px !important;
    }

    .login-card > span {
        font-size: 25px !important;
    }

    .login-card b {
        font-size: 14px !important;
    }

    .login-card small {
        margin-top: 2px !important;
        font-size: 11px !important;
    }

    .main-nav {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        height: auto !important;
        padding: 7px 10px !important;
        overflow: visible !important;
        border-bottom: 0 !important;
        background: #0b0e10 !important;
    }

    .main-nav a {
        width: 100% !important;
        min-width: 0 !important;
        height: 44px !important;
        padding: 0 6px !important;
        gap: 7px !important;
        border: 1px solid #30363a !important;
        border-radius: 7px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    .content-grid {
        padding-top: 6px !important;
    }

    .hero {
        height: 335px !important;
        min-height: 335px !important;
        padding-bottom: 0 !important;
        background-position: 62% center !important;
    }

    .hero:before {
        background: linear-gradient(90deg, rgba(5,7,8,.96) 0, rgba(5,7,8,.78) 48%, rgba(5,7,8,.10) 100%) !important;
    }

    .hero-copy {
        width: 68% !important;
        height: 100% !important;
        padding: 18px 14px 92px !important;
    }

    .hero-copy > span {
        font-size: 14px !important;
    }

    .hero h1 {
        margin: 5px 0 7px !important;
        font-size: 29px !important;
        line-height: 1.02 !important;
    }

    .hero-copy i {
        width: 42px !important;
        height: 3px !important;
        margin: 8px 0 !important;
    }

    .hero-copy p {
        max-width: 260px !important;
        margin: 7px 0 !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
    }

    .hero-copy > a {
        width: auto !important;
        margin-top: 6px !important;
        padding: 11px 14px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    .hero-stats {
        position: absolute !important;
        left: 10px !important;
        right: 10px !important;
        bottom: 9px !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    .hero-stats div {
        min-width: 0 !important;
        justify-content: center !important;
        gap: 5px !important;
        padding: 8px 4px !important;
        font-size: 17px !important;
        text-align: center !important;
    }

    .hero-stats span {
        font-size: 9px !important;
    }

    .hero-stats b {
        margin-top: 2px !important;
        font-size: 9px !important;
    }
}

@media (max-width: 430px) {
    .topbar {
        padding: 8px 10px !important;
    }

    .brand img {
        width: 50px !important;
        height: 50px !important;
    }

    .brand b,
    .brand strong {
        font-size: 23px !important;
    }

    .main-nav a {
        height: 42px !important;
        font-size: 11px !important;
    }

    .hero {
        height: 315px !important;
        min-height: 315px !important;
        background-position: 66% center !important;
    }

    .hero-copy {
        width: 72% !important;
        padding: 15px 12px 86px !important;
    }

    .hero h1 {
        font-size: 26px !important;
    }

    .hero-copy p {
        max-width: 225px !important;
        font-size: 12px !important;
    }

    .hero-copy > a {
        padding: 10px 11px !important;
        font-size: 11px !important;
    }
}
