/* ============================================
   PIZZA SERVER — ClassiCube
   Estilo: Retro Pixel + Gamer Inmersivo
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

/* ─── Reset & Base ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pizza-orange:  #FF6B00;
    --pizza-yellow:  #FFD700;
    --pizza-red:     #CC2200;
    --cheese:        #FFC740;
    --dark-bg:       #0a0800;
    --card-bg:       rgba(10, 6, 0, 0.82);
    --card-border:   rgba(255, 165, 0, 0.35);
    --glow-orange:   0 0 12px rgba(255, 107, 0, 0.8), 0 0 30px rgba(255, 107, 0, 0.4);
    --glow-yellow:   0 0 10px rgba(255, 215, 0, 0.7);
    --pixel:         'Press Start 2P', monospace;
    --vt:            'VT323', monospace;
}

/* ─── Background: pizzaserver.png ─── */
body {
    font-family: var(--pixel);
    background-color: var(--dark-bg);
    background-image: url('pizzaserver.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #f0e0b0;
    min-height: 100vh;
    overflow-x: hidden;
    cursor: crosshair;
}

/* ─── Dark vignette sobre la imagen ─── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.78) 100%),
        linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.75) 100%);
    pointer-events: none;
    z-index: 0;
}

/* ─── Scanlines retro ─── */
.scanlines {
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 3px,
        rgba(0, 0, 0, 0.18) 3px,
        rgba(0, 0, 0, 0.18) 4px
    );
    pointer-events: none;
    z-index: 1;
    animation: scanMove 8s linear infinite;
}

@keyframes scanMove {
    0%   { background-position: 0 0; }
    100% { background-position: 0 200px; }
}

/* ─── Eliminar overlay genérico si existe ─── */
.background-overlay {
    display: none;
}

/* ─── Container ─── */
.container {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* ─── Header ─── */
header {
    text-align: center;
    padding: 32px 20px 24px;
    position: relative;
}

header h1 {
    font-family: var(--pixel);
    font-size: clamp(1.4rem, 5vw, 2.4rem);
    color: var(--pizza-yellow);
    text-shadow:
        4px 4px 0 var(--pizza-red),
        var(--glow-yellow);
    letter-spacing: 3px;
    animation: titlePulse 3s ease-in-out infinite;
    margin-bottom: 12px;
}

@keyframes titlePulse {
    0%, 100% { text-shadow: 4px 4px 0 var(--pizza-red), 0 0 10px rgba(255,215,0,0.6); }
    50%       { text-shadow: 4px 4px 0 var(--pizza-red), 0 0 24px rgba(255,215,0,1), 0 0 50px rgba(255,107,0,0.6); }
}

.subtitle-shadow {
    font-family: var(--vt);
    font-size: 1.3rem;
    color: #d4b070;
    letter-spacing: 2px;
    text-shadow: 1px 1px 0 #000, 0 0 8px rgba(255,165,0,0.5);
    margin-top: 6px;
}

/* ─── Botón Volver ─── */
.back-btn {
    position: absolute;
    top: 0;
    left: 0;
    font-family: var(--pixel);
    font-size: 0.55rem;
    color: var(--cheese);
    text-decoration: none;
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--pizza-orange);
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.back-btn:hover {
    background: rgba(255, 107, 0, 0.25);
    box-shadow: var(--glow-orange);
    color: #fff;
}

/* ─── Cards base ─── */
.status-box,
.info-box,
.step-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 20px 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,200,80,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}
.status-box:hover,
.info-box:hover,
.step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.7), var(--glow-orange);
}

/* ─── Títulos pixel dentro de cards ─── */
.pixel-title {
    font-family: var(--pixel);
    font-size: 0.7rem;
    color: var(--pizza-orange);
    letter-spacing: 1px;
    margin-bottom: 14px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.8);
    border-bottom: 1px solid rgba(255,107,0,0.3);
    padding-bottom: 8px;
}

/* ─── Texto pixel ─── */
.pixel-text {
    font-family: var(--vt);
    font-size: 1.1rem;
    line-height: 1.65;
    color: #e8d8a0;
}
.pixel-text strong {
    color: var(--cheese);
    text-shadow: 0 0 6px rgba(255,199,64,0.5);
}

/* ─── Status box ─── */
#server-monitor {
    border-color: rgba(255,107,0,0.5);
}

.status-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.2);
}

.dot-on {
    background: #53FC18;
    box-shadow: 0 0 0 3px rgba(83,252,24,0.25), 0 0 14px #53FC18;
    animation: blink 1.8s ease-in-out infinite;
}

.dot-off {
    background: #ff4444;
    box-shadow: 0 0 0 3px rgba(255,68,68,0.2), 0 0 10px #ff4444;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

/* ─── Sección "Cómo unirse" ─── */
main.links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

main.links .pixel-title {
    font-size: 0.68rem;
    margin-bottom: 4px;
    border: none;
    padding: 0;
}

/* Steps con numeración visual */
.step-card {
    padding: 14px 20px;
    border-left: 3px solid var(--pizza-orange);
}

/* ─── Botones de link ─── */
.link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--pixel);
    font-size: 0.65rem;
    letter-spacing: 1px;
    padding: 16px 24px;
    border-radius: 6px;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.07) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}
.link-card:hover::before {
    transform: translateX(100%);
}

.link-card:hover {
    transform: translateY(-3px) scale(1.01);
    filter: brightness(1.15);
}
.link-card:active {
    transform: translateY(0) scale(0.98);
}

/* Botón unirse (naranja pizza) */
.pizza-server-btn {
    background: linear-gradient(135deg, #b84400 0%, #ff6b00 50%, #cc5500 100%);
    border-color: var(--pizza-yellow);
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.6);
    box-shadow: 0 4px 18px rgba(255,107,0,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
}
.pizza-server-btn:hover {
    box-shadow: var(--glow-orange), 0 8px 28px rgba(255,107,0,0.6);
}

/* Botón Discord (violeta) */
.discord-btn {
    background: linear-gradient(135deg, #3a2d7a 0%, #5865F2 50%, #3d4dc4 100%);
    border-color: rgba(88,101,242,0.7);
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
    box-shadow: 0 4px 18px rgba(88,101,242,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
.discord-btn:hover {
    box-shadow: 0 0 14px rgba(88,101,242,0.8), 0 8px 28px rgba(88,101,242,0.5);
}

/* Botón Instagram (degradado rosa/morado) */
.instagram-btn {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    border-color: rgba(253,29,29,0.6);
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
    box-shadow: 0 4px 18px rgba(131,58,180,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
.instagram-btn:hover {
    box-shadow: 0 0 14px rgba(253,29,29,0.7), 0 8px 28px rgba(131,58,180,0.5);
}

/* Botón WhatsApp (verde) */
.whatsapp-btn {
    background: linear-gradient(135deg, #075e54 0%, #25d366 50%, #128c7e 100%);
    border-color: rgba(37,211,102,0.6);
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
    box-shadow: 0 4px 18px rgba(37,211,102,0.35), inset 0 1px 0 rgba(255,255,255,0.1);
}
.whatsapp-btn:hover {
    box-shadow: 0 0 14px rgba(37,211,102,0.8), 0 8px 28px rgba(37,211,102,0.5);
}

/* Botón Telegram (azul Telegram) */
.telegram-btn {
    background: linear-gradient(135deg, #1a4f7a 0%, #229ed9 50%, #1a7ab5 100%);
    border-color: rgba(34,158,217,0.6);
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
    box-shadow: 0 4px 18px rgba(34,158,217,0.35), inset 0 1px 0 rgba(255,255,255,0.1);
}
.telegram-btn:hover {
    box-shadow: 0 0 14px rgba(34,158,217,0.8), 0 8px 28px rgba(34,158,217,0.5);
}

/* Botón Contacto (azul acero) */
.contacto-btn {
    background: linear-gradient(135deg, #1a3a5c 0%, #2e86de 50%, #1a5276 100%);
    border-color: rgba(46,134,222,0.6);
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
    box-shadow: 0 4px 18px rgba(46,134,222,0.35), inset 0 1px 0 rgba(255,255,255,0.1);
}
.contacto-btn:hover {
    box-shadow: 0 0 14px rgba(46,134,222,0.8), 0 8px 28px rgba(46,134,222,0.5);
}

/* ─── Footer ─── */
footer {
    text-align: center;
    padding-top: 10px;
}

.copyright {
    font-family: var(--pixel);
    font-size: 0.45rem;
    color: rgba(255,200,100,0.4);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ─── Animaciones de entrada ─── */
.fadeInUp {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s ease forwards;
    animation-delay: calc(var(--i, 1) * 0.1s);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0800; }
::-webkit-scrollbar-thumb { background: var(--pizza-orange); border-radius: 3px; }

/* ─── Responsive ─── */
@media (max-width: 500px) {
    header h1 { font-size: 1.1rem; }
    .pixel-title { font-size: 0.6rem; }
    .link-card { font-size: 0.55rem; padding: 14px 16px; }
    .back-btn { font-size: 0.45rem; }
    .pixel-text { font-size: 1rem; }
}
