/* ==========================================================================
   STYLE.CSS — Alex Baicu (versión limpia, sin !important)
   Índice: 1 Variables · 2 Base · 3 Layout · 4 Cabecera · 5 Hero · 6 Botones
           7 Tarjetas · 8 Formulario · 9 Pie · 10 Modo oscuro · 11 Responsive
   ========================================================================== */

/* 1. VARIABLES ----------------------------------------------------------- */
:root {
  /* Colores base */
  --negro: #08111F;
  --blanco-roto: #FFF9F0;
  --beige: #EAF2FF;

  /* Colores vivos */
  --terracota: #FF6B57;
  --dorado: #FFD447;
  --azul-vivo: #35D7FF;
  --verde-vivo: #5CFFB0;
  --rosa-vivo: #FF4FD8;
  --morado-vivo: #A978FF;

  /* Tipografía */
  --fuente-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --fuente-principal: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Espaciado */
  --radio-suave: 12px;
  --espacio-1: 4px;
  --espacio-2: 8px;
  --espacio-3: 12px;
  --espacio-4: 16px;
  --espacio-5: 24px;
  --espacio-6: 32px;
  --espacio-7: 48px;
  --espacio-8: 64px;
  --espacio-9: 96px;

  /* Sistema visual */
  --transicion: all 0.25s ease;

  --sombra-texto:
    0 2px 10px rgba(0, 0, 0, 0.85),
    0 0 14px rgba(53, 215, 255, 0.08);

  --velo:
    linear-gradient(
      180deg,
      rgba(8, 17, 31, 0.38) 0%,
      rgba(8, 17, 31, 0.58) 100%
    );

  --fondo-cabecera: rgba(8, 17, 31, 0.68);

  --color-titulo-h3: var(--azul-vivo);
  --color-eyebrow: var(--rosa-vivo);
}
/* 2. RESET Y BASE -------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--negro);
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--fuente-principal);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--blanco-roto);
  background: transparent;
  -webkit-font-smoothing: antialiased;
}

/* Sombra de texto: una sola regla para todo lo que va sobre la foto */
h1, h2, h3, p, .logo, .main-nav a, .contact-list, .copy, .form-field label {
  text-shadow: var(--sombra-texto);
}

h1, h2, h3 {
  font-family: var(--fuente-serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.005em;
  color: var(--blanco-roto);
}

h1 { font-size: clamp(3rem, 9vw, 5.5rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-bottom: var(--espacio-5); }
h3 { font-size: 1.25rem; margin-bottom: var(--espacio-3); color: var(--color-titulo-h3); }

p {
  font-weight: 300;
  line-height: 1.85;
  color: var(--beige);
  margin-bottom: var(--espacio-4);
}
p:last-child { margin-bottom: 0; }

ul { list-style: none; }

a {
  color: var(--dorado);
  text-decoration: none;
  transition: var(--transicion);
}
a:hover { color: var(--beige); }
a:focus-visible {
  outline: 3px solid var(--dorado);
  outline-offset: 3px;
  border-radius: var(--radio-suave);
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   FONDO ANIMADO
   ========================================================================== */

.bg-animated {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("fondo-voxel.png") center center / cover no-repeat;
    overflow: hidden;
}


@keyframes fondoVivo {
  0% {
    background-position: 0% 0%;
  }

  50% {
    background-position: 100% 40%;
  }

  100% {
    background-position: 20% 100%;
  }
}

.bg-veil {
  position: fixed;
  inset: 0;
  z-index: -1;

  background:
    linear-gradient(
      180deg,
      rgba(8, 17, 31, 0.18),
      rgba(8, 17, 31, 0.42)
    );

  pointer-events: none;
}

/* 3. LAYOUT -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--espacio-5);
}

.section { padding: var(--espacio-8) 0; }

.about-grid,
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--espacio-6);
  margin-top: var(--espacio-4);
}

/* 4. CABECERA Y NAVEGACIÓN ---------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--fondo-cabecera);
  border-bottom: 1px solid rgba(201, 166, 107, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--espacio-3);
  max-width: 900px;
  margin: 0 auto;
  padding: var(--espacio-4) var(--espacio-5);
}

.logo {
  font-family: var(--fuente-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blanco-roto);
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--espacio-5);
}

.main-nav a {
  position: relative;
  padding: var(--espacio-1) 0;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--beige);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--dorado);
  transition: var(--transicion);
}
.main-nav a:hover { color: var(--dorado); }
.main-nav a:hover::after { width: 100%; }

.theme-toggle {
  font-family: var(--fuente-principal);
  font-size: 0.78rem;
  color: var(--beige);
  background: transparent;
  border: 1px solid rgba(201, 166, 107, 0.4);
  padding: var(--espacio-2) var(--espacio-4);
  cursor: pointer;
  transition: var(--transicion);
}
.theme-toggle:hover { border-color: var(--dorado); color: var(--dorado); }

/* 5. HERO ---------------------------------------------------------------- */
.hero { padding: var(--espacio-9) 0; }
.hero-mini { padding: 120px 0 40px; }
.hero-consultas { padding: var(--espacio-9) 0 40px; }

.hero-content {
  max-width: 640px;
  padding-left: 8vw;
  text-align: left;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-eyebrow);
  margin-bottom: 1.4rem;
}

.hero-sub {
  font-family: var(--fuente-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  color: var(--beige);
  margin-bottom: 1.6rem;
}

.hero-desc {
  max-width: 42ch;
  font-size: 1.02rem;
  margin-bottom: 2.4rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--espacio-4);
}

/* Nombre con cursor de máquina de escribir */
.hero h1:has(#nombre) { white-space: nowrap; overflow: hidden; }
.hero h1:has(#nombre)::after {
  content: "|";
  display: inline-block;
  margin-left: 6px;
  font-weight: 400;
  color: var(--dorado);
  animation: parpadeo 1s steps(2) infinite;
}

/* 6. BOTONES ------------------------------------------------------------- */
.button,
.button-secondary {
  display: inline-block;
  padding: 14px 30px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dorado);
  background: transparent;
  border: 1px solid var(--dorado);
  transition: var(--transicion);
}
.button:hover,
.button-secondary:hover {
  background: var(--dorado);
  color: var(--negro);
  text-shadow: none;
}

/* 7. TARJETAS Y ETIQUETAS ----------------------------------------------- */
.card {
  padding: var(--espacio-5) 0;
  border-top: 1px solid rgba(201, 166, 107, 0.35);
  transition: var(--transicion);
}
.card:hover { transform: translateY(-4px); }
.card p { font-size: 0.95rem; }

.emoji {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: var(--espacio-3);
}

.tag {
  display: inline-block;
  padding: var(--espacio-1) var(--espacio-3);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracota);
  border: 1px solid rgba(181, 101, 74, 0.5);
}

/* 8. FORMULARIO DE CONSULTAS -------------------------------------------- */
.form-consultas {
  display: grid;
  gap: 22px;
  max-width: 560px;
  margin: 0 auto;
}
.form-consultas .button { justify-self: start; }

.form-field { display: grid; gap: var(--espacio-2); }

.form-field label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dorado);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px var(--espacio-4);
  font-family: var(--fuente-principal);
  font-size: 1rem;
  color: var(--blanco-roto);
  background: rgba(12, 10, 9, 0.55);
  border: 1px solid rgba(201, 166, 107, 0.4);
  border-radius: 0;
  transition: border-color 0.25s, background 0.25s;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(232, 226, 214, 0.5); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--dorado);
  background: rgba(12, 10, 9, 0.75);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field select { appearance: none; }

.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check input { width: auto; margin-top: var(--espacio-1); accent-color: var(--dorado); }
.form-check label {
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--beige);
}

.form-feedback {
  padding: 14px var(--espacio-4);
  font-size: 0.9rem;
  color: var(--beige);
  background: rgba(12, 10, 9, 0.6);
  border-left: 2px solid var(--dorado);
}
.form-feedback.error { border-left-color: var(--terracota); color: #F3C9BC; }

/* 9. PIE DE PÁGINA ------------------------------------------------------- */
.site-footer {
  margin-top: var(--espacio-8);
  padding: var(--espacio-8) 0 var(--espacio-6);
  border-top: 1px solid rgba(201, 166, 107, 0.2);
}

.footer-inner { text-align: center; }
.footer-inner h2 { color: var(--beige); }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--espacio-2);
  margin-bottom: var(--espacio-6);
  font-style: normal;
}
.contact-list a { font-weight: 600; font-size: 1.05rem; }
.contact-list span { color: rgba(232, 226, 214, 0.85); }

.gh-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--espacio-2);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.gh-link svg { flex: 0 0 auto; }

.copy { font-size: 0.9rem; color: rgba(232, 226, 214, 0.6); }

/* 10. MODO OSCURO -------------------------------------------------------- */
/* Solo se redefinen las variables: el resto de reglas no se repite */
body.dark-mode {
  --velo: linear-gradient(180deg, rgba(11, 18, 32, 0.30) 0%, rgba(11, 18, 32, 0.20) 100%);
  --fondo-cabecera: rgba(11, 23, 38, 0.55);
  --sombra-texto: 0 1px 6px rgba(0, 0, 0, 0.75), 0 0 2px rgba(0, 0, 0, 0.5);
  --color-titulo-h3: var(--terracota);
  --color-eyebrow: var(--terracota);
}

/* 11. RESPONSIVE Y ACCESIBILIDAD ---------------------------------------- */
@media (max-width: 768px) {
  .section { padding: var(--espacio-7) 0; }
  .hero { padding: var(--espacio-8) 0; }

  .header-inner { flex-direction: column; text-align: center; }
  .main-nav ul { justify-content: center; gap: var(--espacio-4); }

  .about-grid,
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  html { font-size: 95%; }

  .container { padding: 0 var(--espacio-4); }
  .header-inner { padding: var(--espacio-3) var(--espacio-4); }
  .main-nav ul { gap: var(--espacio-3); }
  .main-nav a { font-size: 0.7rem; }

  .section { padding: var(--espacio-6) 0; }
  .hero { padding: var(--espacio-7) 0; }
  .hero-buttons .button,
  .hero-buttons .button-secondary { width: 100%; text-align: center; }

  .site-footer { padding: var(--espacio-7) 0 var(--espacio-5); margin-top: var(--espacio-7); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero h1::after {
    content: "";
  }
}

/* ==========================================================================
   COLORES DEL MUNDO VOXEL
   ========================================================================== */

body:not(.dark-mode) {
  --velo:
    linear-gradient(
      180deg,
      rgba(18, 25, 35, 0.10) 0%,
      rgba(18, 25, 35, 0.18) 100%
    );

  --fondo-cabecera: rgba(12, 18, 25, 0.32);

  --color-titulo-h3: #ffd166;
  --color-eyebrow: #ff6b4a;
}

body.dark-mode {
  --velo:
    linear-gradient(
      180deg,
      rgba(4, 10, 18, 0.42) 0%,
      rgba(4, 10, 18, 0.58) 100%
    );

  --fondo-cabecera: rgba(4, 10, 18, 0.58);

  --color-titulo-h3: #ffd166;
  --color-eyebrow: #ff7658;
}
/* 14. PORTADA: suelo con agujeros y dinosaurio */
.pista {
  --suelo: #F5C04A;
  position: relative;
  width: 100%;
  height: auto;
  pointer-events: none;
  margin-top: var(--espacio-7);
}



.suelo {
  position: absolute;
  left: 37.5%;
  width: 53%;
  top: 48.2%;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

/* Trozos de suelo entre agujeros */
.tramo {
  flex: 1;
  height: 14px;
  border-top: 3px solid var(--suelo);
  box-shadow: 0 -1px 14px rgba(245, 192, 74, 0.45);
  background: repeating-linear-gradient(90deg, var(--suelo) 0 10px, transparent 10px 34px)
              0 8px / 100% 2px no-repeat;
}
.tramo:first-child { flex: 2.2; }   /* sitio para el dinosaurio */
.tramo:last-child  { flex: 0.6; }

/* ==========================================================================
   BOTONES DE NAVEGACIÓN — ESTILO BOTÓN ROJO
   ========================================================================== */

.agujero {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 76px;
  height: 76px;

  flex-shrink: 0;

  border-radius: 50%;

  /* Botón rojo */
  background:
    radial-gradient(
      circle at 35% 28%,
      #ff7777 0%,
      #ff2929 35%,
      #d90000 68%,
      #8f0000 100%
    );

  /* Borde metálico */
  border: 5px solid #555;

  /* Brillo y profundidad */
  box-shadow:
    inset 0 5px 8px rgba(255, 255, 255, 0.45),
    inset 0 -8px 12px rgba(70, 0, 0, 0.55),
    0 5px 8px rgba(0, 0, 0, 0.45);

  color: white;

  text-decoration: none;

  font-family: "Inter", sans-serif;
  font-size: 0.65rem;
  font-weight: 800;

  letter-spacing: 0.04em;

  text-align: center;

  line-height: 1.05;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}


/* BRILLO DEL BOTÓN */

.agujero::before {
  content: "";

  position: absolute;

  top: 9px;
  left: 13px;

  width: 30px;
  height: 15px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.32);

  transform: rotate(-20deg);

  pointer-events: none;
}


/* AL PASAR EL RATÓN */

.agujero:hover {
  transform: scale(1.06);

  filter: brightness(1.12);

  box-shadow:
    inset 0 5px 8px rgba(255, 255, 255, 0.5),
    inset 0 -8px 12px rgba(70, 0, 0, 0.55),
    0 7px 14px rgba(0, 0, 0, 0.55);
}


/* BOTÓN ACTIVO CUANDO ATERRIZA EL DINOSAURIO */

.agujero.activo {
  filter: brightness(1.18);

  box-shadow:
    0 0 12px rgba(255, 30, 30, 0.8),
    0 0 28px rgba(255, 0, 0, 0.45),
    inset 0 5px 8px rgba(255, 255, 255, 0.45),
    inset 0 -8px 12px rgba(70, 0, 0, 0.55);
}

/* Cuando el dinosaurio cae encima */
.agujero.activo {
  transform: translateY(4px);
  box-shadow: 0 0 0 rgba(0,0,0,0.35);
}


/* La clase .activo la pondrá el dinosaurio al saltar */
.agujero.activo { animation: destello 0.7s ease-out; }
@keyframes destello {
  0%   { box-shadow: inset 0 0 0 rgba(245, 192, 74, 0), 0 0 0 rgba(245, 192, 74, 0); }
  40%  { box-shadow: inset 0 -16px 26px -4px rgba(245, 192, 74, 0.9), 0 0 28px rgba(245, 192, 74, 0.8); }
  100% { box-shadow: inset 0 -10px 18px -6px rgba(245, 192, 74, 0.55), 0 0 14px rgba(245, 192, 74, 0.45); }
}



/* Móvil: el suelo va debajo del texto, encima de Contacto */
@media (max-width: 768px) {
  .pista {
    position: relative;
    height: auto;
    padding: 80px var(--espacio-4) var(--espacio-6);
  }
  .suelo {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
  }
  .tramo:first-child { flex: 0 0 16%; }   /* sitio para el dinosaurio */
  .tramo:last-child  { flex: 1; }
  .agujero {
    flex-basis: 15%;
    font-size: 0.5rem;
    letter-spacing: 0.04em;
  }
  

  /* Que el texto de presentación no toque el borde derecho */
  .hero-content { padding-right: 8vw; }
}/* Móvil (portada): la cabecera se queda arriba y no sigue al hacer scroll */
@media (max-width: 768px) {
  .home .site-header { position: static; }
}
/* ==========================================================================
   14. DINOSAURIO
   ========================================================================== */

.efecto-dino {
  position: absolute;

  /* El dinosaurio empieza bastante antes de los apartados */
  left: 8%;
  top: 48.2%;

  width: 110px;
  height: 105px;

  z-index: 10;
  pointer-events: none;

  --flip: 1;
  --dust-direction: -1;
}


/* --------------------------------------------------------------------------
   DINOSAURIO
   -------------------------------------------------------------------------- */

.dino {
  position: absolute;

  left: 0;
  bottom: 0;

  height: clamp(70px, 9vh, 105px);
  width: auto;

  transform-origin: center bottom;
  transform: scaleX(var(--flip));

  filter: drop-shadow(0 5px 2px rgba(0, 0, 0, 0.25));
}


/* --------------------------------------------------------------------------
   CARRERA
   -------------------------------------------------------------------------- */

/* ==========================================================================
   DINOSAURIO — CARRERA + PASOS + SALTO + ENTRADA
   ========================================================================== */

/* CARRERA DEL CONTENEDOR */
.efecto-dino.corriendo {
  animation: correrDino var(--tiempo-carrera) linear forwards;
}

@keyframes correrDino {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(var(--destino-x));
  }
}


/* PASOS DEL DINOSAURIO */
.dino.corriendo {
  animation: pasosDino 0.18s ease-in-out infinite;
}

@keyframes pasosDino {
  0% {
    transform:
      scaleX(var(--flip))
      translateY(0);
  }

  50% {
    transform:
      scaleX(var(--flip))
      translateY(-4px);
  }

  100% {
    transform:
      scaleX(var(--flip))
      translateY(0);
  }
}


/* POLVO DURANTE LA CARRERA */
.efecto-dino.corriendo .polvo1 {
  animation: polvoDino 0.54s ease-out infinite;
}

.efecto-dino.corriendo .polvo2 {
  animation: polvoDino 0.54s ease-out infinite 0.18s;
}

.efecto-dino.corriendo .polvo3 {
  animation: polvoDino 0.54s ease-out infinite 0.36s;
}

@keyframes polvoDino {
  0% {
    opacity: 0;
    transform:
      translateX(0)
      translateY(0)
      scale(0.4);
  }

  15% {
    opacity: 0.6;
  }

  100% {
    opacity: 0;
    transform:
      translateX(calc(30px * var(--dust-direction)))
      translateY(7px)
      scale(1.7);
  }
}


/* SALTO */
.dino.saltando {
  animation: saltoDino 0.65s cubic-bezier(.2, .75, .3, 1) forwards;
}

@keyframes saltoDino {

  0% {
    transform:
      scaleX(var(--flip))
      scaleY(0.88)
      translateY(3px);
  }

  10% {
    transform:
      scaleX(var(--flip))
      scaleY(1.04)
      translateY(-8px);
  }

  30% {
    transform:
      scaleX(var(--flip))
      scaleY(1.06)
      translateY(-42px);
  }

  45% {
    transform:
      scaleX(var(--flip))
      scaleY(1.03)
      translateY(-65px);
  }

  55% {
    transform:
      scaleX(var(--flip))
      scaleY(1)
      translateY(-70px);
  }

  75% {
    transform:
      scaleX(var(--flip))
      scaleY(0.97)
      translateY(-35px);
  }

  88% {
    transform:
      scaleX(var(--flip))
      scaleY(0.94)
      translateY(-5px);
  }

  94% {
    transform:
      scaleX(var(--flip))
      scaleY(0.82)
      translateY(2px);
  }

  100% {
    transform:
      scaleX(var(--flip))
      scaleY(1)
      translateY(0);
  }
}


/* ENTRADA EN EL AGUJERO */
.dino.entrando {
  animation: entrarAgujero 0.35s ease-in forwards;
}

@keyframes entrarAgujero {

  0% {
    transform:
      scaleX(var(--flip))
      scaleY(1)
      translateY(0);
    opacity: 1;
  }

  60% {
    transform:
      scaleX(var(--flip))
      scaleY(0.85)
      translateY(8px);
    opacity: 1;
  }

  100% {
    transform:
      scaleX(var(--flip))
      scaleY(0.2)
      translateY(20px);
    opacity: 0;
  }
}


/* ATERRIZAJE DEL AGUJERO */
.agujero.activo {
  animation: aterrizaje 0.65s ease-out;
}

@keyframes aterrizaje {
  0% {
    transform: translateY(0);
  }

  45% {
    transform: translateY(6px);
  }

  65% {
    transform: translateY(2px);
  }

  80% {
    transform: translateY(4px);
  }

  100% {
    transform: translateY(0);
  }
}


/* SOMBRA DURANTE EL SALTO */
.dino.saltando {
  filter: drop-shadow(0 15px 5px rgba(0, 0, 0, 0.18));
}


/* MÓVIL */
@media (max-width: 768px) {

  .efecto-dino {
    left: 5%;
    top: 80px;
    width: 65px;
    height: 56px;
  }

  .dino {
    height: 56px;
  }
}
/* ==========================================================================
   CONTACTO — DISEÑO
   ========================================================================== */

.contacto-section {
  padding-top: 70px;
  padding-bottom: 100px;
}

.contacto-intro {
  max-width: 650px;
  margin: 0 auto 55px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.8;
  opacity: 0.8;
}


/* ==========================================================================
   GRID DE CONTACTO
   ========================================================================== */

.contacto-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto 70px;
}


/* ==========================================================================
   TARJETAS
   ========================================================================== */

.contacto-card {
  position: relative;

  display: flex;
  align-items: center;
  gap: 22px;

  min-height: 150px;
  padding: 30px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;

  background: rgba(255, 255, 255, 0.055);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    0 15px 45px rgba(0, 0, 0, 0.12);

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;

  text-decoration: none;
  color: inherit;
}


.contacto-card:hover {
  transform: translateY(-7px);

  border-color: rgba(255, 255, 255, 0.3);

  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.2);
}


/* TARJETA PRINCIPAL */

.contacto-card-grande {
  min-height: 190px;

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.10),
      rgba(255, 255, 255, 0.035)
    );
}


/* ==========================================================================
   ICONOS
   ========================================================================== */

.contacto-icono {
  flex: 0 0 auto;

  width: 64px;
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 18px;

  background: rgba(255, 255, 255, 0.10);

  font-size: 30px;

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}


/* ==========================================================================
   TEXTOS
   ========================================================================== */

.contacto-label {
  display: block;

  margin-bottom: 7px;

  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 500;

  opacity: 0.6;
}


.contacto-card h3 {
  margin: 0;

  font-family: "Playfair Display", serif;

  font-size: 1.45rem;
  font-weight: 600;
}


.contacto-card p {
  margin: 8px 0 0;

  font-size: 0.92rem;

  opacity: 0.65;
}


/* ==========================================================================
   LINKEDIN
   ========================================================================== */

.linkedin-icono {
  background: #0a66c2;
  color: white;
}


.linkedin-icono svg {
  width: 34px;
  height: 34px;

  fill: currentColor;
}


/* ==========================================================================
   MAPA
   ========================================================================== */

.mapa-bloque {
  max-width: 1000px;
  margin: 0 auto;

  padding: 32px;

  border-radius: 26px;

  background: rgba(255, 255, 255, 0.055);

  border: 1px solid rgba(255, 255, 255, 0.12);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.15);
}


.mapa-cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;

  margin-bottom: 25px;
}


.mapa-cabecera h3 {
  margin: 5px 0;

  font-family: "Playfair Display", serif;
  font-size: 2rem;
}


.mapa-cabecera p {
  margin: 0;
  opacity: 0.65;
}


/* BOTÓN MAPA */

.boton-mapa {
  flex-shrink: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 22px;

  border-radius: 999px;

  background: currentColor;

  color: inherit;

  text-decoration: none;

  font-size: 0.9rem;
  font-weight: 500;

  border: 1px solid rgba(255, 255, 255, 0.2);

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}


.boton-mapa:hover {
  transform: translateY(-3px);
  opacity: 0.8;
}


/* CONTENEDOR DEL MAPA */

.mapa-contenedor {
  width: 100%;
  height: 400px;

  overflow: hidden;

  border-radius: 18px;

  border: 1px solid rgba(255, 255, 255, 0.12);

  background: rgba(0, 0, 0, 0.2);
}


.mapa-contenedor iframe {
  width: 100%;
  height: 100%;

  border: 0;
  display: block;
}


/* ==========================================================================
   MÓVIL
   ========================================================================== */

@media (max-width: 768px) {

  .contacto-grid {
    grid-template-columns: 1fr;
  }

  .contacto-card {
    min-height: 130px;
    padding: 22px;
  }

  .contacto-card h3 {
    font-size: 1.2rem;
  }

  .mapa-bloque {
    padding: 20px;
  }

  .mapa-cabecera {
    flex-direction: column;
    align-items: flex-start;
  }

  .mapa-cabecera h3 {
    font-size: 1.7rem;
  }

  .boton-mapa {
    width: 100%;
  }

  .mapa-contenedor {
    height: 320px;
  }

}@media (max-width: 768px) {

  .suelo {
    gap: 8px;
  }

  .suelo .agujero {
    width: 52px;
    height: 52px;

    border-width: 3px;

    font-size: 0.48rem;
    letter-spacing: 0.02em;
  }

  .agujero::before {
    top: 6px;
    left: 8px;

    width: 20px;
    height: 9px;
  }

  .suelo .tramo {
    min-width: 4px;
  }

}/* Los botones de navegación sí deben poder recibir clics */

.suelo,
.agujero {
  pointer-events: auto;
}/* ==========================================================================
   PROYECTOS — CASOS DE ESTUDIO
   ========================================================================== */

.proyectos-section {
  padding-top: 70px;
  padding-bottom: 80px;
}

.proyectos-intro {
  max-width: 700px;
  margin-bottom: 45px;
  font-size: 1.02rem;
}


/* ==========================================================================
   FILTROS
   ========================================================================== */

.filtros-proyectos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 45px;
}

.filtro-proyecto {
  appearance: none;

  padding: 10px 18px;

  border: 1px solid rgba(201, 166, 107, 0.45);

  background: rgba(12, 10, 9, 0.28);

  color: var(--beige);

  font-family: var(--fuente-principal);
  font-size: 0.72rem;
  font-weight: 600;

  letter-spacing: 0.12em;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.filtro-proyecto:hover {
  transform: translateY(-2px);
  border-color: var(--dorado);
  color: var(--dorado);
}

.filtro-proyecto.activo {
  background: var(--dorado);
  border-color: var(--dorado);
  color: var(--negro);
  text-shadow: none;
}


/* ==========================================================================
   LISTA DE PROYECTOS
   ========================================================================== */

.proyectos-lista {
  display: grid;
  gap: 36px;
}

.proyecto {
  position: relative;

  padding: 42px;

  border: 1px solid rgba(201, 166, 107, 0.22);

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.018)
    );

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.16);

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    opacity 0.3s ease;
}

.proyecto:hover {
  transform: translateY(-5px);

  border-color: rgba(201, 166, 107, 0.45);
}


/* PROYECTO DESTACADO */

.proyecto-destacado {
  border-color: rgba(181, 101, 74, 0.55);

  background:
    linear-gradient(
      135deg,
      rgba(181, 101, 74, 0.10),
      rgba(255, 255, 255, 0.02)
    );
}
/* ACENTOS DE COLOR EN LOS PROYECTOS */

.proyecto[data-categories="ecommerce"] {
  border-color: rgba(255, 107, 74, 0.45);
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 107, 74, 0.12), transparent 30%),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.018)
    );
}

.proyecto-destacado {
  border-color: rgba(92, 200, 255, 0.5);
  background:
    radial-gradient(circle at 90% 10%, rgba(92, 200, 255, 0.14), transparent 30%),
    radial-gradient(circle at 10% 90%, rgba(125, 255, 178, 0.08), transparent 28%),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.018)
    );
}

/* PROYECTO OCULTO */

.proyecto.oculto {
  display: none;
}


/* ==========================================================================
   CABECERA DEL PROYECTO
   ========================================================================== */

.proyecto-numero {
  position: absolute;

  top: 28px;
  right: 36px;

  font-family: var(--fuente-serif);

  font-size: 4.5rem;
  line-height: 1;

  color: rgba(201, 166, 107, 0.10);
}

.proyecto-cabecera {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 25px;

  margin-bottom: 38px;
}

.proyecto-tipo {
  display: inline-block;

  margin-bottom: 10px;

  font-size: 0.7rem;
  font-weight: 600;

  letter-spacing: 0.18em;

  color: var(--terracota);
}

.proyecto h3 {
  margin-bottom: 0;

  font-family: var(--fuente-serif);
  font-size: clamp(2rem, 4vw, 3rem);

  color: var(--blanco-roto);
}

.proyecto-estado {
  flex-shrink: 0;

  padding: 7px 12px;

  border: 1px solid rgba(201, 166, 107, 0.35);

  font-size: 0.65rem;
  font-weight: 600;

  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: var(--dorado);
}


/* ==========================================================================
   CONTENIDO
   ========================================================================== */

.proyecto-contenido {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.proyecto-bloque {
  padding-top: 20px;

  border-top: 1px solid rgba(201, 166, 107, 0.22);
}

.proyecto-label {
  display: block;

  margin-bottom: 12px;

  font-size: 0.7rem;
  font-weight: 600;

  letter-spacing: 0.18em;

  color: var(--dorado);
}

.proyecto-bloque p {
  margin-bottom: 14px;

  font-size: 0.95rem;
}

.proyecto-bloque strong {
  color: var(--blanco-roto);
  font-weight: 500;
}


/* ==========================================================================
   HERRAMIENTAS
   ========================================================================== */

.proyecto-herramientas {
  grid-column: span 2;
}

.proyecto-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.proyecto-tags .tag {
  margin: 0;
}


/* ==========================================================================
   APRENDIZAJE
   ========================================================================== */
/* ==========================================================================
   RECURSOS VISUALES
   ========================================================================== */

.proyecto-visuales {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 5px;
}

.visual-item {
  overflow: hidden;
  border: 1px solid rgba(201, 166, 107, 0.22);
  background: rgba(12, 10, 9, 0.35);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.visual-item:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 166, 107, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.visual-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.visual-item:hover img {
  transform: scale(1.03);
}

.visual-item span {
  display: block;
  padding: 13px 16px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dorado);
}

@media (max-width: 768px) {
  .proyecto-visuales {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
}

.proyecto-aprendizaje {
  grid-column: span 2;
}

.proyecto-aprendizaje blockquote {
  margin-top: 25px;
  padding-left: 20px;

  border-left: 2px solid var(--terracota);

  font-family: var(--fuente-serif);
  font-style: italic;
  font-size: 1.15rem;

  color: var(--beige);
}


/* ==========================================================================
   CIERRE
   ========================================================================== */

.proyectos-cierre {
  padding-top: 70px;
  padding-bottom: 100px;
}

.proyectos-cierre .container {
  max-width: 700px;
}

.proyectos-cierre p:last-child {
  max-width: 650px;
}


/* ==========================================================================
   MÓVIL
   ========================================================================== */

@media (max-width: 768px) {

  .proyectos-section {
    padding-top: 45px;
  }

  .filtros-proyectos {
    gap: 8px;
  }

  .filtro-proyecto {
    padding: 9px 12px;
    font-size: 0.62rem;
  }

  .proyecto {
    padding: 28px 22px;
  }

  .proyecto-numero {
    top: 20px;
    right: 20px;
    font-size: 3.2rem;
  }

  .proyecto-cabecera {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 28px;
  }

  .proyecto h3 {
    font-size: 2rem;
    padding-right: 45px;
  }

  .proyecto-contenido {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .proyecto-herramientas,
  .proyecto-aprendizaje {
    grid-column: auto;
  }

}/* ==========================================================================
   SOBRE MÍ — DISEÑO DE PERFIL
   ========================================================================== */

.perfil-section {
  padding-top: 70px;
  padding-bottom: 70px;
}


/* PRESENTACIÓN */

.perfil-presentacion {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
  max-width: 1000px;
}

.perfil-titulo h2 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4rem);
}

.perfil-numero {
  display: block;
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--terracota);
}

.perfil-texto p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.perfil-texto strong {
  color: var(--blanco-roto);
}


/* TARJETAS */

.perfil-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 1000px;
}

.perfil-card {
  position: relative;
  padding: 30px;
  min-height: 210px;

  border: 1px solid rgba(201, 166, 107, 0.22);

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.015)
    );

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.12);

  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.perfil-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 166, 107, 0.45);
}

.perfil-card-destacada {
  border-color: rgba(181, 101, 74, 0.45);

  background:
    linear-gradient(
      135deg,
      rgba(181, 101, 74, 0.10),
      rgba(255, 255, 255, 0.02)
    );
}

.perfil-card-numero {
  position: absolute;
  top: 18px;
  right: 22px;

  font-family: var(--fuente-serif);
  font-size: 3rem;

  color: rgba(201, 166, 107, 0.10);
}

.perfil-card-label {
  display: block;
  margin-bottom: 12px;

  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;

  color: var(--dorado);
}

.perfil-card h3 {
  margin-bottom: 14px;

  font-family: var(--fuente-serif);
  font-size: 1.55rem;

  color: var(--blanco-roto);
}

.perfil-card p {
  font-size: 0.93rem;
}


/* TECNOLOGÍAS */

.perfil-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.perfil-tags .tag {
  margin: 0;
}


/* OBJETIVO */

.objetivo-panel {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 40px;

  padding: 48px;
  max-width: 1000px;

  border: 1px solid rgba(181, 101, 74, 0.42);

  background:
    linear-gradient(
      135deg,
      rgba(181, 101, 74, 0.12),
      rgba(255, 255, 255, 0.025)
    );

  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.15);
}

.objetivo-numero {
  font-family: var(--fuente-serif);
  font-size: 5rem;
  line-height: 1;

  color: rgba(201, 166, 107, 0.18);
}

.objetivo-contenido h2 {
  margin-bottom: 22px;
}


/* INTERESES */

.perfil-intereses {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.interes-item {
  padding-top: 22px;
  border-top: 1px solid rgba(201, 166, 107, 0.28);
}

.interes-icono {
  display: block;
  margin-bottom: 16px;
  font-size: 2rem;
}

.interes-item h3 {
  margin-bottom: 10px;
}

.interes-item p {
  font-size: 0.9rem;
}


/* MÓVIL */

@media (max-width: 768px) {

  .perfil-presentacion {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .perfil-grid {
    grid-template-columns: 1fr;
  }

  .objetivo-panel {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px;
  }

  .objetivo-numero {
    font-size: 3.5rem;
  }

  .perfil-intereses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 18px;
  }

}


@media (max-width: 480px) {

  .perfil-section {
    padding-top: 50px;
    padding-bottom: 55px;
  }

  .perfil-titulo h2 {
    font-size: 2.35rem;
  }

  .perfil-card {
    padding: 24px;
    min-height: 0;
  }

  .objetivo-panel {
    padding: 24px;
  }

  .perfil-intereses {
    grid-template-columns: 1fr;
  }

}/* ==========================================================================
   ME GUSTA — DISEÑO DE INTERESES
   ========================================================================== */

.gustos-section {
  padding-top: 70px;
  padding-bottom: 70px;
}

.gustos-intro {
  max-width: 680px;
  margin-bottom: 45px;
}


/* ==========================================================================
   GRID
   ========================================================================== */

.gustos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}


/* ==========================================================================
   TARJETAS
   ========================================================================== */

.gusto-card {
  position: relative;

  min-height: 300px;

  padding: 32px;

  overflow: hidden;

  border: 1px solid rgba(201, 166, 107, 0.22);

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.012)
    );

  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.14);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}


.gusto-card::after {
  content: "";

  position: absolute;

  width: 180px;
  height: 180px;

  right: -60px;
  bottom: -70px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(181, 101, 74, 0.20),
      transparent 70%
    );

  pointer-events: none;

  transition: transform 0.4s ease;
}


.gusto-card:hover {
  transform: translateY(-8px);

  border-color: rgba(201, 166, 107, 0.48);

  box-shadow:
    0 28px 65px rgba(0, 0, 0, 0.22);
}


.gusto-card:hover::after {
  transform: scale(1.35);
}


/* ==========================================================================
   CABECERA DE TARJETA
   ========================================================================== */

.gusto-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  margin-bottom: 30px;
}


.gusto-numero {
  font-family: var(--fuente-serif);

  font-size: 4rem;
  line-height: 0.9;

  color: rgba(201, 166, 107, 0.12);
}


.gusto-icono {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 66px;
  height: 66px;

  border-radius: 18px;

  background: rgba(255, 255, 255, 0.08);

  font-size: 31px;

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}


/* ==========================================================================
   TEXTO
   ========================================================================== */

.gusto-label {
  display: block;

  margin-bottom: 10px;

  font-size: 0.7rem;
  font-weight: 600;

  letter-spacing: 0.18em;

  color: var(--dorado);
}


.gusto-card h3 {
  margin-bottom: 15px;

  font-family: var(--fuente-serif);

  font-size: 1.75rem;

  color: var(--blanco-roto);
}


.gusto-card p {
  max-width: 48ch;

  font-size: 0.94rem;
}


/* ==========================================================================
   COLORES DE ACENTO
   ========================================================================== */

.gusto-informatica {
  border-color: rgba(201, 166, 107, 0.35);
}

.gusto-deporte {
  border-color: rgba(181, 101, 74, 0.38);
}

.gusto-cocina {
  border-color: rgba(201, 166, 107, 0.28);
}

.gusto-amigos {
  border-color: rgba(181, 101, 74, 0.32);
}


/* ==========================================================================
   CIERRE
   ========================================================================== */

.gustos-cierre {
  padding-top: 30px;
  padding-bottom: 100px;
}


.gustos-cierre-panel {
  max-width: 850px;

  padding: 50px;

  border-left: 3px solid var(--terracota);

  background:
    linear-gradient(
      90deg,
      rgba(181, 101, 74, 0.09),
      rgba(255, 255, 255, 0.015)
    );
}


.gustos-cierre-panel h2 {
  max-width: 700px;

  margin: 0;

  font-size: clamp(2rem, 4vw, 3.2rem);
}


/* ==========================================================================
   MÓVIL
   ========================================================================== */

@media (max-width: 768px) {

  .gustos-grid {
    grid-template-columns: 1fr;
  }

  .gusto-card {
    min-height: 250px;
    padding: 26px;
  }

  .gusto-numero {
    font-size: 3.2rem;
  }

  .gusto-icono {
    width: 58px;
    height: 58px;
    font-size: 27px;
  }

  .gustos-cierre-panel {
    padding: 32px 24px;
  }

}


@media (max-width: 480px) {

  .gustos-section {
    padding-top: 50px;
  }

  .gusto-card {
    min-height: 0;
  }

  .gustos-cierre {
    padding-bottom: 70px;
  }

}/* ==========================================================================
   PORTADA — FONDO VOXEL
   ========================================================================== */

.home .bg-animated {
  background:
    url("fondo-voxel.png")
    center center / cover
    no-repeat;
  background-color: #78c9f5;
}

.home .bg-veil {
  background:
    linear-gradient(
      180deg,
      rgba(5, 18, 30, 0.08) 0%,
      rgba(5, 18, 30, 0.22) 100%
    );
}/* ==========================================================================

  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(100vw + 600px));
  }
}/* ==========================================================================
   MÓVIL — NAVEGACIÓN + DINOSAURIO
   ========================================================================== */

@media (max-width: 768px) {

  /* La navegación aprovecha mejor el ancho disponible */
  .pista {
    width: 100%;
    padding-left: 8px;
    padding-right: 8px;
    overflow: visible;
  }

  .suelo {
    width: 100%;
    gap: clamp(2px, 1.2vw, 6px);
  }

  /* Reducimos solo lo necesario para que entre incluso en móviles pequeños */
  .tramo:first-child {
    flex: 0 0 8%;
  }

  .tramo {
    min-width: 2px;
  }

  .suelo .agujero {
    width: clamp(44px, 14vw, 58px);
    height: clamp(48px, 14vw, 58px);

    flex: 0 0 auto;
    border-width: 3px;

    padding: 3px;

    font-size: clamp(0.38rem, 1.9vw, 0.50rem);
    line-height: 1.05;
    letter-spacing: 0.01em;

    overflow-wrap: break-word;
    text-align: center;
  }

  .agujero::before {
    top: 5px;
    left: 7px;

    width: 18px;
    height: 8px;
  }

  /* Dinosaurio un poco más visible */
  .efecto-dino {
    left: 4%;
    top: 76px;

    width: 72px;
    height: 62px;
  }

  .dino {
    height: clamp(54px, 15vw, 64px);
  }

  /* Botón de modo claro/oscuro */
  .theme-toggle {
    padding: 7px 10px;
    font-size: 0.68rem;
  }
}

/* Móviles especialmente estrechos: iPhone SE y similares */
@media (max-width: 360px) {

  .suelo {
    gap: 2px;
  }

  .suelo .agujero {
    width: 44px;
    height: 48px;
    font-size: 0.38rem;
  }

  .efecto-dino {
    left: 3%;
    width: 66px;
    height: 58px;
  }

  .dino {
    height: 54px;
  }
}/* ==========================================================================
   RESPONSIVE — BARRA DINOSAURIO EN MÓVIL Y TABLET
   ========================================================================== */

@media (max-width: 900px) {

  /* La pista ocupa todo el ancho disponible */
  .pista {
    width: 100%;
    padding-left: 8px;
    padding-right: 8px;
    overflow: visible;
  }

  /* Solo quedan los 5 botones; eliminamos los tramos intermedios
     para que no aprieten la navegación */
  .suelo {
    position: relative;
    left: auto;
    top: auto;

    width: 100%;

    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    justify-items: center;

    gap: clamp(4px, 2vw, 12px);
  }

  .suelo .tramo {
    display: none;
  }

  /* Botones más grandes y legibles */
  .suelo .agujero {
    width: clamp(46px, 14vw, 68px);
    height: clamp(46px, 14vw, 68px);

    flex: none;

    padding: 4px;

    border-width: 3px;

    font-size: clamp(0.46rem, 1.9vw, 0.62rem);
    line-height: 1.05;
    letter-spacing: 0.01em;

    text-align: center;
  }

  .suelo .agujero::before {
    top: 7px;
    left: 9px;

    width: 22px;
    height: 10px;
  }

  /* Dinosaurio más visible */
  .efecto-dino {
    left: 4%;
    top: 78px;

    width: 76px;
    height: 66px;
  }

  .efecto-dino .dino {
    height: clamp(58px, 16vw, 72px);
  }
}

/* ==========================================================================
   MÓVILES MUY PEQUEÑOS
   ========================================================================== */

@media (max-width: 360px) {

  .pista {
    padding-left: 4px;
    padding-right: 4px;
  }

  .suelo {
    gap: 4px;
  }

  .suelo .agujero {
    width: 46px;
    height: 46px;

    font-size: 0.44rem;
  }

  .efecto-dino {
    left: 3%;
    width: 68px;
    height: 60px;
  }

  .efecto-dino .dino {
    height: 56px;
  }
}/* ==========================================================================
   BARRA DINOSAURIO — MÓVIL Y TABLET
   ========================================================================== */

@media (max-width: 900px) {

  .pista {
    position: relative;
    width: 100%;
    height: auto;

    padding: 80px 4px 24px;
    overflow: visible;
  }

  /* Los 6 botones permanecen siempre en una sola fila */
  .suelo {
    position: relative;
    left: auto;
    top: auto;

    width: 100%;

    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;

    gap: clamp(2px, 1vw, 8px);

    padding-left: clamp(56px, 15vw, 78px);
  }

  /* Quitamos los tramos solo en móvil */
  .suelo .tramo {
    display: none;
  }

  /* Los 6 botones */
  .suelo .agujero {
    width: clamp(40px, 11.5vw, 62px);
    height: clamp(40px, 11.5vw, 62px);

    flex: 0 0 auto;

    padding: 3px;

    border-width: 3px;

    font-size: clamp(0.40rem, 1.8vw, 0.60rem);
    line-height: 1.05;
    letter-spacing: 0.01em;

    text-align: center;
  }

  /* Dinosaurio: separado a la izquierda de la fila */
  .efecto-dino {
    position: absolute;

    left: 2px;
    top: 80px;

    width: clamp(52px, 14vw, 70px);
    height: clamp(52px, 15vw, 72px);

    z-index: 10;
  }

  .efecto-dino .dino {
    height: clamp(50px, 14vw, 66px);
  }

}

/* Móviles pequeños */
@media (max-width: 360px) {

  .pista {
    padding-left: 2px;
    padding-right: 2px;
  }

  .suelo {
    gap: 2px;
    padding-left: 55px;
  }

  .suelo .agujero {
    width: 40px;
    height: 40px;
    font-size: 0.39rem;
  }

  .efecto-dino {
    left: 1px;
    width: 51px;
    height: 55px;
  }

  .efecto-dino .dino {
    height: 50px;
  }
}/* ==========================================================================
   NUBES VOXEL — MOVIMIENTO INDEPENDIENTE
   ========================================================================== */

.nubes-voxel {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;

  background-image: url("nubes-voxel.png");
  background-repeat: repeat-x;
  background-size: auto 38%;
  background-position: 0 12%;

  opacity: 0.9;

  animation: moverNubesVoxel 75s linear infinite;
}

@keyframes moverNubesVoxel {
  from {
    background-position: 0 12%;
  }

  to {
    background-position: -1800px 12%;
  }
}/* ==========================================================================
   BOTÓN MODO CLARO / OSCURO — ESTILO UNIFICADO
   ========================================================================== */

.theme-toggle {
  margin-left: auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 14px;

  font-family: var(--fuente-principal);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: var(--beige);
  background: rgba(8, 17, 31, 0.35);

  border: 1px solid rgba(255, 212, 71, 0.45);
  border-radius: 999px;

  cursor: pointer;

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.theme-toggle:hover {
  background: rgba(255, 212, 71, 0.12);
  border-color: var(--dorado);
  color: var(--dorado);
  transform: translateY(-1px);
}@media (max-width: 768px) {
  .theme-toggle {
    margin-left: auto;
    padding: 7px 10px;
    font-size: 0.68rem;
  }
}/* ==========================================================================
   CORRECCIÓN — NAVEGACIÓN DINOSAURIO EN CONSULTAS
   ========================================================================== */

.hero-consultas {
  padding-bottom: 180px;
}

.hero-consultas .pista {
  margin-top: 40px;
}

@media (max-width: 900px) {
  .hero-consultas {
    padding-bottom: 140px;
  }
}/* ==========================================================================
   CORRECCIÓN DEFINITIVA — CONSULTAS
   ========================================================================== */

/* Reservamos espacio real para la barra del dinosaurio */
body:has(.form-consultas) .pista {
  min-height: 125px;
  margin-bottom: 25px;
}

/* En móvil dejamos algo más de espacio */
@media (max-width: 900px) {
  body:has(.form-consultas) .pista {
    min-height: 145px;
    margin-bottom: 20px;
  }
}/* ==========================================================================
   CORRECCIÓN FINAL — BARRA DINOSAURIO
   ========================================================================== */

.pista {
  position: relative;
  width: 100%;
  height: 110px;
  margin-top: 35px;
  pointer-events: none;
  overflow: visible;
}

.suelo {
  position: absolute;
  left: 37.5%;
  top: 50%;
  width: 53%;
  height: 76px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;

  transform: translateY(-50%);
}

/* Conectores entre botones */
.tramo {
  flex: 1;
  height: 3px;

  border: 0;
  background: rgba(245, 192, 74, 0.45);

  box-shadow:
    0 0 8px rgba(245, 192, 74, 0.25);

  background-image: none;
}

.tramo:first-child {
  flex: 0.75;
}

.tramo:last-child {
  flex: 0.45;
}

/* Botones */
.suelo .agujero {
  position: relative;

  width: 76px;
  height: 76px;

  flex: 0 0 76px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border-radius: 50%;
  border: 5px solid #555;

  background:
    radial-gradient(
      circle at 35% 28%,
      #ff7777 0%,
      #ff2929 35%,
      #d90000 68%,
      #8f0000 100%
    );

  color: white;

  font-family: "Inter", sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;

  box-shadow:
    inset 0 5px 8px rgba(255, 255, 255, 0.45),
    inset 0 -8px 12px rgba(70, 0, 0, 0.55),
    0 5px 8px rgba(0, 0, 0, 0.45);

  pointer-events: auto;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

/* Brillo */
.suelo .agujero::before {
  content: "";

  position: absolute;

  top: 9px;
  left: 13px;

  width: 30px;
  height: 15px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.32);

  transform: rotate(-20deg);

  pointer-events: none;
}

/* Hover */
.suelo .agujero:hover {
  transform: scale(1.06);

  filter: brightness(1.12);

  box-shadow:
    inset 0 5px 8px rgba(255, 255, 255, 0.5),
    inset 0 -8px 12px rgba(70, 0, 0, 0.55),
    0 7px 14px rgba(0, 0, 0, 0.55);
}

/* Activo */
.suelo .agujero.activo {
  transform: translateY(4px);
}

/* IMPORTANTE:
   eliminamos cualquier rombo/forma extra que pudiera venir
   de reglas antiguas */
.pista::before,
.pista::after,
.suelo::before,
.suelo::after,
.tramo::before,
.tramo::after {
  content: none !important;
}

/* Móvil */
@media (max-width: 900px) {

  .pista {
    height: auto;
    min-height: 150px;
    padding: 80px 4px 24px;
  }

  .suelo {
    position: relative;

    left: auto;
    top: auto;

    width: 100%;
    height: auto;

    transform: none;

    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;

    gap: clamp(2px, 1vw, 8px);

    padding-left: clamp(56px, 15vw, 78px);
  }

  .suelo .tramo {
    display: none;
  }

  .suelo .agujero {
    width: clamp(40px, 11.5vw, 62px);
    height: clamp(40px, 11.5vw, 62px);

    flex: 0 0 auto;

    border-width: 3px;

    font-size: clamp(0.40rem, 1.8vw, 0.60rem);
  }

}/* ==========================================================================
   FONDO VOXEL — MODO CLARO / MODO OSCURO
   ========================================================================== */

/* ☀️ MODO CLARO */
.bg-animated {
  position: fixed;
  inset: 0;
  z-index: -2;

  background-image: url("fondo-voxel.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;

  background-color: #78c9f5;
}


/* 🌙 MODO OSCURO */
body.dark-mode .bg-animated {
  background-image: url("fondo-voxel-noche.png") !important;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;

  background-color: #050b1c;
}


/* Velo del modo claro */
body:not(.dark-mode) .bg-veil {
  background:
    linear-gradient(
      180deg,
      rgba(5, 18, 30, 0.08) 0%,
      rgba(5, 18, 30, 0.18) 100%
    );
}


/* Velo del modo oscuro
   Muy transparente para NO tapar las estrellas, luna y luces */
body.dark-mode .bg-veil {
  background:
    linear-gradient(
      180deg,
      rgba(2, 6, 20, 0.05) 0%,
      rgba(2, 6, 20, 0.12) 100%
    ) !important;
}/* ==========================================================================
   BOTÓN DE TEMA — CONSULTAS
   ========================================================================== */

.barra-tema {
  position: fixed;
  top: 18px;
  right: 30px;
  z-index: 200;
}

.barra-tema .theme-toggle {
  margin-left: 0;
}

@media (max-width: 768px) {
  .barra-tema {
    top: 12px;
    right: 12px;
  }
}/* ==========================================================================
   FONDOS VOXEL — MODO CLARO / MODO OSCURO
   ========================================================================== */

/* ☀️ MODO CLARO */
body:not(.dark-mode) .bg-animated {
  background-image: url("fondo-voxel.png") !important;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #78c9f5;
}

/* 🌙 MODO OSCURO */
body.dark-mode .bg-animated {
  background-image: url("fondo-voxel-noche.png") !important;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #050b1c;
}

/* Velo claro — deja que se vean los colores */
body:not(.dark-mode) .bg-veil {
  background:
    linear-gradient(
      180deg,
      rgba(5, 18, 30, 0.04) 0%,
      rgba(5, 18, 30, 0.12) 100%
    ) !important;
}

/* Velo oscuro — muy transparente para conservar estrellas y luna */
body.dark-mode .bg-veil {
  background:
    linear-gradient(
      180deg,
      rgba(2, 6, 20, 0.05) 0%,
      rgba(2, 6, 20, 0.12) 100%
    ) !important;
}/* ==========================================================================
   FONDOS VOXEL — CLARO / OSCURO
   ========================================================================== */

/* ☀️ MODO CLARO */
body:not(.dark-mode) .bg-animated {
  background-image: url("fondo-voxel.png") !important;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* 🌙 MODO OSCURO */
body.dark-mode .bg-animated {
  background-image: url("fondo-voxel-noche.png") !important;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #050b1c;
}

/* Velo claro */
body:not(.dark-mode) .bg-veil {
  background:
    linear-gradient(
      180deg,
      rgba(5, 18, 30, 0.04),
      rgba(5, 18, 30, 0.12)
    ) !important;
}

/* Velo oscuro */
body.dark-mode .bg-veil {
  background:
    linear-gradient(
      180deg,
      rgba(2, 6, 20, 0.05),
      rgba(2, 6, 20, 0.12)
    ) !important;
}
/* ==========================================================================
   PLAYLIST DE SPOTIFY — PORTADA
   ========================================================================== */

.spotify-playlist {
  position: relative;
  z-index: 5;

  width: 300px;
  max-width: calc(100% - 32px);

  margin: -20px 8vw 5px auto;
}

.spotify-playlist iframe {
  display: block;

  width: 300px;
  max-width: 100%;
  height: 300px;

  border: 0;
  border-radius: 12px;
}

/* MÓVIL */
@media (max-width: 768px) {

  .spotify-playlist {
    width: 280px;
    max-width: calc(100% - 24px);
    margin: -10px auto 10px;
  }

  .spotify-playlist iframe {
    width: 280px;
    height: 280px;
  }

}
/* ==========================================================================
   AJUSTE FINO — SOLO MÓVIL
   ========================================================================== */

@media (max-width: 768px) {

  /* MENÚ — más arriba y más a la derecha */
  .suelo {
    transform: translate(18px, -18px) !important;
  }

  /* DINOSAURIO — más arriba y un poco más a la derecha */
  @media (max-width: 768px) {

  /* MENÚ — se mantiene a la derecha */
  .suelo {
    transform: translate(18px, -18px) !important;
  }

  /* DINOSAURIO — más a la izquierda y con separación */
  .efecto-dino {
    left: 3% !important;
    top: 42px !important;
  }

}

}


/* MÓVILES MUY PEQUEÑOS */
@media (max-width: 360px) {

  .suelo {
    transform: translate(12px, -14px) !important;
  }

  .efecto-dino {
    left: 2% !important;
    top: 40px !important;
  }

}

