/* ----- FUENTES COSTOM DE SOON ----- */
@font-face {
  font-family: 'soonfont'; /* El nombre que tú quieras inventar para usarla */
  src: url('/fonts/Berani.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'soonfont2'; /* El nombre que tú quieras inventar para usarla */
  src: url('/fonts/BBHBogle-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'soonfont3'; /* El nombre que tú quieras inventar para usarla */
  src: url('/fonts/BebasNeue-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'soonfont4'; /* El nombre que tú quieras inventar para usarla */
  src: url('/fonts/MinecraftStandard.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}







/* ----- ANIMACION DE FLOTAR ----- */
@keyframes floatRandom {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(3deg);
  }
}

/* Animación de brillo (glow) parpadeante */
@keyframes glowBlink {
  0%, 100% {
    filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.3));
    opacity: 0.7;
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(239, 68, 68, 0.8));
    opacity: 1;
  }
}

/* Clase base que une ambas animaciones */
.floating-glow {
  animation-name: floatRandom, glowBlink;
  animation-timing-function: ease-in-out, ease-in-out;
  animation-iteration-count: infinite, infinite;
}






/* ----- CONTENEDOR DE PARTICULAS Y EFECTO DE FUEGO ABAJO ----- */
.fire-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999999;
    overflow: hidden;
}

/* GLOW EN LA BASE SIMULANDO LLAMAS */
.base-flames-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, rgba(255, 40, 0, 0.4), rgba(255, 140, 0, 0.2), transparent);
    animation: base-flame-flicker 0.4s infinite alternate ease-in-out;
    filter: blur(30px);
    pointer-events: none;
}

@keyframes base-flame-flicker {
    0% {
        opacity: 0.4;
        transform: scaleY(0.95);
    }
    100% {
        opacity: 0.8;
        transform: scaleY(1.1);
    }
}

/* ANIMACIONES DE LAS PARTÍCULAS */
@keyframes rise-fire-fast {
    0% {
        transform: translateY(0px) scale(calc(0.5 * var(--size, 1))) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    80% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(-100vh) scale(calc(1.3 * var(--size, 1))) rotate(50deg);
        opacity: 0;
    }
}

@keyframes turbulence {
    0%, 100% {
        margin-left: 0px;
    }
    25% {
        margin-left: -25px;
    }
    75% {
        margin-left: 25px;
    }
}

@keyframes fire-glow-blink {
    0%, 100% {
        filter: drop-shadow(0 0 6px #fff700) drop-shadow(0 0 12px #ff5500) drop-shadow(0 0 20px #ff2a00);
    }
    50% {
        filter: drop-shadow(0 0 14px #ffcc00) drop-shadow(0 0 28px #ff3300) drop-shadow(0 0 45px #ff0055);
    }
}

/* ESTILOS DE LAS PARTÍCULAS PNG */
.fire-image {
    position: absolute;
    bottom: -40px;
    width: calc(25px * var(--size, 1)); /* Tamaño base de la imagen escalable */
    height: calc(25px * var(--size, 1));
    animation: 
        rise-fire-fast 2.5s infinite ease-in-out,
        turbulence 1.2s infinite ease-in-out alternate,
        fire-glow-blink 0.5s infinite alternate;
}

.fire-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: color-dodge;
    /* Efecto opcional para que la imagen PNG también brille con el fuego */
    filter: drop-shadow(0 0 5px rgba(255, 120, 0, 0.7)); 
}

/* ESTILOS DE LOS PALITOS */
.fire-stick {
    position: absolute;
    bottom: -40px;
    width: calc(2px * var(--size, 1));
    height: calc(1px * var(--size, 1));
    background: linear-gradient(to top, #ff0000, #ff8800, #ffff00);
    border-radius: 4px;
    animation: 
        rise-fire-fast 2.8s infinite ease-in-out,
        turbulence 1.3s infinite ease-in-out alternate,
        fire-glow-blink 0.5s infinite alternate;
}

/* ESTILOS DE LAS ESTRELLAS */
.fire-star {
    position: absolute;
    bottom: -40px;
    width: calc(8px * var(--size, 1));
    height: calc(8px * var(--size, 1));
    background-color: rgb(255, 0, 0);
    clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
    animation: 
        rise-fire-fast 2.1s infinite linear,
        turbulence 0.9s infinite ease-in-out alternate,
        fire-glow-blink 0.3s infinite alternate;
}







/* ----- IMAGENES Y ANIMACIONES DE LOS COSTADOS [IZQ Y DER] ----- */
.side-arm-layer {
    position: absolute;
    width: 250px; /* Ajusta el tamaño de las manos/brazos según prefieras */
    height: auto;
    z-index: 5; /* Ajusta la capa (detrás o delante del contenido) */
    pointer-events: none; /* Permite hacer clic a través de las imágenes */
    filter: drop-shadow(0 0 30px rgba(255, 68, 0, 0.541));
}

.side-arm-layer img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* --- LADO IZQUIERDO --- */
.side-arm-layer.cadenar {
    left: -0px;
    width: 100px;
    top: 20%;
}

/* --- LADO DERECHO --- */
.side-arm-layer.cadenad {
    right: -0px;
    width: 120px;
    top: 60%;

}

/* --- LADO DERECHO --- */
.side-arm-layer.cadenaduno {
    right: -50px;
    width: 200px;
    top: 23%;
    
}

/* --- LADO DERECHO --- */
.side-arm-layer.cadenaddos {
    left: 0px;
    filter: blur(1px);
    scale: calc(2);
    bottom: 5.5%;
    z-index: inherit;
    
}


/* --- LADO IZQUIERDO --- */
.side-arm-layer.left {
    left: -80px;
    top: 12%;
    transform-origin: top left; /* Pivote en el codo/hombro superior derecho */
    animation: combined-action-left 10s ease-in-out infinite;
}

/* --- LADO IZQUIERDO --- */
.side-arm-layer.leftuno {
    left: -100px;
    top: 69%;
    scale: calc(1);
    transform: rotateX('25deg');
    transform-origin: top left; /* Pivote en el codo/hombro superior derecho */
    animation: combined-action-left 18s ease-in-out infinite;
}

/* --- LADO DERECHO --- */
.side-arm-layer.right {
    right: -85px;
    top: 45%;
    transform-origin: top right; /* Pivote en el codo/hombro superior izquierdo */
    animation: combined-action-right 12s ease-in-out infinite;
}

/* --- LADO DERECHO --- */
.side-arm-layer.rightuno {
    right: -105px;
    bottom: 1%;
    width: 180px;
    transform-origin: top right; /* Pivote en el codo/hombro superior izquierdo */
    animation: combined-action-right 20s ease-in-out infinite;
}

/* --- LADO DERECHO --- */
.side-arm-layer.rightdos {
    right: -50px;
    top: 10%;
    z-index: -10;
    width: 200px;
    transform-origin: top right; /* Pivote en el codo/hombro superior izquierdo */
    animation: combined-action-right 16s ease-in-out infinite;
}

/* --- pagina 400 --- */
.side-arm-layer.rightuno2 {
    right: 45%;
    bottom: -40px;
    width: 60px;
    transform-origin: bottom right; /* Pivote en el codo/hombro superior izquierdo */
    animation: combined-action-right 18s ease-in-out infinite;
}


/* ==========================================================
   ANIMACIONES COMBINADAS: MOVIMIENTO CONSTANTE + RASGUÑO
   ========================================================== */

/* --- SECUENCIA LADO IZQUIERDO --- */
@keyframes combined-action-left {
    /* 1. Respiración / Movimiento lento inicial */
    0%, 100% { 
        transform: rotate(0deg) translateY(0); 
    }
    20% { 
        transform: rotate(4deg) translateY(5px); 
    }
    40% { 
        transform: rotate(-3deg) translateY(-4px); 
    }
    55% { 
        transform: rotate(6deg) translateY(2px); 
    }

    /* 2. ¡EL RASGUÑO RÁPIDO (Aparece de la nada)! */
    58% { 
        transform: rotate(-14deg) translateX(40px) translateY(-5px); 
    }
    62% { 
        transform: rotate(12deg) translateX(-10px) translateY(5px); 
    }
    65% { 
        transform: rotate(-4deg) translateX(15px) translateY(0); 
    }

    /* 3. Vuelve al movimiento sutil antes de repetir el ciclo */
    75% { 
        transform: rotate(3deg) translateY(-3px); 
    }
    90% { 
        transform: rotate(-2deg) translateY(4px); 
    }
}


/* --- SECUENCIA LADO DERECHO --- */
@keyframes combined-action-right {
    /* 1. Respiración / Movimiento lento inicial (desfasado del izquierdo) */
    0%, 100% { 
        transform: rotate(0deg) translateY(0); 
    }
    25% { 
        transform: rotate(-5deg) translateY(-4px); 
    }
    45% { 
        transform: rotate(4deg) translateY(6px); 
    }

    /* 2. ¡EL RASGUÑO RÁPIDO (Aparece de la nada)! */
    50% { 
        transform: rotate(14deg) translateX(-40px) translateY(-5px); 
    }
    54% { 
        transform: rotate(-12deg) translateX(10px) translateY(5px); 
    }
    57% { 
        transform: rotate(4deg) translateX(-15px) translateY(0); 
    }

    /* 3. Vuelve al movimiento sutil antes de repetir el ciclo */
    70% { 
        transform: rotate(-3deg) translateY(3px); 
    }
    85% { 
        transform: rotate(2deg) translateY(-4px); 
    }
}




/* Contenedor del botón con glow fijo al hacer hover */
.glow-btn-container {
  position: relative;
  border-radius: 0.75rem;
  background: transparent;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  display: inline-block;
}

.glow-btn-container:hover {
  transform: translateY(-2px);
}

/* Glow estático para el botón de Tienda (Fuego / Naranja) */
.fire-glow:hover {
  box-shadow: 0 0 100px rgba(242, 0, 0, 0.99), 0 0 50px rgb(255, 213, 0);
  border: 1px solid rgb(255, 155, 93);
}

/* Glow estático para el botón de Discord (Frío / Azul) */
.cool-glow:hover {
  box-shadow: 0 0 100px rgba(0, 217, 255, 0.6), 0 0 50px rgb(2, 82, 255);
  border: 1px solid rgb(114, 229, 255);
}

/* Estilo limpio para el enlace interior */
.glow-btn-inner {
  position: relative;
  z-index: 1;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-weight: 700;
  color: white;
}




/* --- CONTENEDOR GENERAL DE LA SECCIÓN --- */
.server-hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 560px; /* Ampliado ligeramente para dar espacio al scroll */
    position: relative;
    padding: 30px;
    gap: 40px;
    box-sizing: border-box;
    overflow: hidden;
}

/* --- FONDO DE BIENVENIDA --- */
.welcome-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.bg-welcome-img {
    width: 50%;
    object-fit: cover;
    mix-blend-mode: screen;
    opacity: 0.8;
}

/* --- CENTRO: LOGO Y FONDO GIRATORIO CON GLOW --- */
.center-hero-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    filter: drop-shadow(0 0 30px rgb(250, 0, 104));
    justify-content: center;
    align-items: center;
    z-index: 3;
}

/* Imagen de fondo dando vueltas con Glow */
.rotating-bg-glow {
    position: absolute;
    width: 70%;
    height: 70%;
    scale: calc(1.2);
    opacity: .6;
    animation: rotate-bg 20s linear infinite, glow-pulse 2s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes rotate-bg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo-wrapper {
    position: relative;
    z-index: 2;
    width: 70%;
    height: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-logo {
    width: 100%;
    scale: calc(1.4);
    height: auto;
    filter: drop-shadow(0 0 30px rgba(255, 196, 125, 0.61));
    animation: logo-float 3s ease-in-out infinite alternate;
}

@keyframes logo-float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-22px); }
}

/* --- ANIMACIÓN DE SCROLL DE MOUSE --- */
.scroll-down-container {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 4;
    opacity: 0.8;
    animation: bounce-slow 2s infinite ease-in-out;
}

.mouse-icon {
    width: 19px;
    height: 34px;
    border: 1px solid rgb(255, 255, 255);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
}

.mouse-wheel {
    width: 3px;
    height: 7px;
    background-color: #ff0101; /* Rojo acorde a la temática de Soon Network */
    border-radius: 2px;
    filter: drop-shadow(0 0 10px rgb(255, 0, 0));
    animation: scroll-wheel 1.5s infinite;
}

.scroll-text {
    font-size: 9px;
    color: rgb(255, 255, 255);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

/* Keyframes para el movimiento interno de la rueda y rebote del mouse */
@keyframes scroll-wheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(6px);
        opacity: 0;
    }
}

@keyframes bounce-slow {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* --- RESPONSIVE PARA MÓVILES --- */
@media (max-width: 768px) {
    .server-hero-section {
        flex-direction: column;
        gap: 25px;
        min-height: 440px;
    }
    .left-widget, .right-widget {
        flex-direction: row;
        text-align: left;
    }
}



/* ----- ANIMACION DEL GLOW DEL PERSONAJE ----- */
@keyframes colorGlowBack {
  0% { 
    filter: drop-shadow(0 0 15px rgba(236, 72, 153, 0.6)); /* Rosa */
  }
  33% { 
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.6)); /* Azul */
  }
  66% { 
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.6)); /* Morado */
  }
  100% { 
    filter: drop-shadow(0 0 15px rgba(236, 72, 153, 0.6)); /* Rosa */
  }
}

.animate-color-glow-back {
  animation: colorGlowBack 6s infinite ease-in-out;
}


.toast {
    position: fixed;
    bottom: 20px;       /* Lo manda hacia abajo */
    right: 20px;        /* Lo manda hacia la derecha */
    left: auto;         /* Quita cualquier centrado o alineación izquierda previa */
    transform: none;    /* Remueve transformaciones de centrado si las tenía */
    z-index: 9999;
    /* ... tus demás estilos (colores, padding, bordes, etc.) ... */
}




/* ----- ANIMACION DE PULSO DEL GLOW DEL PERSONAJE ----- */
@keyframes pulseRotateGlow {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.75;
    }
    50% {
        transform: scale(1.12) rotate(180deg);
        opacity: 1;
        filter: brightness(1.25);
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 0.75;
    }
}

.animate-pulse-rotate-glow {
    animation: pulseRotateGlow 8s linear infinite;
}