/* Este es el contenedor para que tu imagen se mantenga centrada y ordenada */
.mi-encabezado {
    text-align: center;
}

/* AQUÍ CONTROLAS EL TAMAÑO DE TU IMAGEN */
.imagen-encabezado {
    /* 1. EL ANCHO (WIDTH) */
    /* 100% hace que abarque de lado a lado. 
       Si la quieres más chica, puedes usar 80%, 50%, o píxeles fijos como 800px */
    width: 100%; 
    
    /* 2. EL ALTO (HEIGHT) */
    /* Cambia este número para hacerla más alta o más bajita */
    height: 120px; 
    
    /* 3. EL TRUCO MÁGICO */
    /* 'cover' hace que la imagen se recorte solita para llenar tus 
       medidas sin estirarse ni deformarse. ¡Nunca lo quites! */
    object-fit: cover; 
    
    /* (Opcional) Un pequeño toque retro para que combine con tu página */
    border-bottom: 3px solid #b5f542; 
    box-shadow: 0 4px 15px rgba(181, 245, 66, 0.3);
}

nav {
    text-align: center;
    /* Un poco de espacio extra arriba para que al flotar no se corten */
    padding-top: 20px; 
}

@keyframes efectoFlotar {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); } 
    100% { transform: translateY(0px); }
}

.flotante {
    animation: efectoFlotar 3s ease-in-out infinite;
    display: inline-block; 
    backface-visibility: hidden; 
    transform: translateZ(0); 
}

/* Renombrado de .diseno a .boton-winamp */
.boton-winamp {
    background-color: #521C26; 
    border: 3px outset #192124; 
    color: #FDD661;
    text-decoration: none; 
    padding: 4px 12px;
    font-family: 'Courier New', Courier, monospace; 
    font-size: 14px;
    font-weight: bold;
    display: inline-block; 
    box-shadow: 2px 2px 0px #8B7FD6; 
    
    /* Pequeño margen para que no estén pegados unos con otros */
    margin: 0 10px; 
}

/* Ahora sí funcionará el clic */
.boton-winamp:active {
    border: 3px inset #9B71B2;
    background-color: #9B71B2;
    box-shadow: 0px 0px 0px; 
    transform: translate(4px, 4px); 
}
/* Control remoto para el botón INICIO */
#btn-1 {
    position: absolute; 
    top: 150px;
    left: 20px;
}

/* Control remoto para el botón SOBRE MÍ */
#btn-2 {
    position: absolute;
    top: 150px;
    left: 1050px;
}

/* Control remoto para el botón ENLACES */
#btn-3 {
    position: absolute;
    
     top: 600px;
    left: 20px;
}






/* El diseño de las "chispas" o notas que dejará el rastro */
.rastro-cursor {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #9B71B2; /* Color rosa neón */
    box-shadow: 0 0 5px #E3D0EA; /* Brillo cyan */
    pointer-events: none; /* Evita que el rastro bloquee tus clics */
    z-index: 9999; /* Asegura que el rastro pase por encima de todo */
    animation: desvanecer 0.8s linear forwards;
}

/* Animación para que el rastro desaparezca poco a poco */
@keyframes desvanecer {
    0% { opacity: 1; transform: scale(1) rotate(0deg); }
    100% { opacity: 0; transform: scale(0) rotate(180deg); }
}
.caja-texto-terminal {
    width: 40%; 
    max-height: 180px; 
    overflow-y: auto; 
   margin: 0; 
    
    /* 2. ACTIVAMOS EL CONTROL DE MOVIMIENTO */
    position: relative; /* Mantiene la caja en la página pero te deja empujarla */
    
    /* 3. TUS COORDENADAS (El Control Remoto) */
    top: -70px;   /* Empuja la caja hacia abajo */
   left: 300px; /* Empuja la caja hacia la derecha */
    
    /* ESTILO TERMINAL RETRO */
    background-color: #374126; /* Fondo súper oscuro */
    color:#b5f542; /* Verde brillante (tipo fósforo) */
    border: 3px solid #b5f542; /* Borde verde */
    font-family: 'Courier New', Courier, monospace; /* Letra de terminal */
    font-size: 16px;
    font-weight: bold;
    text-align: left; /* Alineado a la izquierda como consola */
    text-shadow: 0 0 5px rgba(181, 245, 66, 0.5); /* Pequeño brillo en las letras */
    box-shadow: 0 0 10px rgba(181, 245, 66, 0.2); /* Pequeño resplandor en la caja */
}

/* Personalizar la barra de desplazamiento (Scrollbar) para que combine */
.caja-texto-terminal::-webkit-scrollbar {
    width: 12px;
}

.caja-texto-terminal::-webkit-scrollbar-track {
    background: #374126; /* Fondo del scroll oscuro */
    border-left: 1px solid #6C6D11; /* Línea separadora */
}

.caja-texto-terminal::-webkit-scrollbar-thumb {
    background: #b5f542; /* La barrita que se mueve es verde */
}

.caja-texto-terminal::-webkit-scrollbar-thumb:hover {
    background: #E3D0EA; /* Un verde un poco más fuerte al pasar el mouse */
}
/* La pista con tus 3 imágenes */
.cinta-pista {
    display: inline-block;
    white-space: nowrap;
    /* Llamamos a la nueva animación */
    animation: deslizarHaciaLaDerecha 15s linear infinite; 
}

/* LA ANIMACIÓN INFALIBLE: De Izquierda a Derecha */
@keyframes deslizarHaciaLaDerecha {
    0% {
        /* -100vw significa que empieza un ancho de pantalla completo hacia la IZQUIERDA (fuera de la vista) */
        transform: translateX(-100vw); 
    }
    100% {
        /* 100vw significa que termina un ancho de pantalla completo hacia la DERECHA (fuera de la vista) */
        transform: translateX(100vw); 
    }
}
.titulo-superpuesto {
    
    position: absolute; 
    top: 10px; /* Lo acerca a la parte de arriba dejando 10px de respiración */
    left: 50%; /* Lo centra de lado a lado */
    transform: translateX(-50%); /* Ajuste matemático para que quede perfectamente centrado */
    z-index: 10;
}

.ipod-widget {
  all: initial;
  display: block;
  font-family: FUENTE_BASE_AQUÍ, sans-serif;
}

.ipod-widget .ipod {
 width: 200px;
  background: #000000;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2), inset -3px -3px 7px #000000, inset 3px 3px 7px #000000;
  text-align: center;
  border: 1px solid #000000;
  overflow: hidden;
  
  /* 1. Lo mantenemos en el flujo de la página, pero te deja moverlo */
  position: relative; 
  margin: 0;
  
  /* 2. TUS CONTROLES DE EMPUJE */
  /* Esto lo empuja desde donde estaba originalmente */
  top: -65px;   /* Lo empuja 20 píxeles hacia abajo */
  left: 300px;  /* Lo empuja 50 píxeles hacia la derecha */ 
}

.ipod-widget .youtube-hidden-container {
  width: 2px;
  height: 2px;
  position: absolute;
  bottom: 0;
  left: 0;
  opacity: 0.01;
  overflow: hidden;
}

.ipod-widget .screen {
  background: #70C6E2;
  border-radius: 6px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0 4px 10px rgba(0,0,0,0.5);
}

.ipod-widget .screen img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #817F3E;
}

.ipod-widget .screen p {
  font-family: 'Slackey', cursive;
  font-size: 13px;
  color: #152026; 
  margin: 5px 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.ipod-widget .time-display {
  font-size: 10px;
  color: #22435c;
  font-family: *FUENTE_TIEMPO_AQUÍ*;
  font-weight: bold;
}

.ipod-widget .progress-container {
  width: 100%;
  background: #503447;
  height: 6px;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 5px;
  position: relative;
}

.ipod-widget .progress-bar {
  background: #503447;
  height: 100%;
  width: 0%;
  border-radius: 3px;
}

.ipod-widget .controls-wheel {
  position: relative;
  width: 140px;
  height: 140px;
  background: #D3DDE4;
  border-radius: 50%;
  margin: 20px auto 5px auto;
  border: 1px solid #503447;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1), inset 0 2px 5px rgba(0,0,0,0.05);
}

.ipod-widget .ipod-btn {
  position: absolute;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s;
}

.ipod-widget .ipod-btn:active {
  transform: scale(0.85);
}

.ipod-widget .btn-play-pause {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #70C6E2;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  z-index: 2;
}
.ipod-widget .btn-play-pause:active {
  transform: translate(-50%, -50%) scale(0.9);
}

.ipod-widget .play-icon {
  display: block;
  transition: all 0.1s ease;
}

.ipod-widget .state-paused .play-icon {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 14px solid #555;
  margin-left: 4px;
}

.ipod-widget .state-playing .play-icon {
  width: 12px;
  height: 14px;
  border-left: 4px solid #503447;
  border-right: 4px solid #503447;
  box-sizing: border-box;
}

.ipod-widget .btn-prev {
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
}
.ipod-widget .btn-prev:active {
  transform: translateY(-50%) scale(0.85);
}
.ipod-widget .icon-prev {
  display: block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 10px solid #503447;
  position: relative;
}
.ipod-widget .icon-prev::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 10px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 10px solid #503447;
}

.ipod-widget .btn-next {
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
}
.ipod-widget .btn-next:active {
  transform: translateY(-50%) scale(0.85);
}
.ipod-widget .icon-next {
  display: block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #503447;
  position: relative;
}
.ipod-widget .icon-next::after {
  content: '';
  position: absolute;
  top: -6px;
  right: 10px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #503447;
}


.momi-paint-widget-left {
  all: initial;
  display: block;
  width: 250px;
  background: #817F3E;
  border-top: 2px solid #503447;
  border-left: 2px solid #817F3E;
  border-right: 2px solid #503447;
  border-bottom: 2px solid #817F3E;
  box-shadow: 1px 1px 0px #503447;
  padding: 2px;
  box-sizing: border-box;
  font-family: 'Consolas', monospace;
 
  user-select: none;
  /* 1. Quitamos el margen anterior */
  margin: 0; 
  
  /* 2. Activamos el movimiento libre por la pantalla */
  position: absolute; 
  
  /* 3. Tus coordenadas (Ajusta estos números) */
  top: 180px;  /* Empuja el cuadro desde el techo hacia abajo */
  left: 20px; /* Empuja el cuadro desde la izquierda hacia la derecha */
}
.momi-paint-widget-left .paint-window-bar {
  background: #817F3E;
  padding: 3px 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.momi-paint-widget-left .paint-title {
  font-size: 11px;
  font-weight: bold;
  color: #ffffff;
}
.momi-paint-widget-left .paint-window-controls {
  display: flex;
  gap: 2px;
}
.momi-paint-widget-left .paint-btn-mini {
  background: #d4d0c8;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #404040;
  border-bottom: 1px solid #404040;
  font-size: 9px;
  padding: 0px 4px;
  color: #000;
  font-weight: bold;
}
.momi-paint-widget-left .paint-menu-bar {
  display: flex;
  gap: 8px;
  padding: 3px 4px;
  font-size: 11px;
  color: #000;
  border-bottom: 1px solid #808080;
}
.momi-paint-widget-left .clear-menu-btn {
  color: #ff3b30;
  font-weight: bold;
  cursor: pointer;
  text-decoration: underline;
}
.momi-paint-widget-left .paint-body {
  background: #808080;
  padding: 3px;
  display: flex;
  justify-content: center;
}
.momi-paint-widget-left canvas {
  background: #ffffff;
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  display: block;
  cursor: crosshair;
}
.momi-paint-widget-left .paint-footer-palette {
  display: flex;
  align-items: center;
  padding: 5px;
  background: #d4d0c8;
  gap: 6px;
  border-top: 1px solid #808080;
}
.momi-paint-widget-left .selected-indicator-box {
  width: 28px;
  height: 28px;
  background: #d4d0c8;
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.momi-paint-widget-left #momiCurrentColorPreview {
  width: 14px;
  height: 14px;
  border: 1px solid #000;
}
.momi-paint-widget-left .colors-grid-container {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 1px;
  flex-grow: 1;
}
.momi-paint-widget-left .color-pixel {
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border-top: 1px solid #404040;
  border-left: 1px solid #404040;
  border-bottom: 1px solid #fff;
  border-right: 1px solid #fff;
  cursor: pointer;
}
.imagen-flotante {
    /* 1. ESTO HACE QUE FLOTE Y QUEDE ENCIMA */
    position: absolute; /* La saca del flujo normal de la página */
    z-index: 100; /* Un número súper alto para que siempre esté por encima de textos, cintas y fondos */
    
    /* 2. EL TAMAÑO */
    width: 200px; /* Cambia este número para hacerla más grande o pequeña */
    height: auto; /* Mantiene la proporción para que no se deforme */

    /* 3. TU CONTROL DE MOVIMIENTO (Elige solo 2 de estos) */
    /* Empuja la imagen 150 pixeles desde el techo hacia abajo */
    top: 610px;  
    
    /* Empuja la imagen 50 pixeles desde el borde izquierdo hacia la derecha */
    left: 230px;  
    
    /* Opcional: para que la imagen no estorbe si accidentalmente 
       tapa un botón y quieres hacerle clic a lo que hay debajo */
    pointer-events: none; 
}
.imagenes-flotantes {
    /* 1. ESTO HACE QUE FLOTE Y QUEDE ENCIMA */
    position: absolute; /* La saca del flujo normal de la página */
    z-index: 100; /* Un número súper alto para que siempre esté por encima de textos, cintas y fondos */
    
    /* 2. EL TAMAÑO */
    width: 280px; /* Cambia este número para hacerla más grande o pequeña */
    height: auto; /* Mantiene la proporción para que no se deforme */

    /* 3. TU CONTROL DE MOVIMIENTO (Elige solo 2 de estos) */
    /* Empuja la imagen 150 pixeles desde el techo hacia abajo */
    top: 60px;  
    
    /* Empuja la imagen 50 pixeles desde el borde izquierdo hacia la derecha */
    left: 690px;  
    
    /* Opcional: para que la imagen no estorbe si accidentalmente 
       tapa un botón y quieres hacerle clic a lo que hay debajo */
    pointer-events: none; 
}
.imagenes {
      /* 1. ESTO HACE QUE FLOTE Y QUEDE ENCIMA */
    position: absolute; /* La saca del flujo normal de la página */
    z-index: 100; /* Un número súper alto para que siempre esté por encima de textos, cintas y fondos */
    
    /* 2. EL TAMAÑO */
    width: 90px; /* Cambia este número para hacerla más grande o pequeña */
    height: auto; /* Mantiene la proporción para que no se deforme */

    /* 3. TU CONTROL DE MOVIMIENTO (Elige solo 2 de estos) */
    /* Empuja la imagen 150 pixeles desde el techo hacia abajo */
    top: 120px;  
    
    /* Empuja la imagen 50 pixeles desde el borde izquierdo hacia la derecha */
    left: 150px;  
    
}

.book-wrapper{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:15px;
  top: 180px;  /* Empuja todo el bloque desde el techo hacia abajo */
  left: 1030px;
  position:absolute;
}

.book{
  position:relative;
  width:280px;
  height:280px;
  perspective:1500px;
  overflow:hidden;
}

/* ENCUADERNACIÓN */


.book::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:4px;
  height:100%;
  background:#e7dece;
  z-index:999;
  border-radius:2px;
}

.paper{
  position:absolute;
  width:100%;
  height:100%;
  top:0;
  left:0;
  transform-origin:left;
  transition:transform .8s ease;
}

.front,
.back{
  position:absolute;
  width:100%;
  height:100%;
  background:#fffdf8;
  border:1px solid #e8e2d8;
  box-sizing:border-box;
  backface-visibility:hidden;

  box-shadow:
    inset 0 0 15px rgba(0,0,0,.04),
    0 3px 8px rgba(0,0,0,.08);
}

.front{
  z-index:1;
}

.back{
  transform:rotateY(180deg);
}

.page-content{

  height:100%;
  overflow:auto;

  padding:18px;

  font-family:Arial, sans-serif;

  font-size:14px;

  line-height:1.7;

  color:#000;
}

.page-content h2{

  font-family:'Indie Flower', cursive;

  font-size:20px;

  text-align:center;

  margin-bottom:12px;
}

.cover-image{

  width:100px;

  display:block;

  margin:0 auto 12px auto;

  border-radius:12px;
}

.page-image{

  width:100px;

  display:block;

  margin:0 auto 12px auto;

  border-radius:12px;
}

.flipped{
  transform:rotateY(-180deg);
}

.controls{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:center;
}

.controls button{

  border:none;

  background:#f7f2e8;

  color:#333;

  padding:8px 12px;

  border-radius:10px;

  cursor:pointer;

  font-size:13px;

  transition:.2s;
}

.controls button:hover{
  transform:scale(1.05);
}
/* 1. Mueve toda la caja del enlace */
.gif1 {

    position: absolute;
    /* TU CONTROL REMOTO (Juega con estos números) */
    top: 450px;  
    left: 0px; 
    
    /* Le dice al enlace que tome la forma de su contenido */
    display: inline-block; 
}
.gif2 {

    position: absolute;
    /* TU CONTROL REMOTO (Juega con estos números) */
    top: 450px;  
    left: 150px; 
    
    /* Le dice al enlace que tome la forma de su contenido */
    display: inline-block; 
}
.gif3 {

    position: absolute;
    /* TU CONTROL REMOTO (Juega con estos números) */
    top: 500px;  
    left: 150px; 
    
    /* Le dice al enlace que tome la forma de su contenido */
    display: inline-block; 
}
/* 2. Controla solo la imagen dentro del enlace */
.gif-flotante img {
    width: 120px; /* Cambia el tamaño del GIF aquí */
    height: auto;
    
    /* Esto es vital: borra cualquier borde automático de link */
    border: none; 
    outline: none;
}

/* 1. EL CONTROL REMOTO DEL GRUPO COMPLETO */
.mis-redes {
    position: absolute; /* Para moverlos libremente por la pantalla */
    top: 500px;         /* Ajusta la altura */
    left: 30px;         /* Ajusta qué tan a la izquierda/derecha los quieres */
    
    display: flex;      /* Pone los botones uno al lado del otro */
    flex-direction: column;
    gap: 15px;          /* Espacio entre cada botón */
    z-index: 100;
}

/* 2. EL DISEÑO DE LOS BOTONES */
.boton-social {
    background-color: #521C26; /* Fondo retro */
    border: 3px outset #192124; /* Borde 3D levantado */
    color: #FDD661;            /* Letras amarillas */
    text-decoration: none;     /* Quita la línea de abajo típica de los links */
    padding: 8px 15px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;           /* Cambia el mouse a una manita al pasar por encima */
}

/* 3. EL EFECTO DE CLIC (SE HUNDE) */
.boton-social:active {
    border: 3px inset #9B71B2; 
    background-color: #9B71B2;
    transform: translate(2px, 2px); /* Da el efecto físico de que lo aplastaste */
}


/* EL CONTROL REMOTO DE LA CAJA COMPLETA (MÁS DELGADA) */
.contenedor-sudoku {
    position: absolute; 
    
    /* 1. TUS COORDENADAS (Modifica estos números para moverlo) */
    top: 510px;         
    left: 1050px;        
    
    background-color: #6B8E23;
    border: 3px solid #556B2F;
    padding: 8px; /* Reducido para ahorrar espacio interno */
    box-shadow: 4px 4px 0px rgba(0,0,0,0.3);
    z-index: 150; 
    width: 214px; /* Reducido de 280px a 214px para que quede exacto */
}

/* EL TÍTULO DEL JUEGO */
.titulo-sudoku {
    text-align: center;
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 13px;    /* Letra más chica */
    margin-bottom: 8px; /* Menos espacio de separación */
    letter-spacing: 1px;
}

/* LA CUADRÍCULA DE 9x9 (CASILLAS MÁS PEQUEÑAS) */
.cuadricula-sudoku {
    display: grid;
    /* Reducimos cada cuadrito de 30px a 22px exactos */
    grid-template-columns: repeat(9, 22px); 
    grid-template-rows: repeat(9, 22px);    
    gap: 1px; 
    background-color: #192124; 
    border: 2px solid #192124;
}

/* EL DISEÑO DE CADA CUADRITO INDIVIDUAL */
.cuadricula-sudoku input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;    /* Letra más pequeña para que quepa perfecto en el cuadro mini */
    font-weight: bold;
    background-color: #f7f2e8; 
    color: #000000;
    box-sizing: border-box;
}

/* Brillo al seleccionar */
.cuadricula-sudoku input:focus { background-color: #b5f542; }

/* Números fijos */
.cuadricula-sudoku .celda-fija {
    background-color: #d4d0c8;
    color: #556B2F;
}

/* BOTÓN LISTO MÁS COMPACTO */
.boton-listo {
    margin-top: 8px;
    width: 100%;
    background-color: #556B2F;
    color: white;
    border: 2px solid #192124;
    padding: 6px;       /* Botón más delgado */
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 11px;    /* Letra más chica */
    cursor: pointer;
    transition: 0.2s;
}
.boton-listo:active { transform: scale(0.95); }

/* MENSAJES */
.mensaje-sudoku {
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    margin-top: 6px;
    height: 16px;
    font-size: 11px;
}