/* ============================================
   Capas superpuestas
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


@font-face {
    font-family: 'Retron2000';
    src: url('../Retron2000.ttf') format('truetype');
}

#skull-texto {
    font-family: 'Retron2000';
}



body {
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Capa 1: Background (fondo) */
.capa-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/background_home.webp') no-repeat center center fixed;
    background-size: cover;
    z-index: 1;
}

/* Capa 2: Contenedor de rebotes */
.contenedor-rebotes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.rebote {
    position: absolute;
    pointer-events: none;
    transition: transform 0.05s linear;
}

/* Capa 3: Foreground (encima de todo) */
.capa-foreground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.capa-foreground img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}


#craneo {
    position: fixed;
    top: 5%;
    left: 5%;
    width: 26vw;
    z-index: 5;
    pointer-events: none;
}

#skull-ui {
    position: fixed;
    top: 0%;
    right: 3%;
    width: 55vw;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.1s;
    pointer-events: none;
}
#skull-burbuja {
    position: relative;
}

#skull-burbuja img {
    width: 100%;
    display: block;
}

#skull-texto-wrapper {
    position: absolute;
    top: 15%;
    right: 23%;
    width: 50%;
    height: 45%;
    overflow: hidden;
    pointer-events: auto;
}

#skull-texto {
    font-family: 'Retron2000';
    font-size: 1.8vw;
    color: #081028;
    line-height: 1.3;
}

#skull-texto.aviso {
    font-size: 1.3vw;   /* ← tamaño de letra de los avisos (normal: 1.8vw) */
}

#skull-texto.aviso > div {
    min-height: 0 !important;   /* líneas más juntas al ser letra pequeña */
}

@media (max-width: 1000px) {
    #skull-ui {
        width: 90vw;
        right: 7%;
        top: 30%;
    }
    
    #craneo {
        position: fixed;
        top: 4%;
        left: 5%;
        width: 52vw;
        z-index: 5;
        pointer-events: none;
}
}

/* Iconos sociales (delante de la calavera) */
#iconos-sociales {
    position: fixed;
    top: 1%;          /* ajusta para colocarlos sobre/junto a la calavera */
    right: 0%;
    display: flex;
    gap: 0.3vw;
    z-index: 6;        /* > 5 de #craneo */
    pointer-events: none;
}

.icono-social {
    pointer-events: auto;   /* solo los iconos son clicables */
    display: block;
    width: 4vw;
    transition: transform 0.1s ease;
}

.icono-social img {
    width: 100%;
    display: block;
}

#icono-avisos { cursor: pointer; }

.icono-social:hover  { transform: scale(1.15) rotate(-5deg); }
.icono-social:active { transform: scale(1.05); }

@media (max-width: 1000px) {
    #iconos-sociales {
        top: 5%;
        right: 5%;
        gap: 3vw;
    }
    .icono-social { width: 12vw; }
}