/* ========================================
   VARIABLES - PALETA NOCHE LUNÁTICA MÁGICA 2
   (colores ajustados a la imagen lunar)
   ======================================== */

:root {
  /* Colores Principales */
  --midnight-blue: #050507;
  /* Negro profundo escénico */
  --deep-purple: #1a1c22;
  /* Gris noche teatral */
  --lunar-silver: #cfcac2;
  /* Plata lunar real */
  --moon-glow: #f2efe9;
  /* Marfil luminoso */

  /* Colores de Acento */
  --mystic-purple: #b6b2c9;
  /* Lavanda espectral */
  --cosmic-violet: #6f6b75;
  /* Gris violeta lunar */
  --stardust-pink: #c79aa0;
  /* Rosa polvo escénico */
  --aurora-cyan: #9aa3a8;
  /* Bruma fría lunar */
  --celestial-lavender: #d8b4a0;
  /* Tono piel cálido */

  /* Backgrounds */
  --dark-sky: #050507;
  --darker-night: #020204;
  --light-cloud: #f5f3ee;

  /* Text Colors */
  --text-light: #f5f3ee;
  --text-silver: #c9c6bf;
  --text-glow: #ffffff;

  /* Gradientes */
  --gradient-night-sky: linear-gradient(135deg, #050507 0%, #0f1115 50%, #1a1c22 100%);
  --gradient-moon: linear-gradient(135deg, #f2efe9, #cfcac2, #b6b2c9);
  --gradient-aurora: linear-gradient(135deg, #9aa3a8, #b6b2c9, #c79aa0);
  --gradient-cosmic: linear-gradient(135deg, #1a1c22, #6f6b75, #cfcac2);
  --gradient-twilight: linear-gradient(135deg, #0f1115, #6f6b75, #b6b2c9);
  --gradient-starlight: linear-gradient(135deg, #6f6b75, #b6b2c9, #f2efe9);
  --gradient-nebula: linear-gradient(135deg, #1a1c22, #6f6b75, #c79aa0, #f2efe9);
  --gradient-galaxy: linear-gradient(45deg, #050507, #0f1115, #6f6b75, #b6b2c9, #f2efe9);
  --gradient-pesadilla: linear-gradient(135deg, #1a1c22, #6f6b75, var(--cosmic-violet));

  /* Sombras */
  --glow-purple: 0 0 22px rgba(182, 178, 201, 0.45);
  --glow-pink: 0 0 22px rgba(199, 154, 160, 0.45);
  --glow-cyan: 0 0 22px rgba(154, 163, 168, 0.45);
  --glow-moon: 0 0 38px rgba(242, 239, 233, 0.65);

  /* Compatibilidad */
  --primary-purple: var(--cosmic-violet);
  --secondary-pink: var(--stardust-pink);
  --accent-cyan: var(--aurora-cyan);
  --accent-green: var(--celestial-lavender);
  --dark-bg: var(--dark-sky);
  --darker-bg: var(--darker-night);
  --light-bg: var(--light-cloud);
  --text-dark: var(--text-silver);

  /* Gradientes numerados */
  --gradient-1: var(--gradient-cosmic);
  --gradient-2: var(--gradient-aurora);
  --gradient-3: var(--gradient-moon);
  --gradient-16: var(--gradient-starlight);
  --gradient-21: var(--gradient-night-sky);
  --gradient-22: var(--gradient-twilight);
  --gradient-23: var(--gradient-galaxy);
  --gradient-24: var(--midnight-blue);
}



.animated-moon {
  position: fixed;
  inset: 0;
  z-index: -1;

  width: 100vw;
  height: 100vh;

  background-image: url('https://www.solarsystemscope.com/textures/download/2k_moon.jpg');
  background-repeat: repeat-x;

  /* CLAVE DEL RESPONSIVE */
  background-size: auto 120vmax;
  background-position: 0% 50%;

  animation: moonRotation 90s linear infinite;

  box-shadow:
    inset -18vmax 12vmax 20vmax -4vmax rgba(255, 255, 255, 0.25),
    inset 30vmax -30vmax 50vmax 20vmax rgba(0, 0, 0, 0.95);

  filter: brightness(0.9) contrast(1.1);

  opacity: 0;
  visibility: hidden;
  transition: opacity 1.5s ease;
}


.animated-moon.activa {
  opacity: 1;
  visibility: visible;
}

@keyframes moonRotation {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 300% 50%;
  }
}

@media (max-width: 768px) {
  .animated-moon {
    background-size: auto 160vmax;
    filter: brightness(0.85) contrast(1.05);
  }
}

@media (orientation: portrait) {
  .animated-moon {
    background-position: 50% 40%;
  }
}



/* ========================================
   RESET Y BASE
   ======================================== */

header,
main,
section {
  position: relative;
  z-index: 1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body,
html {
  width: 100%;
  min-height: 100vh;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--gradient-21);
  font-size: clamp(0.875rem, 2vw + 0.5rem, 1.25rem);
  line-height: 1.6;
  color: var(--text-light);
  padding: clamp(0.5rem, 3vw, 2rem);
  overflow-x: hidden;
}

.card:hover,
.section:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 25px 50px rgba(2, 6, 23, 0.9),
    var(--glow-purple);
}



/* ========================================
   TIPOGRAFÍA
   ======================================== */


h1,
h2,
h3 {
  font-family: 'Dancing Script', cursive;
  letter-spacing: 0.04em;
  text-wrap: balance;
}


.nombre {
  font-size: clamp(2rem, 5vw + 0.5rem, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #d2d2d28a;

  text-shadow:
    0 0 15px rgb(255, 255, 0),
    0 0 15px rgba(255, 255, 255, 0.721);
}


.p_inicio {
  font-size: clamp(1.05rem, 3.5vw + 0.3rem, 1.9rem);
  color: var(--text-glow);
  max-width: 60ch;
  margin-bottom: clamp(1rem, 3vw, 2rem);
  font-weight: 550;
  padding: 0 clamp(0.5rem, 2vw, 1rem);
  line-height: 1.8;
}


p {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
  color: var(--text-silver);
}


/* ========================================
   LAYOUT PRINCIPAL
   ======================================== */
.contenedor-central {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  padding: clamp(0.5rem, 2vw, 1.5rem);
}

/* ========================================
   IMÁGENES
   ======================================== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.img-container {
  overflow: hidden;
  width: 100%;
}

.julimg {
  position: relative;
  width: clamp(130px, 32vw, 280px);
  height: clamp(130px, 32vw, 280px);

  /* Bordes lunáticos más orgánicos */
  border-radius: 50% 48% 50% 47% / 47% 52% 47% 52%;
  overflow: hidden;
  background: var(--gradient-moon);
  padding: 4px;

  /* Glow exterior suave */
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.5),
    0 0 65px rgb(255, 255, 255),
    0 0 35px rgb(255, 238, 0);

  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.julimg {
  position: relative;
  width: clamp(130px, 32vw, 280px);
  height: clamp(130px, 32vw, 280px);

  /* Bordes lunáticos más orgánicos */
  border-radius: 50% 48% 50% 47% / 47% 52% 47% 52%;
  overflow: hidden;

  /* ANIMACIÓN DE FONDO CAMBIANTE */
  background: var(--gradient-moon);
  background-size: 400% 400%;
  animation: backgroundShift 6s ease-in-out infinite;

  padding: 4px;

  /* Glow exterior suave */
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.5),
    0 0 65px rgb(255, 255, 255),
    0 0 15px rgba(255, 238, 0, 0.729);

  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* NUEVA ANIMACIÓN - Agregar al final del CSS */
@keyframes backgroundShift {
  0% {
    background: linear-gradient(135deg, #ffffff, #ffffff, #ffffff);
  }

  25% {
    background: linear-gradient(135deg, #000000, #000000, #000000);
  }

  50% {
    background: linear-gradient(135deg, #ffffff, #ffffff, #ffffff);
  }

  75% {
    background: linear-gradient(135deg, #000000, #000000, #000000);
  }

  100% {
    background: linear-gradient(135deg, #ffffff, #ffffff, #ffffff);
  }
}

/* Halo lunar mágico */
.julimg::after {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 204, 218, 0.45) 0%, rgba(236, 72, 153, 0.3) 40%, rgba(124, 58, 237, 0.2) 70%, transparent 100%);
  filter: blur(30px);
  z-index: -1;
  animation: haloPulse 4s ease-in-out infinite alternate;
}

/* Animación del halo */
@keyframes haloPulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}

/* Hover: zoom elegante y glow */
.julimg:hover {
  transform: scale(1.08);
  /* menos agresivo */
  box-shadow:
    0 0 30px rgba(230, 230, 230, 0.7),
    0 0 50px rgb(255, 255, 255),
    0 0 80px rgba(255, 255, 255, 0.35);
}

.julimg:hover img {
  transform: scale(1.05);
}

.julimg:hover::after {
  transform: scale(1.2);
  opacity: 1;
}


/* ====================================
   ANIMACIONES
   ==================================== */
@keyframes moonPulse {
  0% {
    border-radius: 50% 47% 50% 47% / 46% 51% 46% 51%;
    transform: scale(1);
  }

  50% {
    border-radius: 52% 45% 53% 45% / 48% 49% 48% 49%;
    transform: scale(1.02);
  }

  100% {
    border-radius: 50% 47% 50% 47% / 46% 51% 46% 51%;
    transform: scale(1);
  }
}

@keyframes haloPulse {
  0% {
    filter: blur(20px);
    opacity: 0.7;
  }

  50% {
    filter: blur(35px);
    opacity: 1;
  }

  100% {
    filter: blur(20px);
    opacity: 0.7;
  }
}


.juleyventino {
  width: 100%;
  max-width: min(500px, 90vw);
  height: auto;
  margin: clamp(1rem, 3vw, 2rem) auto;
  border: clamp(2px, 0.5vw, 3px) solid var(--stardust-pink);
  border-radius: clamp(8px, 2vw, 16px);
  box-shadow: 0 8px 24px rgba(219, 74, 143, 0.4);
  display: block;
}

.juliteatro {
  display: block;
  margin: clamp(1rem, 3vw, 2rem) auto;
  width: 100%;
  max-width: min(500px, 90vw);
  border-radius: clamp(12px, 3vw, 20px);
  box-shadow: var(--glow-purple);
  border: clamp(2px, 0.75vw, 4px) solid var(--mystic-purple);
}

.juliteatro2 {
  padding: clamp(10px, 3vw, 20px);
  height: auto;
  width: clamp(200px, 60vw, 300px);
  margin: clamp(1rem, 3vw, 2rem) auto;
  border-radius: clamp(12px, 3vw, 20px);
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.3);
  border: clamp(2px, 0.75vw, 4px) solid var(--mystic-purple);
}

/* ========================================
   PERFIL Y HEADER
   ======================================== */
.perfil {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--gradient-23);
  text-align: center;
  border-radius: clamp(1rem, 3vw, 1.5rem);

  border: clamp(1px, 0.25vw, 2px) solid var(--mystic-purple);
  width: min(95%, 600px);
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 2.5rem) clamp(0.75rem, 3vw, 1.5rem);
}

.perfil-contenido {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}



/* ========================================
   NAVEGACIÓN
   ======================================== */
.enlaces-inicio {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  align-items: center;
  width: 100%;
  max-width: 400px;

  text-shadow:
    0 0 10px rgba(251, 255, 0, 0.182),
    0 0 15px rgb(255, 255, 255);
}

.inicioa {
  display: inline-block;
  padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.75rem);
  border-radius: 50px;
  text-decoration: none;
  color: var(--text-light);
  background: var(--gradient-twilight);
  border: 2px solid var(--mystic-purple);
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: clamp(0.875rem, 2vw, 1rem);
  text-align: center;
  width: 100%;
  max-width: 280px;
}

.inicioa:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-purple);
  background: var(--gradient-starlight);
}

.inicioa i {
  margin-left: clamp(0.25rem, 1vw, 0.5rem);
}

.icono-luna {
  font-size: 1.6rem;
  color: var(--moon-glow);
  text-shadow:
    0 0 6px rgb(255, 255, 255),
    0 0 14px rgb(255, 217, 0);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.icono-luna:hover {
  transform: rotate(-15deg) scale(1.1);
  filter: brightness(1.2);
}


.instagram-icon {
  background: radial-gradient(circle at 30% 107%,
      #fdf497 0%,
      #fdf497 5%,
      #fd5949 45%,
      #d6249f 60%,
      #285AEB 90%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}


.spotify-icon {
  color: #1ed760;
  /* verde Spotify suavizado */
  font-size: 1.2rem;
  filter: drop-shadow(0 0 6px rgba(30, 215, 96, 0.45));
}


.youtube-icon {
  color: #ff0000;
  margin-left: 6px;
}



/* ========================================
   BOTONES
   ======================================== */
button {
  margin: clamp(4px, 1.5vw, 8px);
  padding: clamp(10px, 2.5vw, 16px) clamp(16px, 4vw, 28px);
  font-size: clamp(0.75rem, 2vw, 1rem);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  border-radius: clamp(8px, 2vw, 12px);
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

button:active {
  transform: translateY(0);
}

.btn-rosado {
  background: linear-gradient(135deg, var(--stardust-pink), #f472b6);
}

.btn-rosado:hover {
  background: linear-gradient(135deg, #f472b6, var(--stardust-pink));
  box-shadow: var(--glow-pink);
}

.btn-lila {
  background: linear-gradient(135deg, var(--cosmic-violet), #a855f7);
}

.btn-lila:hover {
  background: linear-gradient(135deg, #a855f7, var(--cosmic-violet));
  box-shadow: var(--glow-purple);
}

.btn-fux {
  background: linear-gradient(135deg, var(--celestial-lavender), #c084fc);
}

.btn-fux:hover {
  background: linear-gradient(135deg, #c084fc, var(--celestial-lavender));
  box-shadow: 0 8px 25px rgba(159, 139, 255, 0.5);
}

.btn-plo {
  background: linear-gradient(135deg, var(--aurora-cyan), #38bdf8);
}

.btn-plo:hover {
  background: linear-gradient(135deg, #38bdf8, var(--aurora-cyan));
  box-shadow: var(--glow-cyan);
}

.btn-pesadilla {
  background: var(--gradient-pesadilla);
}

.btn-pesadilla:hover {
  background: linear-gradient(135deg, #8E44AD, #5B2C6F, var(--cosmic-violet));
  box-shadow: 0 8px 25px rgba(159, 139, 255, 0.5);

}



/* ========================================
   SEPARADORES
   ======================================== */
.divider,
hr {
  border: none;
  height: clamp(2px, 0.5vw, 4px);
  background: var(--gradient-moon);
  border-radius: 2px;
  margin: clamp(1.5rem, 4vw, 2.5rem) 0;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: var(--glow-purple);
}

/* ========================================
   SECCIONES
   ======================================== */


.seccion {
  display: none;
  margin: clamp(1rem, 3vw, 2rem) auto;
  max-width: min(1000px, 95vw);
  border: clamp(2px, 0.5vw, 3px) solid var(--mystic-purple);
  padding: clamp(1rem, 4vw, 2.5rem);
  border-radius: clamp(12px, 3vw, 20px);
  background: linear-gradient(135deg, rgba(26, 11, 46, 0.95), rgba(76, 29, 149, 0.85));
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(10, 1, 24, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.seccion.activa {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* Sección Ventino */
.seccion.ventino {
  background: linear-gradient(135deg, rgba(11, 16, 40, 0.95), rgba(44, 27, 105, 0.9));
  border-color: var(--stardust-pink);
}

.ventino h2 {
  color: var(--stardust-pink);
  font-size: clamp(1.5rem, 4vw + 0.5rem, 2.5rem);
  text-shadow: var(--glow-pink);
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.ventino p {
  color: var(--text-silver);
  line-height: 1.8;
  font-weight: 500;
}

/* Sección Pesadilla con borde curvado estilo otras secciones */
.seccion.pesadilla {
  background-size: 100% 100%, 300% 300%;
  animation: pesadillaGlow 10s ease-in-out infinite;
  position: relative;
  max-width: min(700px, 95vw);
  padding: clamp(1rem, 4vw, 2.5rem);
  border-radius: clamp(12px, 3vw, 20px);
  overflow: hidden;

  /* Borde con el MISMO degradado del botón */
  background:
    linear-gradient(#1c1c1c, #2f2f2f) padding-box,
    var(--gradient-pesadilla) border-box;

  border: 3px solid transparent;

  box-shadow:
    0 0 25px rgba(142, 68, 173, 0.45),
    0 10px 40px rgba(0, 0, 0, 0.7);
}

.seccion.pesadilla h3 {
  font-size: clamp(1.4rem, 3.5vw + 0.5rem, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  text-align: center;

  /* Degradado EXACTO del botón y bordes */
  background: var(--gradient-pesadilla);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  /* Glow suave */
  text-shadow:
    0 0 10px rgba(179, 0, 255, 0.6),
    0 0 22px rgba(255, 255, 255, 0.45);
}



.seccion.pesadilla .tiktok-video {
  background-size: 100% 100%, 300% 300%;
  animation: pesadillaGlow 8s ease-in-out infinite;
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-width: clamp(180px, 40vw, 280px);
  margin: 0 auto;
  padding: 3px;
  /* grosor del borde */
  border-radius: clamp(12px, 3vw, 16px);
  overflow: hidden;

  background:
    linear-gradient(#1c1c1c, #2f2f2f) padding-box,
    var(--gradient-pesadilla) border-box;

  border: 2px solid transparent;

  box-shadow:
    0 0 18px rgba(142, 68, 173, 0.45),
    0 8px 25px rgba(0, 0, 0, 0.6);
}

.seccion.pesadilla .tiktok-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

@keyframes pesadillaGlow {
  0% {
    background-position: 0% 0%, 0% 50%;
  }

  50% {
    background-position: 0% 0%, 100% 50%;
  }

  100% {
    background-position: 0% 0%, 0% 50%;
  }
}




/* Sección Teatro */
.seccion.teatro {
  background: linear-gradient(135deg, rgba(11, 16, 40, 0.95), rgba(76, 29, 149, 0.9));
  border-color: var(--mystic-purple);
  max-width: min(650px, 95vw);
}

.teatro h2 {
  color: linear-gradient(135deg, rgba(11, 16, 40, 0.95), rgba(76, 29, 149, 0.9));
  font-size: clamp(1.5rem, 4vw + 0.5rem, 2.5rem);
  text-shadow: #9000ff;
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.teatro p,
.teatro blockquote {
  color: var(--aurora-cyan);
  line-height: 1.8;
  font-weight: 500;
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
}

/* Sección Salud Mental */
.seccion.saludmental1 {
  background: linear-gradient(135deg, rgba(11, 16, 40, 0.95), rgba(76, 29, 149, 0.9));
  border-color: var(--celestial-lavender);
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: min(1000px, 95vw);
}

.salud-texto {
  flex: 1 1 min(300px, 100%);
  max-width: 600px;
  color: var(--aurora-cyan);
}

.salud-texto h3 {
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
  color: var(--celestial-lavender);
  font-size: clamp(1.5rem, 4vw + 0.25rem, 2.25rem);
  text-shadow: var(--glow-pink);
}

.salud-texto p {
  margin-top: 0;
  color: var(--text-silver);
  font-weight: 500;
  line-height: 1.7;
}

/* ========================================
   VIDEOS
   ======================================== */
.tiktok-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-width: clamp(180px, 40vw, 280px);
  overflow: hidden;
  background: var(--deep-purple);
  border-radius: clamp(12px, 3vw, 16px);
  box-shadow: var(--glow-purple);
  flex-shrink: 0;
  border: 2px solid var(--celestial-lavender);
  margin: 0 auto;

}

.tiktok-video2 {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-width: clamp(180px, 40vw, 280px);
  overflow: hidden;
  background: var(--deep-purple);
  border-radius: clamp(12px, 3vw, 16px);
  box-shadow: var(--glow-purple);
  flex-shrink: 0;
  border: 2px solid var(--mystic-purple);
  margin: 0 auto;
}

.tiktok-video video,
.tiktok-video2 video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tiktok-contenedor {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2rem);
  justify-content: center;
  align-items: flex-start;
  margin: 0 auto;
  max-width: 100%;
  width: 100%;
}

/* ========================================
   ENLACES
   ======================================== */
a {
  position: relative;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--moon-glow);
  text-shadow: 0 0 8px rgba(199, 204, 218, 0.6);
}


/* ========================================
   LOADER
   ======================================== */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-sky);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: clamp(40px, 10vw, 60px);
  height: clamp(40px, 10vw, 60px);
  border: clamp(4px, 1vw, 6px) solid var(--deep-purple);
  border-top: clamp(4px, 1vw, 6px) solid var(--stardust-pink);
  border-radius: 50%;
}

/* ========================================
   FOOTER
   ======================================== */
.seccion2 {
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

footer.seccion2 {
  display: block;
  visibility: visible;
  opacity: 1;
  background: var(--gradient-starlight);
  color: var(--text-light);
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  font-size: clamp(0.875rem, 2vw, 1.125rem);
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  border: 3px solid var(--darker-night);
  border-radius: clamp(12px, 3vw, 20px);
  box-shadow: 0 10px 40px rgb(10, 1, 24);
  max-width: min(1000px, 95vw);
  width: 100%;
}

footer.seccion2 p {
  margin: clamp(0.25rem, 1vw, 0.5rem) 0;
  color: #000000;

  text-shadow:

    0 0 15px rgb(255, 255, 255);
}

/* ========================================
   RESPONSIVE MEDIA QUERIES
   ======================================== */

/* Extra Small Devices (portrait phones, menos de 360px) */
@media (max-width: 359px) {
  body {
    font-size: 0.8rem;
    padding: 0.5rem;
  }

  .perfil {
    padding: 0.75rem 0.5rem;
  }

  button {
    font-size: 0.7rem;
    padding: 8px 12px;
    margin: 3px;
  }

  .enlaces-inicio {
    gap: 0.5rem;
  }

  .julimg {
    width: 90px;
    height: 90px;
  }
}

/* Small Devices (landscape phones, 360px - 480px) */
@media (min-width: 360px) and (max-width: 480px) {
  .enlaces-inicio {
    max-width: 320px;
  }

  .inicioa {
    font-size: 0.9rem;
  }
}

/* Medium Devices (tablets, 481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  .seccion {
    padding: 1.5rem;
  }

  .enlaces-inicio {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 100%;
  }

  .inicioa {
    flex: 1 1 calc(50% - 1rem);
    max-width: 220px;
  }
}

/* Large Devices (small desktops, 768px - 1023px) */
@media (min-width: 768px) {
  .enlaces-inicio {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
  }

  .inicioa {
    flex: 0 1 auto;
    max-width: 200px;
  }

  .saludmental1 {
    flex-direction: row;
    align-items: flex-start;
  }

  .tiktok-video,
  .tiktok-video2 {
    max-width: 250px;
  }
}

/* Extra Large Devices (large desktops, 1024px y más) */
@media (min-width: 1024px) {
  body {
    padding: 2.5rem;
  }

  .contenedor-central {
    padding: 2rem;
  }

  .seccion {
    padding: 2.5rem 3rem;
  }

  button {
    padding: 14px 28px;
    font-size: 1rem;
  }
}

/* Landscape Orientation (altura baja) */
@media (max-height: 500px) and (orientation: landscape) {
  .perfil {
    padding: 1rem;
  }

  .contenedor-central {
    min-height: auto;
    padding: 0.5rem;
  }

  .nombre {
    font-size: clamp(1.25rem, 4vw, 2rem);
    margin: 0.5rem auto;
  }

  .p_inicio {
    font-size: clamp(0.75rem, 2vw, 1.25rem);
    margin-bottom: 0.75rem;
  }

  .julimg {
    width: clamp(80px, 20vw, 150px);
    height: clamp(80px, 20vw, 150px);
  }
}

/* Ultra Wide Screens (más de 1920px) */
@media (min-width: 1920px) {
  body {
    font-size: 1.25rem;
  }

  .seccion {
    padding: 3rem 4rem;
  }

  button {
    padding: 16px 32px;
    font-size: 1.125rem;
  }
}