/* ==========================================================================
   TERRANOVA MC — Tema "Voxel Moderno"
   --------------------------------------------------------------------------
   Esencia Minecraft sin caer en el pixel-art retro de los 90: cubos
   isométricos con sombra suave (construidos 100% en CSS, sin texturas de
   Mojang), paleta atmosférica de bioma (bosque / antorcha / diamante),
   tipografía blocky pero elegante, y divisores de sección con silueta de
   terreno escalonado como firma visual.
   ========================================================================== */

:root {
    /* --- Paleta ------------------------------------------------------------ */
    --bg:            #0c1210;
    --bg-deep:       #070b09;
    --surface:       #141d17;
    --surface-2:     #1c2820;
    --border-soft:   #2a382e;

    --emerald:       #34d399;
    --emerald-deep:  #0f9c6c;
    --emerald-glow:  #34d39955;

    --amber:         #f5b942;
    --amber-deep:    #c9861d;

    --diamond:       #46e0d1;
    --diamond-deep:  #1c9c90;

    --danger:        #ef5350;

    --text:          #eef4ef;
    --text-dim:      #a3b4a7;
    --text-faint:    #647069;

    --font-display: 'Bungee', 'Space Grotesk', sans-serif;
    --font-body:    'Space Grotesk', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;

    --radius: 10px;
    --radius-lg: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
}

/* --- Fondo ambiental: atardecer de bioma con silueta de terreno --------- */
.bg-lights {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 900px 500px at 50% -10%, #1f4d3855 0%, transparent 60%),
        radial-gradient(ellipse 700px 400px at 90% 10%, #f5b94211 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
}
.light-orb { display: none; }

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(#ffffff05 1px, transparent 1px),
        linear-gradient(90deg, #ffffff05 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 65%);
}

/* --- Utilidades ------------------------------------------------------------ */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; top: -100px; left: 1rem;
    background: var(--emerald); color: #04140d; font-weight: 700;
    padding: 0.7rem 1.2rem; border-radius: 8px; z-index: 999; transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--diamond); outline-offset: 2px; border-radius: 4px;
}

.highlight { color: var(--emerald); }
.text-gradient {
    background: linear-gradient(135deg, var(--amber) 0%, #ffe08a 50%, var(--amber) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ==========================================================================
   CUBO ISOMÉTRICO — la pieza de firma, construida con 3 caras CSS puras
   ========================================================================== */
.iso-cube-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.5rem;
}
.iso-cube {
    width: 84px;
    height: 84px;
    position: relative;
    transform-style: preserve-3d;
    animation: cube-float 4s ease-in-out infinite;
}
.iso-face {
    position: absolute;
    width: 60px;
    height: 60px;
}
.iso-top {
    background: linear-gradient(135deg, var(--emerald) 0%, #6ee8b8 100%);
    top: 0; left: 12px;
    transform: rotateX(60deg) rotateZ(45deg);
    border-radius: 4px;
}
.iso-left {
    background: linear-gradient(135deg, var(--emerald-deep) 0%, var(--emerald) 100%);
    top: 32px; left: -10px;
    transform: rotateY(-30deg) skewY(20deg);
    border-radius: 3px;
    opacity: 0.92;
}
.iso-right {
    background: linear-gradient(135deg, #0a6b4c 0%, var(--emerald-deep) 100%);
    top: 32px; left: 34px;
    transform: rotateY(30deg) skewY(-20deg);
    border-radius: 3px;
    opacity: 0.85;
}
.iso-shadow {
    width: 70px;
    height: 16px;
    margin: 0.6rem auto 0;
    background: radial-gradient(ellipse, #00000066 0%, transparent 75%);
    animation: shadow-pulse 4s ease-in-out infinite;
}
@keyframes cube-float {
    0%, 100% { transform: translateY(0) rotateZ(0deg); }
    50% { transform: translateY(-10px) rotateZ(4deg); }
}
@keyframes shadow-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.85); opacity: 0.6; }
}

/* Cubo pequeño reutilizable (íconos de sección, logo) ---------------------- */
.iso-cube-sm {
    width: 26px; height: 26px; position: relative; transform-style: preserve-3d; flex-shrink: 0;
}
.iso-cube-sm .iso-face { width: 18px; height: 18px; }
.iso-cube-sm .iso-top { top: 0; left: 4px; transform: rotateX(60deg) rotateZ(45deg); border-radius: 2px; }
.iso-cube-sm .iso-left { top: 10px; left: -3px; transform: rotateY(-30deg) skewY(20deg); border-radius: 1px; opacity: 0.92; }
.iso-cube-sm .iso-right { top: 10px; left: 11px; transform: rotateY(30deg) skewY(-20deg); border-radius: 1px; opacity: 0.85; }

/* ==========================================================================
   NAV
   ========================================================================== */
.header-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #0c1210cc;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
}
.navbar {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 0.7rem; }
.logo-icon { display: none; }
.logo::before {
    content: '';
    width: 26px; height: 26px;
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-deep) 100%);
    border-radius: 6px;
    box-shadow: 0 2px 8px var(--emerald-glow);
}
.logo-txt { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.5px; }
.logo-sub { color: var(--text-dim); font-size: 0.9em; }

.nav-links { display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; }
.nav-item {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--text-dim);
    transition: background 0.15s ease, color 0.15s ease;
}
.nav-item:hover { color: var(--text); background: var(--surface); }
.nav-item.active { color: #04140d; background: var(--emerald); font-weight: 600; }
.nav-discord { color: #a6b1ff; }

.nav-toggle {
    display: none;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    color: var(--text);
    font-size: 1.1rem;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    cursor: pointer;
}

/* --- Botones: bloque elevado con sombra suave, sin bisel retro ------------ */
.btn-action, .btn-store-mini, .btn-buy, .btn-copy, .btn-auth-discord,
.btn-logout, .link-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: #04140d;
    background: var(--emerald);
    border: none;
    border-radius: var(--radius);
    padding: 0.85rem 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 0 var(--emerald-deep), 0 8px 16px -6px var(--emerald-glow);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-action:hover, .btn-store-mini:hover, .btn-buy:hover, .btn-copy:hover,
.btn-auth-discord:hover, .btn-logout:hover, .link-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--emerald-deep), 0 12px 20px -6px var(--emerald-glow);
}
.btn-action:active, .btn-store-mini:active, .btn-buy:active, .btn-copy:active,
.btn-auth-discord:active, .link-form button[type="submit"]:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--emerald-deep);
}

.btn-store { background: var(--amber); box-shadow: 0 4px 0 var(--amber-deep), 0 8px 16px -6px #f5b94255; }
.btn-store:hover { box-shadow: 0 6px 0 var(--amber-deep), 0 12px 20px -6px #f5b94255; }
.btn-rules { background: var(--surface-2); color: var(--text); box-shadow: 0 4px 0 #0a0f0c; }
.btn-rules:hover { box-shadow: 0 6px 0 #0a0f0c; }
.btn-discord-large, .btn-auth-discord { background: #5865f2; color: #fff; box-shadow: 0 4px 0 #3a45b0; }
.btn-discord-large:hover, .btn-auth-discord:hover { box-shadow: 0 6px 0 #3a45b0; }
.btn-logout { background: var(--danger); box-shadow: 0 3px 0 #a33330; padding: 0.55rem 0.7rem; border-radius: 8px; }
.btn-store-mini { background: var(--diamond); color: #04211f; box-shadow: 0 4px 0 var(--diamond-deep); }
.btn-store-mini:hover { box-shadow: 0 6px 0 var(--diamond-deep); }
.btn-auth-discord { padding: 0.6rem 1.1rem; font-size: 0.85rem; border-radius: 8px; }

/* El color de fondo de btn-buy varía por rango (inline style en tienda.php);
   usamos una sombra neutra en vez de la verde fija para que combine con
   cualquier color. */
.btn-buy {
    box-shadow: 0 4px 0 #00000066, 0 8px 16px -6px #00000055;
    color: #0c1410;
}
.btn-buy:hover { box-shadow: 0 6px 0 #00000066, 0 12px 20px -6px #00000055; }
.btn-buy:active { box-shadow: 0 2px 0 #00000066; }

/* --- Sesión de usuario ------------------------------------------------------ */
.user-menu-pill {
    display: flex; align-items: center; gap: 0.4rem;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 0.3rem 0.4rem 0.3rem 0.3rem;
}
.user-link { display: flex; align-items: center; gap: 0.5rem; padding: 0 0.3rem; }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--emerald); }
.user-name { font-size: 0.9rem; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero-section {
    max-width: 880px;
    margin: 0 auto;
    padding: 4.5rem 1.5rem 3rem;
    text-align: center;
}
.hero-container { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }

.version-pill {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--emerald);
}
.pulse-dot, .status-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 0 4px var(--emerald-glow);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.4; transform: scale(0.85); } }

.main-title {
    font-size: 2.1rem;
    letter-spacing: 0.5px;
    text-shadow: 0 4px 24px #00000066;
}
@media (min-width: 640px) { .main-title { font-size: 3rem; } }

.main-description {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--amber);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.section-title {
    font-size: 1.6rem;
    margin-top: 0.7rem;
}
.section-head { text-align: center; margin-bottom: 2.6rem; }

/* --- Panel base reutilizado (GUI card moderna) ----------------------------- */
.gui-panel, .feature-card, .rank-card, .store-card, .rule-item, .profile-card,
.server-status-box, .user-welcome-banner, .ip-action-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 0 #ffffff08 inset, 0 12px 30px -18px #000000aa;
}

.server-status-box { width: 100%; padding: 1.4rem; text-align: left; }
.status-header {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 0.8rem; margin-bottom: 1.1rem; padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--border-soft);
}
.status-indicator-wrap { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.status-light { width: 10px; height: 10px; border-radius: 50%; }
.status-light.online { background: var(--emerald); box-shadow: 0 0 10px var(--emerald); }
.status-light.offline { background: var(--danger); }
.players-badge {
    display: flex; align-items: center; gap: 0.5rem;
    background: var(--surface-2);
    border-radius: 8px;
    padding: 0.4rem 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.ip-action-card {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem; padding: 1.1rem 1.3rem; cursor: pointer;
    font: inherit; color: inherit; text-align: left;
    transition: border-color 0.15s ease;
}
.ip-action-card:hover { border-color: var(--emerald); }
.ip-sub { display: block; font-size: 0.78rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 1.5px; }
.ip-value { font-family: var(--font-mono); font-size: 1.3rem; color: var(--amber); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 0.4rem; }

.user-welcome-banner { width: 100%; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; text-align: left; }
.welcome-avatar-wrapper { position: relative; flex-shrink: 0; }
.banner-avatar { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--emerald); }
.welcome-avatar-wrapper .status-dot { position: absolute; bottom: -2px; right: -2px; }
.welcome-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: var(--font-mono); font-size: 0.75rem; color: var(--emerald);
    text-transform: uppercase; letter-spacing: 1px;
}
.welcome-info h3 { font-size: 1.3rem; margin-top: 0.35rem; font-family: var(--font-body); font-weight: 700; }
.welcome-meta { color: var(--text-dim); font-size: 0.92rem; margin: 0.25rem 0 0; }
.welcome-meta a { color: var(--diamond); }

/* ==========================================================================
   DIVISOR DE TERRENO ESCALONADO — firma visual entre secciones
   ========================================================================== */
.features-section {
    position: relative;
    padding-top: 5rem;
}
.features-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 28px;
    background: var(--surface-2);
    clip-path: polygon(
        0% 100%, 0% 40%, 5% 40%, 5% 10%, 10% 10%, 10% 60%, 15% 60%, 15% 20%,
        20% 20%, 20% 80%, 25% 80%, 25% 0%, 30% 0%, 30% 50%, 35% 50%, 35% 30%,
        40% 30%, 40% 70%, 45% 70%, 45% 10%, 50% 10%, 50% 45%, 55% 45%, 55% 20%,
        60% 20%, 60% 65%, 65% 65%, 65% 5%, 70% 5%, 70% 55%, 75% 55%, 75% 25%,
        80% 25%, 80% 75%, 85% 75%, 85% 15%, 90% 15%, 90% 60%, 95% 60%, 95% 35%,
        100% 35%, 100% 100%
    );
    opacity: 0.5;
}

/* ==========================================================================
   SECCIONES DE CONTENIDO
   ========================================================================== */
.features-section, .ranks-section, .page-container {
    max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem;
}
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.feature-card {
    padding: 1.8rem;
    transition: transform 0.18s ease, border-color 0.18s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--emerald); }
.card-icon-wrap {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--surface-2), var(--bg-deep));
    border-radius: 10px;
    font-size: 1.2rem;
    color: var(--amber);
    margin-bottom: 1.1rem;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; font-family: var(--font-body); font-weight: 700; }
.feature-card p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; }

/* --- Rangos ---------------------------------------------------------------- */
.ranks-showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.1rem; }
.rank-card { padding: 1.4rem 1rem; text-align: center; transition: transform 0.18s ease, border-color 0.18s ease; }
.rank-card:hover { transform: translateY(-4px); }
.rank-top {
    width: 42px; height: 42px; margin: 0 auto 0.8rem;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-2); border-radius: 10px; font-size: 1.1rem;
}
.rank-card h4 { font-size: 0.9rem; margin-bottom: 0.3rem; font-family: var(--font-body); font-weight: 700; }
.rank-card span { color: var(--text-faint); font-size: 0.82rem; }
.rank-founder .rank-top, .rank-founder h4 { color: var(--amber); }
.rank-founder:hover { border-color: var(--amber); }
.rank-admin .rank-top, .rank-admin h4 { color: var(--danger); }
.rank-admin:hover { border-color: var(--danger); }
.rank-streamer .rank-top, .rank-streamer h4 { color: #b39cff; }
.rank-streamer:hover { border-color: #b39cff; }
.rank-booster .rank-top, .rank-booster h4 { color: #ff9ecf; }
.rank-booster:hover { border-color: #ff9ecf; }
.rank-veterano .rank-top, .rank-veterano h4 { color: var(--diamond); }
.rank-veterano:hover { border-color: var(--diamond); }
.rank-helper .rank-top, .rank-helper h4 { color: var(--emerald); }
.rank-helper:hover { border-color: var(--emerald); }

.ranks-cta { text-align: center; margin-top: 2.6rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.ranks-cta p { color: var(--text-dim); font-size: 1.05rem; }

/* --- Tienda ----------------------------------------------------------------- */
.page-header { text-align: center; margin-bottom: 2.6rem; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.store-card {
    padding: 0; overflow: hidden;
    transition: transform 0.18s ease;
    border-width: 2px;
}
.store-card:hover { transform: translateY(-4px); }
.store-card-header { padding: 1.5rem; text-align: center; border-bottom: 1px solid var(--border-soft); }
.store-icon { font-size: 1.9rem; display: block; margin-bottom: 0.5rem; }
.store-card-header h2 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; }
.store-price { font-family: var(--font-mono); font-size: 1.15rem; color: var(--amber); margin-top: 0.6rem; font-weight: 700; }
.store-card-body { padding: 1.5rem; }
.perks-list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.perks-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.92rem; color: var(--text-dim); }
.btn-buy { width: 100%; }

/* --- Reglas ------------------------------------------------------------------ */
.rules-list { display: flex; flex-direction: column; gap: 1rem; }
.rule-item { display: flex; align-items: flex-start; gap: 1.3rem; padding: 1.4rem; }
.rule-num {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--surface-2);
    -webkit-text-stroke: 1px var(--border-soft);
    flex-shrink: 0;
    width: 50px;
}
.rule-body h3 { font-size: 1.02rem; margin-bottom: 0.5rem; font-family: var(--font-body); font-weight: 700; }
.rule-body p { color: var(--text-dim); font-size: 0.95rem; margin: 0; line-height: 1.6; }

/* --- Perfil ------------------------------------------------------------------ */
.profile-card { padding: 2rem; max-width: 640px; margin: 0 auto; }
.profile-header { display: flex; align-items: center; gap: 1.2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-soft); margin-bottom: 1.5rem; }
.profile-avatar { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--emerald); }
.profile-info h2 { font-size: 1.3rem; font-family: var(--font-body); font-weight: 700; }
.profile-username { color: var(--text-dim); font-size: 0.95rem; margin: 0.25rem 0 0; }
.badge {
    display: inline-block; background: var(--surface-2);
    border-radius: 8px; padding: 0.4rem 0.8rem;
    font-family: var(--font-mono); font-size: 0.82rem; color: var(--diamond);
}
.profile-section h3 { font-size: 1.05rem; margin-bottom: 0.9rem; display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-body); font-weight: 700; }
.profile-desc { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 1.3rem; line-height: 1.6; }

.form-group { margin-bottom: 1.3rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-dim); }
.form-input {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    color: var(--text);
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 8px;
    transition: border-color 0.15s ease;
}
.form-input:focus { outline: none; border-color: var(--emerald); }
.link-form { display: flex; flex-direction: column; align-items: flex-start; }
.form-feedback { margin-top: 0.9rem; font-size: 0.9rem; min-height: 1.4em; font-weight: 500; }
.form-feedback.success { color: var(--emerald); }
.form-feedback.error { color: var(--danger); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-site { background: var(--surface); border-top: 1px solid var(--border-soft); margin-top: 3rem; }
.footer-inner {
    max-width: 1100px; margin: 0 auto; padding: 2.2rem 1.5rem;
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1.5rem;
}
.footer-brand { font-family: var(--font-display); font-size: 1.05rem; }
.footer-brand p { font-family: var(--font-body); color: var(--text-faint); font-size: 0.88rem; margin-top: 0.7rem; max-width: 340px; line-height: 1.6; }
.footer-links { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); font-size: 0.9rem; margin-right: 1.3rem; }
.footer-links a:last-child { margin-right: 0; }
.footer-links a:hover { color: var(--emerald); }
.footer-bottom {
    text-align: center; padding: 1.1rem; font-size: 0.82rem; color: var(--text-faint);
    border-top: 1px solid var(--border-soft);
}

/* ==========================================================================
   RESPONSIVE / MENÚ MÓVIL
   ========================================================================== */

/* --- Visor de skin 3D (perfil) --------------------------------------------- */
.skin-viewer-wrap {
    display: flex;
    justify-content: center;
    background: var(--surface-2);
    border-radius: var(--radius);
    padding: 1rem;
}
.skin-viewer-wrap canvas {
    cursor: grab;
    max-width: 100%;
}
.skin-viewer-wrap canvas:active { cursor: grabbing; }

/* --- FAQ: acordeón accesible nativo (<details>/<summary>) ----------------- */
.faq-list { display: flex; flex-direction: column; gap: 0.9rem; }
.faq-item { padding: 0; overflow: hidden; }
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-chevron { transition: transform 0.2s ease; color: var(--text-faint); flex-shrink: 0; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item[open] .faq-question { border-bottom: 1px solid var(--border-soft); }
.faq-answer {
    margin: 0;
    padding: 1.2rem 1.4rem;
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE / MENÚ MÓVIL
   ========================================================================== */
@media (max-width: 768px) {
    .navbar { flex-wrap: wrap; justify-content: space-between; }
    .nav-toggle { display: inline-flex; }
    .nav-links {
        flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0.4rem;
        max-height: 0; overflow: hidden; opacity: 0;
        transition: max-height 0.25s ease, opacity 0.2s ease;
    }
    .nav-links.is-open { max-height: 600px; opacity: 1; margin-top: 0.8rem; }
    .nav-item, .btn-auth-discord, .user-menu-pill { width: 100%; justify-content: center; border-radius: 8px; }
    .status-header { flex-direction: column; align-items: flex-start; }
    .ip-action-card { flex-direction: column; align-items: stretch; }
    .btn-copy { justify-content: center; }
    .skin-viewer-wrap canvas { width: 100%; height: auto; }
}
