body {
  background-color: #f6f0fa;
  font-family: 'Stalemate', sans-serif;
  margin: 0;
  padding: 0;
  padding-bottom: 60px; 
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  
  position: relative;      
}

.hub {
  background-image: url('imagenes/fondo2.jpg'); 
  background-repeat: no-repeat;                   
  background-size: cover;                         
  background-attachment: fixed;                   
  background-position: center;                     
  text-align: center;
}

.hub-container {
  width: 100%;
  max-width: 1200px; 
  margin: auto;
  padding: 30px 20px;
  box-sizing: border-box;
  margin-top: 60px; 
}

.hub-header {
  background-color: #ffffff;
  background-image: url('imagenes/fondo2.jpg'); 
  background-repeat: no-repeat;   
  background-position: center;     
  background-size: cover;
  
  padding: 15px 25px;
  padding-top: 75px; 
 border-radius: 25px;
  border: 3px double #ffd6ea; 
  box-shadow: 0 8px 25px rgba(255, 182, 193, 0.3); 
  margin-bottom: 25px;
  position: relative;     
  overflow: visible;     
}

.hub-header::before, .hub-header::after, .hub-nav::before, .hub-nav::after {
  content: "";
  position: absolute;
  width: 30px;  
  height: 30px;
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 2;
  pointer-events: none;
}

/* ESQUINA INFERIOR IZQUIERDA */
header.hub-header::before {
  left: -30px;
  top: 40px;
  width: 300px;
  height: 300px;
  background-image: url('imagenes/girl.gif'); 
}

/* ESQUINA INFERIOR DERECHA */
header.hub-header::after {
  right: -20px;
  top: 150px;
  width: 200px;
  height: 180px;
  background-image: url('imagenes/bear.gif');
}

/* ESQUINA SUPERIOR IZQUIERDA */
.hub-nav::before {
  left: 10px;      
  top: 10px;        
  width: 80px;      
  height: 80px;
  background-image: url('imagenes/flor1.gif'); 
}

/* ESQUINA SUPERIOR DERECHA */
.hub-nav::after {
  right: -20px;      
  top: -20px;        
  width: 140px;      
  height: 200px;
  background-image: url('imagenes/luna.gif');
}

.hub-nav {
  display: flex !important;
  justify-content: center !important; 
  gap: 15px;                         
  flex-wrap: wrap;                   
}

@media (max-width: 700px) {
  .hub-nav { grid-template-columns: repeat(3, 1fr); }
}

.hub-nav a {
  display: block;
  background: white;
  padding: 10px;
  border-radius: 15px;
  border: 2px solid #ffd6ea;
  text-decoration: none;
  color: #ff69b4;
  font-weight: bold;
  font-size: 13px;
  transition: 0.2s;
}

.hub-nav a:hover, .hub-nav a.active {
  background-color: #ffeaf4;
  transform: scale(1.03);
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1.1fr; 
  gap: 20px;
  margin-bottom: 25px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .main-grid { grid-template-columns: 1fr; } 
}

.window-box {
  background: white;
  border: 2px solid #ffd6ea;
  border-radius: 20px;
  box-shadow: 0 6px 15px rgba(220, 180, 230, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.window-title {
  background-color: #ffeaf4;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: bold;
  color: #b392ac;
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #ffd6ea;
}

.win-buttons {
  color: #ffd6ea;
  letter-spacing: 2px;
}

.window-body {
  font-family: 'Coiny';
  font-size: 16px;     
  line-height: 1.6;
  color: #5c4a54;       
}

.about-image {
  max-width: 75px;
  margin-bottom: 10px;
}

.currently-widget {
  background: #fff8fc;
  border: 1px dashed #ffd6ea;
  border-radius: 12px;
  padding: 8px;
  width: 95%;
  text-align: left;
  font-size: 12px;
  margin-top: 5px;
  box-sizing: border-box;
}

.spotify-wrapper {
  padding: 0;
  width: 100%;
  margin-top: 12px; 
  box-sizing: border-box;
}

.spotify-wrapper iframe {
  display: block;
  border: none;
}

.bottom-sections {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

@media (max-width: 800px) {
  .bottom-sections { grid-template-columns: 1fr; }
}

.thumbnail-grid {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  justify-content: center;
}

.thumbnail-grid img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ffd6ea;
}

.placeholder-media {
  background-color: #fff9fb;
  border: 2px dashed #ffd3e1;
  width: 100%;
  padding: 15px 0;
  border-radius: 12px;
  color: #b392ac;
  font-size: 12px;
}

.explore-btn {
  display: inline-block;
  background-color: #fff5f8;
  border: 2px solid #ffd3e1;
  color: #ff7597;
  padding: 5px 15px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  margin-top: auto;
  transition: 0.2s;
}

.explore-btn:hover {
  background-color: #ffd3e1;
}

/* --- TU TRIQUI --- */
.game-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 240px; 
}

.tictac {
  width: 70px !important; 
  height: 70px !important;
  background-color: #fff5f8;
  border: 2px solid #ffd3e1;
  border-radius: 14px;
  font-family: 'Quicksand', sans-serif;
  font-size: 22px;
  font-weight: bold;
  color: #ff7597;
  cursor: pointer;
  transition: 0.2s;
  padding: 0;
}

.tictac:hover {
  background-color: #ffd3e1;
}

.reset-btn {
  background-color: #fdcfe2;
  color: white;
  border: none;
  padding: 8px 15px;
  font-family: 'Quicksand', sans-serif;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 12px;
  
  display: inline-flex;    
  align-items: center;    
  justify-content: center; 
  gap: 6px;                
  transition: 0.2s;
}
  .btn-icon {
  width: 30px;            
  height: auto;
  display: inline-block;
}

.burbuja {
  position: fixed;
  top: -10%; 
  z-index: 9999;
  pointer-events: none; 
  user-select: none;
  cursor: default;
  
  animation-name: burbujas-caer, burbujas-vaiven;
  animation-duration: 10s, 3s;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-play-state: running, running;
}

.burbuja:nth-of-type(1)  { left: 5%;  animation-delay: 0s, 0s; }
.burbuja:nth-of-type(2)  { left: 15%; animation-delay: 1s, 0.5s; animation-duration: 8s, 2.5s; }
.burbuja:nth-of-type(3)  { left: 25%; animation-delay: 6s, 1s; animation-duration: 12s, 3.5s; }
.burbuja:nth-of-type(4)  { left: 35%; animation-delay: 4s, 2s; animation-duration: 9s, 2s; }
.burbuja:nth-of-type(5)  { left: 45%; animation-delay: 2s, 1.5s; animation-duration: 11s, 3s; }
.burbuja:nth-of-type(6)  { left: 55%; animation-delay: 8s, 0s; animation-duration: 7s, 2.2s; }
.burbuja:nth-of-type(7)  { left: 65%; animation-delay: 3s, 2.5s; }
.burbuja:nth-of-type(8)  { left: 75%; animation-delay: 5s, 1s; animation-duration: 10s, 2.8s; }
.burbuja:nth-of-type(9)  { left: 85%; animation-delay: 7s, 1.5s; animation-duration: 13s, 3.2s; }
.burbuja:nth-of-type(10) { left: 95%; animation-delay: 9s, 0s; animation-duration: 6s, 2s; }
.burbuja:nth-of-type(11) { left: 20%; animation-delay: 2.5s, 0.8s; animation-duration: 10.5s, 2.7s; }
.burbuja:nth-of-type(12) { left: 80%; animation-delay: 4.5s, 1.2s; animation-duration: 8.5s, 3.1s; }

@keyframes burbujas-caer {
  0% { top: -10%; }
  100% { top: 100%; }
}

@keyframes burbujas-vaiven {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(25px); }
}

.marco-superior {
  position: absolute;      
  top: -28px;              
  left: 50%;               
  transform: translateX(-50%); 
  width: 85%;              
  text-align: center;      
  z-index: 99999;          
  pointer-events: none;    
}

.liston-pixel {
  width: 100%;             
  height: auto;            
  display: block;
  image-rendering: crisp-edges;
  image-rendering: pixelated; 
}

.banner-encaje {
  width: 100%;
  height: 35px; 
  background-image: url('imagenes/rosa.gif'); 
  background-repeat: repeat-x; 
  position: absolute; 
  top: 0;
  left: 0;
  z-index: 999999; 
}

.banner-encaje-bottom {
  width: 100%;
  height: 35px;            
  background-image: url('imagenes/rosa.gif'); 
  background-repeat: repeat-x; 
  position: absolute; 
  bottom: 0;               
  left: 0;
  z-index: 999999; 
}

.banner-chibi {
  width: 100% !important;   
  height: auto !important;  
  display: block;
  margin: 0 auto 15px auto; 
  border-radius: 12px;      
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); 
}

body, p, span, div {
  font-family: 'Lora', serif;
  font-size: 12px;       
  line-height: 2.0;
}

h1, h2, h3, 
.window-title, 
.window-title span,
nav a, .menu a, .nav-links a, .navbar a,
button {
  font-family: 'Fredoka', sans-serif !important;
  font-weight: normal;       
  font-size: 15px !important;
  letter-spacing: 0.8px;
}

/*  CALENDARIO  */
#calendar-container {
  border: 1px solid #8f657a;
  padding: 4px;
  background: linear-gradient(#fffff1, #ffdceb);
  color: #83586e;
  border-radius: 5px;
  box-shadow: 2px 2px 0px rgba(143, 101, 122, 0.15);
}

.cal-header {
  font-family: 'Concert One', sans-serif !important;
  font-size: 14px !important;
  color: #83586e;
  text-align: center;
  margin-bottom: 8px;
  font-weight: bold;
  
  border: 1px solid #874a17c9;
  background: linear-gradient(50deg, #FFFFF2, #ffe0f2);
  border-radius: 3px;
  padding: 4px 0;
  box-shadow: inset #ffcee8 0 0 4px 1px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.cal-day-name {
  border: 1px solid #874a17c9;
  background: linear-gradient(50deg, #FFFFF2, #ffe0f2);
  font-size: 11px;
  border-radius: 3px;
  color: #83586e;
  box-shadow: inset #ffcee8 0 0 4px 1px;
  font-weight: bold;
  padding: 2px 0;
}

.cal-day {
  border: 1px solid #fa94c785;
  background: linear-gradient(#fffff1, #ffdceb);
  text-align: center;
  font-size: 13px;
  border-radius: 3px;
  box-shadow: inset white 0 3px 3px, inset #ff7cb945 0 0 2px 1px;
  color: #83586e;
  padding: 4px 0;
}

.cal-today {
  color: #ff7cb9 !important;
  font-weight: bold;
  border: 1px solid #ff7cb9 !important; 
  box-shadow: inset white 0 3px 3px, inset #ff7cb9 0 0 4px 1px !important;
}

.cal-empty {
  visibility: hidden;
}

nav.hub-nav, .hub-nav {
  display: block;
  text-align: center;
  width: 100%;
}

.hub-nav a {
  display: inline-block;
  margin: 0 8px; 
}

.hub-nav a {
  display: inline-flex !important;
  align-items: center !important;  
  justify-content: center !important;
  gap: 6px;                       
}

.window-body p {
  text-align: justify !important;    
  text-justify: inter-word;          
  line-height: 1.6 !important;      
  margin-bottom: 12px;               
}
.window-body {
  padding: 20px !important; 
  box-sizing: border-box;   
}