* {
    --sb-track-color: #000000;
    --sb-thumb-color: #b10000;
    --sb-size: 10px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: var(--sb-size)
}

::-webkit-scrollbar-track {
    background: var(--sb-track-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--sb-thumb-color);
    border-radius: 3px;
}

@supports not selector(::-webkit-scrollbar) {
body {
    scrollbar-color: var(--sb-thumb-color)
                        var(--sb-track-color);}
}

::-webkit-scrollbar-thumb:hover {
    background-color: #cc0101;
}

::-webkit-scrollbar-thumb:active {
    background-color: #e90101;
}

header {
    border-bottom: #000000;
    z-index: 200;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0.45rem 2rem 0.45rem 1.27rem;
    border-bottom: 1px solid var
    (--border-color);
    position: fixed;
    top: 0;
    left: 0;
    background-color: white;
}

body {
    width: 100%;
    height: 100vh;
    background-color: #000000;
    color: #ffffff;
    font-family: "Comic Sans MS", cursive, sans-serif;
    z-index: 99;
}

footer {
    background-color: #1d1d1d98;
    font-size: 0.9em;
    margin-top: 0;
    padding: 20px 40px;
    width: 100%;
    position: relative;
    left: 0;
    right: 0;
    box-sizing: border-box;
}

hr {
	background: #1d1d1da6;
	width: 100%;
	height: 5px;
	border: #000000;
	margin: 0px 0;
	border-radius: 0px;
}

.ap {
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.ap:visited {
    color: #ffffff;
}

.ap:hover {
    color: #ff0000;
    transform: scale(1.2) rotate(-5deg) translateX(-5px);
}

img, video {
    -webkit-user-drag: none;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 60px;
    background: #1a1a1a;
    padding-top: -20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin-top: 5px;
}

.sidebar ul li {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    cursor: pointer;
}

.sidebar ul li img {
    width: 24px;
    height: 24px;
    filter: invert(1);
}

.sidebar ul li::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 70px;
    background: #000000;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid #ffffff;
}

.sidebar ul li::before {
    content: "";
    position: absolute;
    left: 60px;
    border: 6px solid transparent;
    border-right-color: #ffffff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar ul li:hover::after,
.sidebar ul li:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.redes {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.redes a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #00000000;
    border-radius: 50%;
    width: 2rem;
    height: 1rem;
}

.redes img {
    width: 1.5rem;
    height: 1.5rem;
    filter: invert(100%) sepia(20%) saturate(300%) hue-rotate(170deg);
    transition: all 0.3s ease;
}

.redes img:hover {
    transform: scale(1.2) rotate(15deg) translateX(5px);
    filter: invert(19%) sepia(99%) saturate(7486%) hue-rotate(2deg) brightness(102%) contrast(112%);
}

.rules {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 20px;
    gap: 8px;
    font-size: 15px;
}

.rules p {
    color: #ffffff;
    margin: 0;
}

.rules a {
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    display: inline-block;
}

.rules a:hover {
    color: #ff0000;
    transform: rotate(-3deg) translateX(-5px); /* 👈 efecto caerse */
}

.cristalpvp {
    margin: 0;
}

.cristal {
    text-align: left;
    font-size: 25px;
    margin: 0;
}

.contain {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh;
    margin: 0;
    padding: 0;
}

.contain figure {
    position: relative;
    height: 250px;
    width: 450px;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    margin: 10px;
}

.contain figure img {
    width: 100%;
    height: 100%;
    transition: all 500ms ease-out;
    margin: 0;
}

.contain figure video {
    width: 100%;
    height: 100%;
    transition: all 500ms ease-out;
    margin: 0;
}

.contain figure .capa {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: #000000af;
    opacity: 0;
    visibility: hidden;
    text-align: center;
}

.contain figure:hover > .capa {
    opacity: 1;
    visibility: visible;
}

.contain figure:hover > .capa h3 {
    margin-top: 70px;
    margin-bottom: 15px;
}

.contain figure:hover > img {
    transform: scale(1.3);
}

.contain figure:hover > video {
    transform: scale(1.3);
}

.contain figure .capa h3 {
    color: #ffffff;
    font-weight: 400;
    margin-bottom: 120px;
    transition: all 500ms ease-out;
    margin-top: 30px;
}

.contain figure .capa p {
    color: #ffffff;
    font-size: 15px;
    line-height: 1.5;
    width: 100%;
    max-width: 220px;
    margin: auto;
}

.animation {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animation__container {
    width: 700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1rem;
}

.item {
    background-color: #b10000;
    padding: 3rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item span {
    animation-duration: 2.5s;
    animation-fill-mode: both;
    animation-iteration-count: infinite;
    font-size: 2rem;
    font-weight: bold;
}

.puls {
    animation: pulse 2.5s infinite ease-in-out;
}

.item .bounce {
    animation-name: bounce;
}

.present {
    background: linear-gradient(to bottom, #ff00003f, #8f00003f);
    width: 750px;
    height: 350px; 
    padding: 0px;
    top: 50px;
    z-index: -1;
    margin-bottom: 0rem;
    margin-left: 10px;
    border-radius: 20px;
    border-color: #00000098;
    border-width: 3px;
    transition: all 0.4s ease;
    display: flex;
}

.present:hover {
    transform: scale(1.1) translateX(35px);;
}

.present-2 {
    width: 750px;
    height: 250px;
    margin-top: 30px;
    margin-bottom: 10px;
    padding: 0%;
    justify-content: start;
}

.present-text {
    width: 42rem;
    height: 10rem;
    margin: 5px;
}

.m-present {
    width: 11rem;
}

.foto {
    margin-left: 20px;
    margin-top: 0px;
    width: 100px;
    height: 100px;
    border-radius: 100%;
}

.foto img {
    margin-left: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
/*! Esto no funciona */
    width: 100px; /*! Esto no funciona */
    height: 100px; /*! Esto no funciona */
/*! Esto no funciona */
    border-radius: 100%;
    border-color: #00000098;
    border-width: 3px;
    border-style: solid;
}

.present-text {
    margin-left: 40px;
    margin-top: 25px;
}

.m-present {
    font-size: 20px;
    margin-bottom: 15px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid red;
    border-top: 6px solid #ffffff00;
    border-radius: 50%;
    animation: girar 1s linear infinite;
}

.btn-prueba.rebote {
    animation: rebote 0.5s ease-in-out;
}

.btn-prueba {
    background-color: #b10000;
    width: 100px;
    height: 50px;
    border-radius: 10px;
    margin: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-prueba:hover {
    background-color: #9c0000;
}

.sos-code {
    margin-left: 60px;
}

#title {
    text-align: center;
    font-size: 75px;
    font-family: "Comic Sans MS", cursive, sans-serif;
    margin-top: 30px;
}

#sub-sub-title-margin-10 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 35px;
}

#particles-js{
    height: 100vh;
    width: 100%;
    position: fixed;
    z-index: -1;
}

#footer-name{
    font-size: 25px;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000; /* Fondo negro */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

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

@keyframes puls {
    0% {transform: scale(1.2);}
    50% {transform: scale(1.2);}
    100% {transform: scale(1.2);}
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-15px);}
}

@keyframes rebote {
    0% { transform: scale(1); }
    50% {transform: scale(0.900);}
    100% { transform: scale(1); }
}
