body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(#2A1E1F 50%, #38287C);
  color: black;
  overflow-x: hidden;
}
header {
  background: transparent;
  padding: 20px;
  border-bottom: 4px black;
}
nav {
  padding: 10px;
}
nav a {
  color: blue;
  margin-right: 15px;
  text-decoration: none;
  font-weight: bold;
}
nav a:hover {
  color: yellow;
}
main {
  padding: 40px 20px;
}
.character-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 600px;
  margin: 0 auto;
  min-height: 75vh;
}
.character-wrapper {
  position: relative;
  transform: translateX(-40px) translateY(10px);
  height: 75vh;
  display: flex;
  align-items: flex-end;
}
.character {
  width: auto;
  max-height: 100%;
  height: auto;
  cursor: pointer;
  transition: filter 0.2s ease;
}
.character:hover {
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.8));
}
.character:active {
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.5));
}
/* ========================================
   POSICIÓN DEL BUBBLE EN DESKTOP
   🔧 CAMBIA AQUÍ para ajustar en computadora
   ======================================== */
.speech-bubble {
  position: absolute;
  width: 26vh;
  height: 14vh;
  left: -20vh;
  bottom: 45vh;
  transform: translateY(50%);
  background-image: url("/images/textui.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  box-sizing: border-box;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease-in-out;
}
.speech-bubble.show {
  opacity: 1;
  pointer-events: auto;
}
.bubble-mask {
  position: absolute;
  top: 50%;
  left: 14%;
  right: 14%;
  bottom: 24%;
  transform: translateY(-50%);
  overflow: hidden;
}
@keyframes scroll-text {
  from {
    transform: translateX(30%);
  }
  to {
    transform: translateX(-60%);
  }
}
.bubble-text {
  display: inline-block;
  white-space: nowrap;
  font-size: clamp(12px, 2.5vh, 20px);
  line-height: 1.2;
  animation: scroll-text 10s linear infinite;
}
/* ========================================
   VERSIÓN MÓVIL Y TABLET
   🔧 CAMBIA AQUÍ para ajustar en móvil
   ======================================== */
@media (max-width: 768px) {
  .character-wrapper {
    transform: translateX(0) translateY(10px);
  }
  
  .character-container {
    justify-content: center;
  }
  
  .speech-bubble {
    width: 20vh;
    height: 11vh;
    left: -7vh;
    bottom: 55vh;
    transform: translateY(50%);
  }
  
  .bubble-mask {
    top: 48%;
    left: 12%;
    right: 12%;
    bottom: 22%;
  }
  
  .bubble-text {
    font-size: clamp(10px, 1.8vh, 16px);
  }
}
/* Pantallas MUY pequeñas (menos de 480px) */
@media (max-width: 480px) {
  .speech-bubble {
    width: 18vh;
    height: 10vh;
    left: -7vh;
    top: 10vh;
  }
  
  .bubble-text {
    font-size: clamp(8px, 1.5vh, 14px);
  }
}
footer {
  background: transparent;
  color: #888;
  padding: 20px;
  text-align: center;
}

/* ========================================
   SISTEMA DE STICKERS (NUEVO)
   🔧 Tamaño FIJO - no escala con la pantalla
   ======================================== */
.sticker-container {
  position: fixed;
  right: 220px;
  top: 50%;
  transform: translateY(-50%);
  width: 450px;    /* Tamaño fijo en px */
  height: 650px;   /* Tamaño fijo en px */
  z-index: 10;
}

/* Sobre y folder - capas de fondo */
.sticker-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sticker-folder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.sticker-sobre {
  position: absolute;
  top: -3%;
  left: -5%;
  width: 110%;
  height: auto;
  z-index: 2;
}

/* Stickers - botones clicables */
.stickers-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.sticker-btn {
  position: absolute;
  width: 25%;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.2s ease;
  z-index: 3;
}

.sticker-btn:hover {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* 🔧 Posiciones y rotaciones de cada sticker */
.sticker-aboutme {
  top: 15%;
  left: 20%;
  transform: rotate(-5deg);
  width: 28%;
}

.sticker-aboutme:hover {
  transform: rotate(3deg) scale(1.05);
}

.sticker-herits {
  top: 28%;
  right: 15%;
  transform: rotate(12deg);
  width: 30%;
}

.sticker-herits:hover {
  transform: rotate(20deg) scale(1.05);
}

.sticker-roblox {
  bottom: 30%;
  left: 15%;
  transform: rotate(-8deg);
  width: 26%;
}

.sticker-roblox:hover {
  transform: rotate(0deg) scale(1.05);
}

.sticker-gallery {
  bottom: 15%;
  right: 20%;
  transform: rotate(6deg);
  width: 29%;
}

.sticker-gallery:hover {
  transform: rotate(14deg) scale(1.05);
}

/* ========================================
   STICKERS EN LAPTOP/TABLET (antes de chocar)
   🔧 Solo afecta pantallas entre 768px y 1440px
   ======================================== */
@media (max-width: 1440px) and (min-width: 769px) {
  .sticker-container {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 450px;    /* Mantiene tamaño fijo */
    height: 650px;   /* Mantiene tamaño fijo */
    margin: 50px auto 100px auto; /* Centrado */
  }
}

/* ========================================
   STICKERS EN MÓVIL
   ======================================== */
@media (max-width: 768px) {
  .sticker-container {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 90vw;
    height: 60vh;
    margin: 50px auto 100px auto;
  }

  .sticker-btn {
    width: 30%;
  }

  /* Reposicionar para móvil - más compacto */
  .sticker-aboutme {
    top: 20%;
    left: 15%;
    width: 32%;
  }

  .sticker-herits {
    top: 25%;
    right: 10%;
    width: 34%;
  }

  .sticker-roblox {
    bottom: 25%;
    left: 12%;
    width: 30%;
  }

  .sticker-gallery {
    bottom: 20%;
    right: 15%;
    width: 33%;
  }
}

@media (max-width: 480px) {
  .sticker-container {
    width: 95vw;
    height: 55vh;
  }
}