@import url('https://fonts.googleapis.com/css2?family=DotGothic16&display=swap');

@font-face {
  font-family: 'Cheri';
  src: url('./assets/fonts/cheri.ttf') format('truetype');
}

@font-face {
  font-family: 'Big';
  src: url('./assets/fonts/big.ttf') format('truetype');
}

@font-face {
  font-family: 'Pixel';
  src: url('./assets/fonts/pixel.ttf') format('truetype');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-image: url('./assets/img/fondo.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  font-family: 'DotGothic16', monospace;
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* ✦ Evita que la caja se estire de más y cuelguen los bordes ✦ */
  overflow-x: hidden; /* ✦ Evita la franja negra en el celular ✦ */
}

/* ✦ En mobile dejamos el fondo anterior (cuadrille/lunares) ✦ */
@media (max-width: 600px) {
  body {
    background-image: url('./assets/img/fondo-mobile.jpg');
  }
}

/* --- Capa de Filtro Granulado --- */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  z-index: 9999;
}

/* --- Barra de Scroll Retro Y2K --- */
::-webkit-scrollbar {
  width: 14px;
  background: #fce4f0;
  border-left: 2px solid #f9b8d9;
}

::-webkit-scrollbar-thumb {
  background: #c2185b;
  border: 2px solid #fce4f0;
  border-radius: 0px;
}

::-webkit-scrollbar-thumb:hover {
  background: #f9b8d9;
}

/* --- Estructura Principal --- */
.pagina {
  width: 100%;
  max-width: 680px; /* ✦ Magia responsive para compu y celu ✦ */
  background: transparent;
  border: 4px solid #f9b8d9;
  animation: fadeIn 0.4s ease-out; /* Entrada suave y rápida */
}

/* ✦ En desktop sacamos el marco rosa que quedaba de cuando estaba el header ✦ */
@media (min-width: 601px) {
  .pagina {
    border: none;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

a {
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

/* --- Layout Principal --- */
.layout {
  display: flex;
  justify-content: center;
  width: 100%;
  border-top: 2px solid #f9b8d9;
  min-height: 400px;
}

.col-centro {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  width: 100%;
}

.content-box {
  background: #fff0f5;
  border-radius: 8px;
  border: 2px solid #f9b8d9;
  overflow: hidden;
  margin-bottom: 8px;
  width: 100%;
  max-width: 430px;
}

.seccion-label {
  font-size: 1rem;
  color: #DB92BD;
  padding: 6px 10px;
  border-bottom: 1px dashed #f9b8d9;
  margin-bottom: 4px;
  text-align: center;
  font-weight: bold;
}

.box-titulo img {
  image-rendering: pixelated;
  margin-bottom: 2px;
}

/* --- Caja de Bienvenida (Index) --- */
.welcome-box {
  background: #fff0f5;
  border-radius: 8px;
  border: 2px solid #f9b8d9;
  padding: 15px;
  text-align: center;
  min-height: 180px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 430px;
  position: relative;
  overflow: hidden;
}

.welcome-titulo {
  font-size: 2.9rem; /* ✦ Achicado para que entre en el celular ✦ */
  color: #834f23;
  margin-top: 45px;
  margin-bottom: 0px;
  line-height: 1;
  font-family: 'Big', sans-serif !important;
  animation: flotar-texto 3s ease-in-out infinite;
  letter-spacing: 1px;
  font-weight: bold;
  text-shadow: 1px 1px 0 #FEC7F9, -1px -1px 0 #DB9CE0, 1px -1px 0 #EEAEF1;
}

@keyframes flotar-texto {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0px); }
}

.welcome-texto {
  padding: 10px;
  color: #555;
  font-size: 0.8rem;
  line-height: 1.8;
}

/* --- Corazones y WiFi --- */
.heart-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.heart {
  position: absolute;
  color: #f9b8d9;
  font-size: 15px;
  animation: floatUp 5s linear infinite;
}

.heart:nth-child(1) { left: 10%; animation-delay: 0s; }
.heart:nth-child(2) { left: 30%; animation-delay: 2s; }
.heart:nth-child(3) { left: 60%; animation-delay: 1s; }
.heart:nth-child(4) { left: 85%; animation-delay: 3s; }

@keyframes floatUp {
  0% { transform: translateY(100px); opacity: 0; }
  50% { opacity: 0.5; }
  100% { transform: translateY(-50px); opacity: 0; }
}

.wifi-icono {
  width: 35px;
  position: absolute;
  top: 15px;
  right: 15px;
  animation: pulso 2s infinite alternate;
  z-index: 2;
}

@keyframes pulso {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* --- Botones de Categorías --- */
.categorias-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 15px;
}

.categoria-link {
  display: block;
  text-align: center;
  background: #fff0f5;
  border: 2px dashed #6d3c11;
  color: #623307;
  text-decoration: none;
  font-size: 1rem;
  font-family:'Big';
  font-weight: bold;
  padding: 12px;
  transition: all 0.3s ease;
  border-radius: 15px;
}

.categoria-link:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

.categoria-link:hover {
  background: #f9b8d9;
  color: #fff;
  border: 2px solid #c2185b;
  transform: translateY(-2px);
  box-shadow: 2px 2px 0px #fce4f0;
}

/* --- Acordeones (Textos y Proyectos) --- */
.acordeon-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
  width: 100%;
}

.acordeon {
  background: #fff;
  border: 2px dashed #f9b8d9;
  border-radius: 10px;
  padding: 10px;
  transition: all 0.3s ease;
}

.acordeon[open] {
  background: #fce4f0;
  border: 2px solid #c2185b;
}

.acordeon-titulo {
  font-family: 'Big', cursive !important; /* ✦ Fuente Cheri aplicada ✦ */
  color: #664229;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  padding: 5px;
  list-style: none;
}

.acordeon-titulo::before {
  content: '✿ ';
  color: #c2185b;
  font-size: 0.9rem;
}

.acordeon[open] .acordeon-titulo::before {
  content: '▼ ';
}

.acordeon-contenido {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px 10px 5px 10px;
  border-top: 1px dotted #f9b8d9;
  margin-top: 10px;
}

.link-texto {
  color: #664229;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.link-texto:hover, .link-texto:active {
  color: #c2185b;
  text-decoration: underline;
  text-decoration-style: dashed;
}

/* --- Sección Sobre Mí --- */
.bio-box {
  width: 100%;
  max-width: 650px;
  padding: 30px;
  text-align: left;
  margin: 0 auto;
}

.bio-cabecera {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.bio-foto {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px dashed #f9b8d9;
  box-shadow: 5px 5px 0px #fce4f0;
  transform: rotate(-4deg);
}

.bio-nombre {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c2185b;
  font-family: 'Cheri', cursive !important; /* ✦ Fuente Cheri aplicada ✦ */
  font-size: 1.5rem;
  margin: 0;
  flex-wrap: wrap;
}

.bio-sub {
  display: block;
  font-size: 1.1rem;
  font-weight: normal;
  color: #c2185b;
  margin-top: 5px;
}

.bio-cuerpo p {
  color: #623307;

  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.bio-cuerpo strong {
  color: #c2185b;
}

/* --- Sticker de Maquillaje --- */
.icono-makeup {
  width: 70px;
  transform-origin: center;
  animation: flotar-makeup 3s ease-in-out infinite;
}

@keyframes flotar-makeup {
  0% { transform: translateY(0px) rotate(10deg); }
  50% { transform: translateY(-10px) rotate(15deg); }
  100% { transform: translateY(0px) rotate(10deg); }
}

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

/* --- Hashtags de la Bio --- */
.bio-tags-container {
  margin-top: 20px;
  border-top: 2px dotted #f9b8d9;
  padding-top: 15px;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 25px;
}

.tag {
  background: #f9b8d9;
  color: #664229;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: bold;
  border: 1px solid #c2185b;
  transition: all 0.2s ease;
}

.tag:hover {
  background: #c2185b;
  color: #fff;
  transform: translateY(-2px);
}

/* --- Botón Volver --- */
.btn-volver {
  display: inline-block;
  background: #fff;
  color: #664229;
  padding: 8px 16px;
  border: 2px solid #f9b8d9;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-volver:hover {
  background: #fce4f0;
  border-color: #664229;
}

/* --- Arte ASCII --- */
.ascii-contenedor {
  display: flex;
  justify-content: center; /* Centra el dibujo en la caja */
  margin-top: -15px;
  position: relative;
  z-index: 2; /* Para que quede por encima de los corazones flotantes */
}

.ascii-art {
  font-family: 'DotGothic16', monospace; /* Usamos la fuente cuadradita que ya tenés */
  color: #c2185b; /* El rosa oscuro de tus textos */
  font-size: 0.8rem;
  line-height: 1.1;

  /* Le sacamos el fondo gris que a veces le ponen los navegadores por defecto a <pre> */
  background: transparent;
  border: none;
  margin: 0;
  padding: 0;

  /* Un pequeño movimiento flotante para que tenga vida */
  animation: flotar 4s ease-in-out infinite;
}

/* ✦ FUENTE PIXELADA PARA LAS SUB-CATEGORÍAS Y TEXTOS ✦ */
.categoria-link,
.acordeon-titulo,
.bio-cuerpo p {
  /* Usamos la misma fuente retro que tienen "archivos" y "contacto" */
  font-family: 'DotGothic16', monospace !important;
  font-size: 1rem;
}

/* ✦ MOÑITOS AUTOMÁTICOS PARA LA LISTA DE TEXTOS ✦ */
.link-texto::before {
  content: '୨୧ '; /* El moñito coquette */
  color: #c2185b; /* El color rosa para que combine */
  font-size: 1rem;
  margin-right: 6px;
  vertical-align: middle; /* Para que quede alineado con el texto */
}

/* ✦ UN POQUITO DE ESPACIO ENTRE LOS TEXTOS ✦ */
.link-texto {
  display: block; /* Asegura que cada texto ocupe su propio renglón */
  padding-bottom: 4px; /* Le da aire entre un texto y el de abajo */
}
