/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&display=swap');

@font-face {
  font-family: 'MiFuente';
  src: url(good\ timing\ bd.otf) format('opentype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --color-principal: #0f2027;
  --color-secundario: #2c5364;
  --color-acento: #00ffe7;
  --color-blanco: #fff;
  --color-gris: #e0e0e0;
  --color-oscuro: #1a1a2e;
  --color-card: #232946;
  --sombra: 0 4px 24px rgba(0,0,0,0.15);
  --color-bg: #18192a;
  --color-header-bg: #232946;
  --color-header-text: #fff;
  --color-accent: #00ffe7;
  --color-card-border: #35374a;
  --color-card-shadow: #23294633;
  --color-text: #e0e0e0;
  --color-subtle: #bdbdbd;
  --color-crypto-bg: #232946;
  --color-social-bg: #e0ffe7;    /* fondo claro */
  --color-btn-bg: #232946;
  --color-btn-hover: #18192a;
  --color-btn-text: #e0e0e0;
  --color-btn-border: #35374a;
  --color-highlight: #FFD700;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: 'Orbitron', Arial, sans-serif;
  background: linear-gradient(135deg, #232946 0%, #0f2027 100%);
  color: var(--color-blanco);
  min-height: 100vh;
}

/* Tema claro por defecto */
body {
  background: #f6f8fa;
  color: #232946;
  transition: background 0.3s, color 0.3s;
}

/* Tema oscuro */
body.dark-mode {
  background: #18192a;
  color: #f6f8fa;
  --color-card: #232946;      /* Azul oscuro para cuadros */
  --color-blanco: #fff;       /* Texto blanco */
  --color-bg: #18192a;        /* Fondo general oscuro */
  --color-header-bg: #232946;
  --color-header-text: #fff;
  --color-social-bg: #1a1b23;    /* fondo oscuro */
  --color-text: #e0e0e0;
}
body.light-mode {
  --color-card: #fff;         /* Cuadros blancos */
  --color-blanco: #232946;    /* Texto negro */
  --color-bg: #f6f8fa;        /* Fondo general gris claro */
  --color-header-bg: #fff;
  --color-header-text: #232946;
}
body {
  background: var(--color-bg, #18192a);
  color: var(--color-blanco, #fff);
}

/* Botón de cambio de tema */
#theme-toggle {
  background: #232946;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 2.7rem;
  height: 2.7rem;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 8px #0002;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s, transform 0.3s;
  z-index: 100;
}
body.dark-mode #theme-toggle {
  background: #f6f8fa;
  color: #232946;
}
#theme-toggle:active {
  transform: rotate(180deg) scale(1.1);
}
#theme-toggle:focus {
  outline: 2px solid #00ffe7;
  outline-offset: 2px;
}

/* Switch cuadrado retro-moderno */
.theme-switch {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 100;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-switch .sun-icon {
  width: 36px;
  height: 36px;
  display: block;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px #0002;
  position: relative;
  transition: background 0.3s;
}

.theme-switch .sun-shape {
  fill: #18192a;
  transition: fill 0.3s;
}

.theme-switch .slash {
  stroke: #18192a;
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 0.3s;
}

body.light-mode .theme-switch .sun-icon {
  background: #f6f8fa;
}

body.light-mode .theme-switch .sun-shape {
  fill: #f6c700;
}

body.light-mode .theme-switch .slash {
  opacity: 1;
}

body.dark-mode .switch-track {
  background: #232946;
  border-color: #00ffe7;
}

body.dark-mode .switch-thumb {
  background: #00ffe7;
  left: 24px;
  border-color: #232946;
}

body:not(.dark-mode) .switch-track {
  background: #e0e0e0;
  border-color: #bdbdbd;
}

body:not(.dark-mode) .switch-thumb {
  background: #bdbdbd;
  left: 2px;
  border-color: #e0e0e0;
}

.theme-switch:focus {
  outline: 2px solid #00ffe7;
  outline-offset: 2px;
}
header {
  position: relative;
  background: rgba(15,32,39,0.95);
  box-shadow: var(--sombra);
  padding: 1.5rem 0 1rem 0;
  text-align: center;
}

header h1 {
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 2.5rem;
  letter-spacing: 2px;
  color: var(--color-acento);
  margin: 0 0 0.5rem 0;
}

nav {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

nav a {
  color: var(--color-header-text);
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  transition: color 0.2s;
  position: relative;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  display: inline-block;
  line-height: 1.5;
}

nav a.activo, nav a:active {
  background: var(--color-acento);
  color: var(--color-oscuro) !important;
  box-shadow: 0 2px 12px #00ffe766;
}

nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--color-acento);
  transition: width .3s;
  margin: 0 auto;
}

nav a:hover::after {
  width: 100%;
}

nav .btn {
  background: var(--color-acento);
  color: var(--color-oscuro);
  padding: 0.4rem 1.3rem;
  border-radius: 25px;
  margin-left: 0.8rem;
  font-weight: bold;
  box-shadow: 0 2px 8px #00ffe766;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  border: none;
  font-size: 1.1rem;
  vertical-align: middle;
}

nav .btn:hover {
  background: #00bfae;
  color: var(--color-blanco);
  transform: scale(1.07);
}

.btn-cifra-animada {
  position: relative;
  background: #232946;
  color: #fff;
  border: 2px solid #bbb;
  border-radius: 12px;
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: bold;
  padding: 0.8rem 2.2rem;
  box-shadow: 0 2px 12px #23294633;
  letter-spacing: 1.5px;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s;
  animation: btn-cifra-blink 1.8s ease-in-out infinite alternate;
}
@keyframes btn-cifra-blink {
  0% { box-shadow: 0 0 0px #fff, 0 2px 12px #23294633; }
  100% { box-shadow: 0 0 12px #fff, 0 2px 18px #23294666; }
}
.btn-cifra-animada:active {
  background: #fff;
  color: #232946;
  border-color: #fff;
}

.hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
}

.hero-bg img {
  width: 100vw;
  height: 400px;
  object-fit: cover;
  filter: brightness(0.5) blur(1px);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  background: var(--color-card);
  color: var(--color-blanco);
  padding: 2.2rem 2rem 1.5rem 2rem;
  border-radius: 18px;
  box-shadow: 0 4px 24px #00ffe733;
  text-align: center;
  min-width: 280px;
  max-width: 90vw;
}

.hero-content h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 2.1rem;
  font-family: 'Orbitron', Arial, sans-serif;
  letter-spacing: 0.04em;
}

.hero-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.btn-hero {
  font-size: 1.1rem;
  padding: 0.7rem 2.2rem;
  border-radius: 8px;
  border: none;
  background: var(--color-acento, #00ffe7);
  color: #232946;
  font-weight: bold;
  font-family: 'Orbitron', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-hero:hover {
  background: #232946;
  color: #00ffe7;
}

.tecnologia-imagenes {
  padding: 2rem 0;
  text-align: center;
}

.tecnologia-imagenes h2 {
  font-family: 'Orbitron', Arial, sans-serif;
  color: var(--color-acento);
  margin-bottom: 1.5rem;
}

.imagenes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.imagenes-grid img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 2px 16px #00ffe733, 0 1.5px 8px #0004;
  transition: transform 0.2s, box-shadow 0.2s;
  object-fit: cover;
  height: 180px;
}

.imagenes-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 32px #00ffe799, 0 2px 16px #0006;
}

.noticias {
  background: rgba(44,83,100,0.7);
  margin: 2rem 0;
  padding: 2rem 2vw 1rem 2vw; /* Espacio horizontal añadido */
  text-align: center;
  border-radius: 18px;
  box-shadow: var(--sombra);
  max-width: 2000px;
  margin-left: auto;
  margin-right: auto;
}

.noticias h2 {
  color: var(--color-acento);
  font-family: 'Orbitron', Arial, sans-serif;
  margin-bottom: 1rem;
}

#noticias-lista {
  list-style: none;
  padding: 0;
  margin: 0;
}

#noticias-lista li {
  background: var(--color-card);
  color: var(--color-blanco);
  margin: 0.7rem auto;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px #00ffe733;
  font-size: 1.1rem;
  transition: background 0.2s;
  width: 100%;         /* Ocupa todo el ancho del contenedor */
  max-width: none;     /* Elimina cualquier restricción previa */
  box-sizing: border-box;
}

#noticias-lista li:hover {
  background: #232946cc;
}

.testimonios {
  text-align: center;
  padding: 2rem 0;
}

.testimonios h2 {
  max-width: 540px;
  margin: 0 auto 1rem auto;
}

.testimonio {
  background: var(--color-card);
  color: var(--color-blanco);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(35,41,70,0.18);
  padding: 1.5rem 2rem;
  margin: 0 auto 0 auto;
  max-width: 540px;
  font-size: 1.1rem;
  text-align: center;
  transition: background 0.3s, color 0.3s;
}

.testimonio blockquote {
  font-style: italic;
  margin: 0 0 1rem 0;
  color: var(--color-acento);
  font-size: 1.2rem;
}

.why-chrono {
  padding: 2rem 0;
  text-align: center;
}

.why-chrono h2 {
  color: var(--color-acento);
  font-family: 'Orbitron', Arial, sans-serif;
  margin-bottom: 1rem;
}

.why-chrono ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 600px;
}

.why-chrono li {
  background: var(--color-card);
  margin: 0.5rem 0;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px #00ffe733;
  font-size: 1.1rem;
}

.team {
  padding: 2rem 0;
  background: rgba(44,83,100,0.5);
  text-align: center;
}

.team h2 {
  color: var(--color-acento);
  font-family: 'Orbitron', Arial, sans-serif;
  margin-bottom: 1.5rem;
}

.team-members {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.member {
  background: var(--color-card);
  border-radius: 16px;
  box-shadow: 0 2px 12px #00ffe733;
  padding: 1.2rem 1.5rem;
  max-width: 220px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.member:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 4px 24px #00ffe799;
}

.member img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 0.7rem;
  border: 3px solid var(--color-acento);
  object-fit: cover;
}

.member h3 {
  margin: 0.5rem 0 0.3rem 0;
  color: var(--color-acento);
  font-size: 1.1rem;
}

.member p {
  font-size: 0.98rem;
  color: var(--color-gris);
}

.faq {
  padding: 2rem 0;
  text-align: center;
}

.faq h2 {
  color: var(--color-acento);
  font-family: 'Orbitron', Arial, sans-serif;
  margin-bottom: 1rem;
}

.faq details {
  background: var(--color-card);
  color: var(--color-blanco);
  margin: 0.7rem auto;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px #00ffe733;
  max-width: 600px;
  font-size: 1.05rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}

.faq details[open] {
  background: #232946cc;
}

footer {
  margin-top: auto;
  width: 100%;
  background: var(--color-header-bg, #232946);
  color: var(--color-header-text, #fff);
  text-align: center;
  padding: 1.2rem 0 0.5rem 0;
  font-size: 1rem;
  border-top: 1px solid #00ffe733;
  box-shadow: 0 -2px 12px #00ffe733;
}

/* Línea temporal */
.timeline {
  margin: 3rem auto 2rem auto;
  max-width: 700px;
  padding: 1.5rem 1rem;
  background: rgba(35,41,70,0.7);
  border-radius: 18px;
  box-shadow: 0 2px 16px #00ffe733;
  text-align: center;
  animation: fadeInUp 1s;
}
.timeline h2 {
  color: var(--color-acento);
  font-family: 'Orbitron', Arial, sans-serif;
  margin-bottom: 2rem;
}
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  margin-left: 0;
}
.timeline-container::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-acento), transparent 90%);
  border-radius: 2px;
  z-index: 0;
}
.timeline-item {
  display: flex;
  align-items: center;
  position: relative;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 0.7rem 1rem 0.7rem 0.5rem;
  box-shadow: 0 1px 6px #00ffe722;
  z-index: 1;
}
.timeline-year {
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 1.2rem;
  color: var(--color-acento);
  background: var(--color-card);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.2rem;
  box-shadow: 0 2px 8px #00ffe733;
  border: 2px solid var(--color-acento);
  z-index: 2;
  flex-shrink: 0;
  transition: box-shadow 0.2s;
}
.timeline-desc {
  color: var(--color-blanco);
  background: rgba(44,83,100,0.15);
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-size: 1.05rem;
  min-width: 180px;
  text-align: left;
  flex: 1;
}

.timeline-item:hover .timeline-year,
.timeline-item:focus .timeline-year {
  box-shadow: 0 0 16px #00ffe7cc, 0 2px 8px #00ffe744;
}

/* Glitch effect for 2045 */
.glitch-year {
  position: relative;
  cursor: pointer;
  transition: color 0.2s;
}
.glitch-year:hover, .glitch-year:focus {
  animation: glitch 0.5s linear infinite;
  color: #ff00cc;
  text-shadow:
    2px 0 #00ffe7,
    -2px 0 #ff00cc,
    0 2px #00ffe7,
    0 -2px #ff00cc;
}
@keyframes glitch {
  0% { transform: translate(0,0); }
  20% { transform: translate(-2px,2px); }
  40% { transform: translate(-2px,-2px); }
  60% { transform: translate(2px,2px); }
  80% { transform: translate(2px,-2px); }
  100% { transform: translate(0,0); }
}

@media (max-width: 800px) {
  #theme-toggle, .theme-switch {
    position: fixed !important;
    bottom: 1.2rem !important;
    right: 1.2rem !important;
    top: auto !important;
    z-index: 1000 !important;
  }
  #menu-toggle {
    position: fixed !important;
    bottom: 1.2rem !important;
    left: 1.2rem !important;
    top: auto !important;
    z-index: 1001 !important;
  }
}

@media (max-width: 600px) {
  .timeline-container { margin-left: 0; }
  .timeline-year { width: 36px; height: 36px; font-size: 1rem; }
  .timeline-desc { font-size: 0.97rem; min-width: 120px; }
}

/* Animación de entrada para secciones */
section, header, footer {
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efecto glitch para títulos principales */
.hero-content h2, 
.tecnologia-imagenes h2, 
.noticias h2, 
.testimonios h2, 
.why-chrono h2, 
.team h2, 
.faq h2 {
  position: relative;
  animation: glitch 2.5s infinite linear alternate;
  text-shadow: 2px 0 #00ffe7, -2px 0 #2c5364;
}

@keyframes glitch {
  0% { text-shadow: 2px 0 #00ffe7, -2px 0 #2c5364; }
  20% { text-shadow: -2px 0 #00ffe7, 2px 0 #2c5364; }
  40% { text-shadow: 2px 2px #00ffe7, -2px -2px #2c5364; }
  60% { text-shadow: -2px -2px #00ffe7, 2px 2px #2c5364; }
  80% { text-shadow: 2px 0 #00ffe7, -2px 0 #2c5364; }
  100% { text-shadow: none; }
}

/* Animación de hover para imágenes de tecnología */
.imagenes-grid img {
  transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
}

.imagenes-grid img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px #00ffe799, 0 2px 16px #0006;
  filter: brightness(1.2) contrast(1.1);
  animation: glitch-img 0.5s linear;
}

@keyframes glitch-img {
  0% { filter: none; }
  20% { filter: hue-rotate(15deg) contrast(1.2); }
  40% { filter: blur(1px) brightness(1.2); }
  60% { filter: hue-rotate(-15deg); transform: scale(1.09) rotate(2deg);}
  80% { filter: contrast(0.8); }
  100% { filter: none; }
}

/* Animación de resplandor para botones */
.btn, .btn-hero {
  box-shadow: 0 0 12px #00ffe7cc, 0 0 24px #00ffe744;
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 0 0 8px #00ffe7cc, 0 0 16px #00ffe744;
  }
  to {
    box-shadow: 0 0 24px #00ffe7cc, 0 0 48px #00ffe744;
  }
}

/* Animación de testimonio */
.testimonio {
  animation: fadeInTestimonio 1s;
}

@keyframes fadeInTestimonio {
  from { opacity: 0; transform: scale(0.95);}
  to { opacity: 1; transform: scale(1);}
}

/* Responsive */
@media (max-width: 900px) {
  .imagenes-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .team-members {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .hero-content {
    padding: 1rem;
    font-size: 1rem;
  }
  .imagenes-grid img {
    height: 120px;
  }
  .testimonio {
    padding: 1rem;
    min-width: 180px;
    font-size: 1rem;
  }
  .member {
    padding: 1rem;
    max-width: 95vw;
  }
}

@media (max-width: 800px) {
  .promo-crypto-fullwidth {
    max-width: 99vw;
    width: 99vw;
    padding: 1.2rem 0.2rem 1rem 0.2rem;
    box-sizing: border-box;
    border-radius: 10px;
    margin-left: auto;
    margin-right: auto;
  }
  .promo-crypto-flex {
    flex-direction: column;
    gap: 1rem;
    max-width: 99vw;
    align-items: center;
    justify-content: center;
  }
  .promo-crypto-img {
    justify-content: center;
    margin-bottom: 1rem;
    width: 100%;
    min-width: 0;
  }
  .promo-crypto-img img {
    width: 90vw;
    max-width: 220px;
    height: auto;
    border-radius: 12px;
  }
  .promo-crypto-text {
    text-align: left;
    font-size: 1rem;
    padding: 0 0.5rem;
    width: 100%;
    box-sizing: border-box;
  }
}

/* Estilo para efecto glitch temporal */
@keyframes glitch {
  0% { filter: none; }
  20% { filter: hue-rotate(15deg) contrast(1.2); }
  40% { filter: blur(1px) brightness(1.2); }
  60% { filter: hue-rotate(-15deg); transform: scale(1.01); }
  80% { filter: contrast(0.8); }
  100% { filter: none; }
}

nav a {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(0,255,231,0.3);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
  z-index: 2;
}

@keyframes ripple-anim {
  to {
    transform: scale(2.5);
    opacity: 0;
  }
}

.slider-bg {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
}
.slider-img {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 1;
}
.slider-img.active {
  opacity: 1;
  z-index: 2;
}
@media (max-width: 700px) {
  .slider-bg { height: 180px; }
}

/* Nuevos estilos para el simulador de retorno */
.simulador-retorno {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  background: #18192a;
  padding: 1rem;
  margin: 2rem 0;
}

.simulador-retorno.loading {
  position: relative;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.93;
  filter: contrast(1.2) brightness(1.1) blur(1.2px) saturate(1.2);
  background: #18192a;
}

.simulador-retorno.loading::before {
  content: 'Cargando...';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 2rem;
  color: #e0e0e0;
  text-shadow:
    0 0 8px #fff,
    2px 0 4px #bbb,
    -2px 0 4px #232946;
  opacity: 0.92;
  z-index: 40;
  pointer-events: none;
  user-select: none;
}

.simulador-retorno .k-animada {
  display: none;
  position: absolute;
  left: 50%; top: 18%;
  transform: translate(-50%, -50%) scale(1.5);
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 5.5rem;
  color: #fff;
  text-shadow:
    0 0 24px #fff,
    0 0 8px #bbb,
    2px 0 12px #232946;
  opacity: 0.92;
  z-index: 40;
  animation: k-glitch 1.2s infinite alternate;
  pointer-events: none;
  user-select: none;
}
.simulador-retorno.loading .k-animada {
  display: block;
}
@keyframes k-glitch {
  0% { filter: blur(0.5px) hue-rotate(0deg);}
  20% { filter: blur(2px) hue-rotate(10deg);}
  40% { filter: blur(1.5px) hue-rotate(-10deg);}
  60% { filter: blur(2.5px) hue-rotate(20deg);}
  80% { filter: blur(1.2px) hue-rotate(-20deg);}
  100% { filter: blur(0.5px) hue-rotate(0deg);}
}

.simulador-retorno .console-codigos {
  display: none;
}
.simulador-retorno.loading .console-codigos {
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: 1.5rem;
  margin: 0 auto;
  width: 92%;
  max-width: 420px;
  min-height: 90px;
  background: rgba(30,32,40,0.97);
  color: #e0e0e0;
  font-family: 'Fira Mono', 'Consolas', 'monospace';
  font-size: 1.05rem;
  border-radius: 10px;
  box-shadow: 0 2px 18px #23294655;
  padding: 1.1rem 1.2rem 1.1rem 1.2rem;
  z-index: 50;
  overflow: hidden;
  border: 1.5px solid #444;
  letter-spacing: 1.2px;
  animation: console-glow 1.2s infinite alternate;
}
@keyframes console-glow {
  0% { box-shadow: 0 2px 18px #23294655;}
  100% { box-shadow: 0 2px 24px #fff;}
}
.simulador-retorno .console-codigos span {
  display: block;
  white-space: pre;
  font-size: 1.01rem;
  line-height: 1.35;
  margin-bottom: 0.2rem;
  opacity: 0.92;
  color: #fff;
  animation: codetxt-fade 0.7s;
}
@keyframes codetxt-fade {
  from { opacity: 0; transform: translateY(10px);}
  to { opacity: 0.92; transform: translateY(0);}
}

.tech-intro {
  background: var(--color-card);
  color: var(--color-blanco);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(35,41,70,0.12);
  max-width: 600px;
  margin: 3rem auto 2.5rem auto;
  padding: 2.2rem 2rem 2rem 2rem; /* Menos espacio arriba */
  text-align: center;
  transition: background 0.3s, color 0.3s;
}
.tech-intro h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}
.tech-intro h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-acento, #00ffe7);
  margin-bottom: 1.2rem;
  margin-top: 0;
  letter-spacing: 0.5px;
}
.tech-intro p {
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0;
}

.tech-block {
  background: var(--color-card);
  color: var(--color-blanco);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(35,41,70,0.10);
  max-width: 540px;
  margin: 2.5rem auto;
  padding: 1.5rem 2rem 2rem 2rem;
  text-align: center;
  transition: background 0.3s, color 0.3s;
}
.tech-block h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  color: var(--color-acento, #00ffe7);
}
.tech-block p {
  margin-bottom: 1.5rem;
  font-size: 1.08rem;
  line-height: 1.7;
}
.tech-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0 2.5rem 0;
}

.tech-image img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(35,41,70,0.13), 0 1.5px 8px #00ffe733;
  background: #e0e0e0;
  border: 3px solid var(--color-card, #232946);
  transition: border 0.3s, box-shadow 0.3s;
  /* VHS flicker effect, static position */
  animation: vhs-flicker-static 1.2s infinite steps(2, end) alternate;
  position: relative;
  z-index: 1;
}

@keyframes vhs-flicker-static {
  0% {
    filter: contrast(1) brightness(1) hue-rotate(0deg);
  }
  10% {
    filter: contrast(1.1) brightness(1.05) hue-rotate(-2deg);
  }
  20% {
    filter: contrast(0.95) brightness(0.97) hue-rotate(2deg);
  }
  30% {
    filter: contrast(1.05) brightness(1.02) hue-rotate(-1deg);
  }
  40% {
    filter: contrast(1) brightness(1) hue-rotate(0deg);
  }
  100% {
    filter: contrast(1) brightness(1) hue-rotate(0deg);
  }
}

.tech-experiment {
  display: flex;
  justify-content: center;
  align-items: stretch;
  margin: 2.5rem 0 2.5rem 0;
}

.tech-card {
  display: flex;
  flex-direction: row;
  background: var(--color-card);
  color: var(--color-blanco);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(35,41,70,0.13);
  max-width: 700px;
  width: 100%;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
  margin: 0 1rem;
  animation: fadeInUp 0.7s;
}
.tech-card:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 8px 32px #00ffe755, 0 4px 24px rgba(35,41,70,0.13);
}

.tech-card-img {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #18192a22;
  min-width: 220px;
  max-width: 260px;
  padding: 1.2rem 0.7rem 1.2rem 1.2rem;
}
.tech-card-img img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(35,41,70,0.13);
  background: #e0e0e0;
  /* VHS flicker effect, static */
  animation: vhs-flicker-static 1.2s infinite steps(2, end) alternate;
}
.tech-card-info {
  flex: 2 1 320px;
  padding: 2rem 2rem 2rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}
.tech-card-info h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
  color: var(--color-acento, #00ffe7);
  font-family: 'Orbitron', Arial, sans-serif;
  letter-spacing: 0.03em;
}
.tech-card-info .tech-year {
  color: var(--color-blanco);
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.7;
  margin-left: 0.5rem;
}
.tech-card-info p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.7;
}

@media (max-width: 700px) {
  .tech-card {
    flex-direction: column;
    max-width: 98vw;
  }
  .tech-card-img {
    justify-content: center;
    padding: 1.2rem 1.2rem 0.5rem 1.2rem;
    max-width: 100%;
  }
  .tech-card-info {
    padding: 1.2rem 1.2rem 2rem 1.2rem;
    text-align: center;
  }
}

.tech-card-img img[src*="tempus.png"] {
  animation: tempus-glitch-tosco 5.5s steps(1, end) infinite;
}

@keyframes tempus-glitch-tosco {
  0%, 85%, 100% {
    opacity: 1;
    filter: none;
    transform: none;
  }
  86% {
    opacity: 0;
    filter: blur(0px) contrast(2) grayscale(1);
    transform: scale(1.08) skewX(10deg);
  }
  87% {
    opacity: 1;
    filter: none;
    transform: none;
  }
  88% {
    opacity: 0;
    filter: blur(2px) contrast(3) grayscale(0.7);
    transform: scale(0.95) skewY(-8deg);
  }
  89% {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

.tempus-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(20,30,40,0.85);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s;
}

.tempus-modal-content {
  background: #181f2a;
  color: #fff;
  padding: 2.2rem 2rem 2rem 2rem;
  border-radius: 18px;
  box-shadow: 0 4px 32px #00ffe799;
  max-width: 540px;
  width: 95vw;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  text-align: center;
  animation: fadeInUp 0.4s;
}
body.light-mode .tempus-modal-content {
  background: #fff;
  color: #181f2a;
  box-shadow: 0 4px 32px #00b4d899;
}
.tempus-close {
  position: absolute;
  right: 1.2rem;
  top: 1.2rem;
  font-size: 2rem;
  color: #00ffe7;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.2s;
}
body.light-mode .tempus-close {
  color: #00b4d8;
}
body.light-mode .tempus-close:hover {
  color: #181f2a;
}
.tempus-close:hover {
  color: #fff;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px);}
  to { opacity: 1; transform: none;}
}

.photo-effect {
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18), 0 1.5px 8px #00ffe733;
  border-radius: 14px;
  padding: 8px 8px 18px 8px;
  display: inline-block;
  transform: rotate(-2deg);
  transition: transform 0.2s;
}
.photo-effect:hover {
  transform: rotate(2deg) scale(1.03);
}

.photo-experiment {
  background: #f8f8f8;
  border: 3px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 1.5px 8px #00ffe733;
  padding: 8px;
  display: inline-block;
  margin-bottom: 0.7rem;
}
body.dark-mode .photo-experiment {
  background: #23242a;
  border-color: #444;
}
body.dark-mode .photo-experiment::before,
body.dark-mode .photo-experiment::after {
  background: repeating-linear-gradient(135deg, #444 0 6px, #222 6px 12px);
}

/* Oculta el botón por defecto */
#an-btn-reveal {
  display: none;
}

/* Solo visible en modo oscuro */
body.dark-mode #an-btn-reveal {
  display: block;
  background: #fff; /* color polaroid */
}

#an-btn-reveal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  display: none;
}
#an-secret-area.revealed #an-btn-reveal {
  display: block;
}

.btn-social {
  color: var(--color-btn-text);
  /* ...otros estilos... */
}
body.light-mode .btn-social {
  color: #232946; /* Oscuro para modo claro */
}
body.dark-mode .btn-social {
  color: #fff;    /* Blanco para modo oscuro */
}
.btn-social:hover {
  color: var(--color-highlight); /* Amarillo al pasar el mouse */
}

.icon-social {
  margin-right: 6px;
  vertical-align: middle;
  transition: color 0.2s, fill 0.2s;
}

/* Colores adaptativos para modo claro/oscuro */
body.light-mode .btn-social .icon-social {
  color: #232946;
  fill: #232946;
}
body.dark-mode .btn-social .icon-social {
  color: #fff;
  fill: #fff;
}
.btn-social:hover .icon-social {
  color: #FFD700;
  fill: #FFD700;
}

/* Cifra ∆-13 Popup adaptado a modo claro/oscuro */
#popupCifra13 {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(30,32,50,0.55);
  backdrop-filter: blur(2px);
  align-items: center;
  justify-content: center;
}
.cifra-modal {
  background: var(--color-card);
  color: var(--color-text);
  max-width: 540px;
  width: 92vw;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 18px;
  box-shadow: 0 4px 24px var(--color-card-shadow);
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  position: relative;
  font-family: 'Orbitron', Arial, sans-serif;
  animation: fadeInUp 0.5s;
}
.cifra-modal h2 {
  color: var(--color-accent);
  text-align: center;
  margin-bottom: 1.2rem;
  font-size: 1.35rem;
  letter-spacing: 1px;
}
.cifra-modal .close-btn {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-acento);
  cursor: pointer;
  font-weight: bold;
  transition: color 0.2s;
}
.cifra-modal .close-btn:hover {
  color: var(--color-highlight);
}

.slider-tecnologia {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  background: #222;
  border-radius: 16px;
  margin: 24px 0;
  overflow: hidden;
}
.slider-tecnologia img {
  max-height: 100%;
  max-width: 100%;
  transition: opacity 0.5s;
}

.slider-tecnologia-box {
  width: 350px;
  height: 350px;
  margin: 32px auto;
  background: #181c24;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.3s;
}
.slider-tecnologia-box img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 16px;
  opacity: 1;
  transition: opacity 0.8s;
  position: absolute;
}

.slider-tecnologia-nombre {
  text-align: center;
  margin-top: 16px;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 500;
  letter-spacing: 1px;
  background: rgba(24, 28, 36, 0.85);
  border-radius: 12px;
  padding: 8px 0;
  width: 350px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: color 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}
.slider-tecnologia-nombre span {
  display: inline-block;
  opacity: 1;
  transition: opacity 0.8s;
  will-change: opacity;
}

.dynamic-banner {
  margin-bottom: 40px; /* Puedes ajustar el valor */
}

.disclaimer-global {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.promo-crypto-wide {
  max-width: 1200px; /* Mucho más ancho */
  padding: 2.2rem 2.2rem 1.5rem 2.2rem;
}

.promo-crypto-fullwidth {
  max-width: 1800px;
  width: 98vw;
  margin: 40px auto 32px auto;
  background: #0a1c3a;
  border-radius: 18px;
  box-shadow: 0 4px 24px #0005;
  padding: 2.2rem 0;
  color: #fff;
  display: flex;
  justify-content: center;
}

.promo-crypto-flex {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1700px;
  margin: 0 auto;
  gap: 2.5rem;
}

.promo-crypto-img {
  flex: 0 0 260px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-left: 0;
}

.promo-crypto-img img {
  width: 240px;
  max-width: 100%;
  border-radius: 14px;
  box-shadow: 0 2px 16px #0002;
  display: block;
}

.promo-crypto-text {
  flex: 1 1 0;
  min-width: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 1100px) {
  .promo-crypto-flex {
    max-width: 98vw;
    gap: 1.5rem;
  }
  .promo-crypto-img {
    flex: 0 0 180px;
  }
  .promo-crypto-img img {
    width: 150px;
  }
}
@media (max-width: 800px) {
  .promo-crypto-fullwidth {
    max-width: 99vw;
    width: 99vw;
    padding: 1.2rem 0.2rem 1rem 0.2rem;
    box-sizing: border-box;
    border-radius: 10px;
    margin-left: auto;
    margin-right: auto;
  }
  .promo-crypto-flex {
    flex-direction: column;
    gap: 1rem;
    max-width: 99vw;
    align-items: center;
    justify-content: center;
  }
  .promo-crypto-img {
    justify-content: center;
    margin-bottom: 1rem;
    width: 100%;
    min-width: 0;
  }
  .promo-crypto-img img {
    width: 90vw;
    max-width: 220px;
    height: auto;
    border-radius: 12px;
  }
  .promo-crypto-text {
    text-align: left;
    font-size: 1rem;
    padding: 0 0.5rem;
    width: 100%;
    box-sizing: border-box;
  }
}

.hero-parallax {
  position: relative;
  width: 100vw;
  min-height: 340px;
  max-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a1c3a;
  background-image: url('SEO\ BANNER\ SIN\ TEXTO.png');
  background-size: cover;
  background-position: center 0;
  /* background-attachment: fixed;  <-- ELIMINADO */
  opacity: 1;
  z-index: 1;
  transition: background-position 0.35s cubic-bezier(.4,1.6,.6,1);
}
.hero-parallax-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  padding: 2.5rem 1.5rem;
  width: 100%;
  max-width: 700px;
}
.hero-parallax-content h1 {
  font-size: 2.6rem;
  font-family: 'Orbitron', Arial, sans-serif;
  margin-bottom: 1rem;
  text-shadow: 0 2px 16px #000a;
}
.hero-parallax-content p {
  font-size: 1.25rem;
  color: #FFD700;
  text-shadow: 0 2px 8px #0008;
}
@media (max-width: 700px) {
  .hero-parallax {
    min-height: 200px;
    max-height: 300px;
  }
  .hero-parallax-content h1 {
    font-size: 1.5rem;
  }
  .hero-parallax-content p {
    font-size: 1rem;
  }
}



.dex-img {
  content: url(Dexscreener\ logo\ negro.png);
  transition: filter 0.2s;
}
body.dark-mode .dex-img {
  content: url(Dexscreener\ logo\ blanco.png);
}

.crypto-key-announcement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  background: linear-gradient(90deg, #00ffe7 0%, #FFD700 100%);
  color: #232946;
  font-size: 1.25rem;
  font-weight: bold;
  border-radius: 18px;
  box-shadow: 0 4px 24px #FFD70055;
  padding: 1.2rem 2.5rem;
  margin: 2.5rem auto 1.5rem auto;
  max-width: 480px;
  letter-spacing: 1px;
  animation: fadeInUp 0.8s;
}
.crypto-key-announcement .copy-btn {
  background: #232946;
  color: #FFD700;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 0.6rem 1.5rem;
  box-shadow: 0 2px 12px #FFD70033;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.crypto-key-announcement .copy-btn:hover {
  background: #FFD700;
  color: #232946;
}
.crypto-key-announcement.morado {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  background: linear-gradient(270deg, #7f53ac, #647dee, #b993d6, #7f53ac);
  background-size: 400% 400%;
  color: #fff;
  font-size: 1.25rem;
  font-weight: bold;
  border-radius: 18px;
  box-shadow: 0 4px 24px #7f53ac55;
  padding: 1.2rem 2.5rem;
  margin: 2.5rem auto 1.5rem auto;
  max-width: 480px;
  letter-spacing: 1px;
  animation: gradientMove 6s ease-in-out infinite, fadeInUp 0.8s;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

#menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-acento, #00ffe7);
  z-index: 1001;
}

@media (max-width: 800px) {
  header.main-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0.7rem 0.7rem 1rem 0.7rem;
    position: relative;
    text-align: left;
  }
  .logo-text {
    font-size: 1.3rem;
    margin: 0;
    color: var(--color-header-text, #fff);
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    letter-spacing: 2px;
    text-align: left;
    flex: 1 1 auto;
    order: 0;
    margin-top: 0.5rem;
  }
  .header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    order: 1;
  }
  #theme-toggle, #menu-toggle {
    display: block;
    position: static;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-acento, #00ffe7);
    cursor: pointer;
    z-index: 1100;
    margin: 0;
  }
  #theme-toggle {
    font-size: 1.7rem;
    margin-bottom: 0.3rem;
  }
  #menu-toggle {
    font-size: 2rem;
    position: fixed;
    bottom: 1.2rem;
    left: 1.2rem;
    right: auto;
    top: auto;
    z-index: 1100;
    width: 2.3rem;
    height: 2.3rem;
    font-size: 1.5rem;
    border-radius: 50%;
    background: var(--color-header-bg, #232946);
    color: var(--color-acento, #00ffe7);
    box-shadow: 0 2px 8px #0002;
    display: block;
    margin: 0;
  }
  nav#main-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    bottom: 0;
    top: 0;
    width: 80vw;
    max-width: 320px;
    background: var(--color-header-bg, #232946);
    box-shadow: 2px 0 16px #0008;
    border-radius: 0 18px 18px 0;
    padding: 2rem 1.5rem;
    z-index: 2000;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(.4,1.6,.6,1), opacity 0.25s;
  }
  nav#main-nav.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  nav#main-nav a {
    margin: 1rem 0;
    font-size: 1.2rem;
    color: var(--color-header-text, #fff);
    background: none;
    transition: color 0.3s, background 0.3s;
  }
  nav#main-nav a.activo {
    background: var(--color-acento, #00ffe7);
    color: var(--color-oscuro, #232946) !important;
  }
}

@media (max-width: 800px) {
  #theme-toggle, .theme-switch {
    position: fixed;
    bottom: 1.2rem;
    right: 1.2rem;
    left: auto;
    top: auto;
    z-index: 1100;
    width: 2.3rem;
    height: 2.3rem;
    font-size: 1.5rem;
    border-radius: 50%;
    background: var(--color-header-bg, #232946);
    color: var(--color-acento, #00ffe7);
    box-shadow: 0 2px 8px #0002;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
  }
   #menu-toggle {
    position: fixed;
    bottom: 1.2rem;
    left: 1.2rem;
    right: auto;
    top: auto;
    z-index: 1100;
    width: 2.3rem;
    height: 2.3rem;
    font-size: 1.5rem;
    border-radius: 50%;
    background: var(--color-header-bg, #232946);
    color: var(--color-acento, #00ffe7);
    box-shadow: 0 2px 8px #0002;
    display: block;
    margin: 0;
  }
}

@media (max-width: 800px) {
  .menu-close-btn {
    display: none;
  }
}

/* Solo visible en móvil */
@media (max-width: 800px) {
  .menu-close-btn {
    display: block;
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: var(--color-acento, #00ffe7);
    font-size: 2.2rem;
    z-index: 2100;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
  }
  .menu-close-btn:active,
  .menu-close-btn:focus {
    color: #fff;
    outline: 2px solid var(--color-acento, #00ffe7);
  }
}

/* Oculta el botón de cerrar menú por defecto (escritorio) */
.menu-close-btn {
  display: none;
}

/* Solo visible en móvil */
@media (max-width: 800px) {
  .menu-close-btn {
    display: block;
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: var(--color-acento, #00ffe7);
    font-size: 2.2rem;
    z-index: 2100;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
  }

  
  .menu-close-btn:active,
  .menu-close-btn:focus {
    color: #fff;
    outline: 2px solid var(--color-acento, #00ffe7);
  }
  
}

/* --- Estilos exclusivos para portal.html (canje de cupones) --- */
section#canje {
  background-color: #f0f4f8;
  text-align: center;
  padding: 4rem 2rem;
  max-width: 420px;
  margin: 100px auto 0 auto;
  border-radius: 18px;
  box-shadow: 0 4px 24px #00ffe733;
}
section#canje h2 {
  color: #111;
  font-family: 'Orbitron', Arial, sans-serif;
}
#canjeForm input[type="text"] {
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 1px solid #00ffe7;
  font-size: 1.1rem;
  width: 70%;
  max-width: 260px;
  margin-bottom: 1.2rem;
  outline: none;
  background: #fff;
  color: #232946;
  transition: border 0.2s;
}
#canjeForm input[type="text"]:focus {
  border: 2px solid #232946;
}
#canjeForm button {
  padding: 0.7rem 2.2rem;
  border-radius: 8px;
  border: none;
  background: var(--color-acento, #00ffe7);
  color: #232946;
  font-weight: bold;
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-left: 0.5rem;
}
#canjeForm button:hover {
  background: #232946;
  color: #00ffe7;
}
#canjeMensaje {
  margin-top: 2rem;
  display: none;
  font-size: 1.1rem;
  color: #232946;
  background: #e0ffe7;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 12px #00ffe733;
}

@media (max-width: 800px) {
  #welcome-paragraph {
    display: none;
  }
}

@media (max-width: 800px) {
  #crazy-text {
    max-width: 96vw;
    max-height: 60vh;
    font-size: 1.1rem !important;
    left: 50vw !important;
    top: 50vh !important;
    transform: translate(-50%, -50%) !important;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-line;
    padding: 0.5em 0.2em;
  }
}

/* Whitepaper info box adaptativo */
.whitepaper-info {
  margin-top: 2.2rem;
  background: var(--color-card, #232946);
  color: var(--color-text, #fff);
  border-radius: 14px;
  box-shadow: 0 2px 12px var(--color-card-shadow, #23294622);
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
}

/* Botón Whitepaper adaptativo */
.whitepaper-btn-box {
  text-align: center;
}
.whitepaper-btn {
  display: inline-block;
  background: var(--color-accent, #00ffe7);
  color: var(--color-card, #232946);
  font-weight: bold;
  border-radius: 8px;
  padding: 0.7em 2em;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 2px 8px #00ffe755;
  transition: background 0.2s, color 0.2s;
  max-width: 90vw;
  width: auto;
}
.whitepaper-btn:hover {
  background: var(--color-card, #232946);
  color: var(--color-acento, #00ffe7);
  border: 1.5px solid var(--color-acento, #00ffe7);
}

/* Limpieza y reemplazo de estilos para whitepaper, máxima compatibilidad cross-browser */
/* Elimina estilos viejos/conflictivos de whitepaper */

/* Whitepaper section cross-browser fix */
.whitepaper-section {
  background: var(--color-card, #232946);
  color: var(--color-text, #fff);
  border-radius: 16px;
  box-shadow: 0 2px 12px var(--color-card-shadow, #23294622);
  padding: 1.5rem 1rem;
  margin: 2.2rem auto 0 auto;
  text-align: center;
  max-width: 600px;
  width: 95vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.whitepaper-info {
  font-size: 1.13rem;
  margin: 0;
  color: var(--color-text, #232946);
  background: none;
  border: none;
  padding: 0;
  text-align: center;
  line-height: 1.5;
}

.whitepaper-btn-box {
  width: 100%;
  text-align: center;
}

.whitepaper-btn {
  display: inline-block;
  background: var(--color-accent, #00ffe7);
  color: var(--color-card, #232946);
  font-weight: bold;
  border-radius: 8px;
  padding: 0.7em 2em;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 2px 8px #00ffe755;
  border: none;
  transition: background 0.2s, color 0.2s, border 0.2s;
  cursor: pointer;
}

.whitepaper-btn:hover,
.whitepaper-btn:focus {
  background: var(--color-card, #232946);
  color: var(--color-acento, #00ffe7);
  border: 1.5px solid var(--color-acento, #00ffe7);
  outline: none;
}

@media (max-width: 600px) {
  .whitepaper-section {
    padding: 1rem 0.3rem;
    max-width: 98vw;
    font-size: 1rem;
  }
  .whitepaper-info {
    font-size: 1rem;
    padding: 0;
  }
  .whitepaper-btn {
    font-size: 1rem;
    padding: 0.7em 1.2em;
    max-width: 90vw;
    width: auto;
  }
}

#countdown-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(35,41,70,0.96);
  color: #00ffe7;
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 1.3rem;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 24px #00ffe733;
  z-index: 99999;
  min-width: 210px;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}
@media (max-width: 600px) {
  #countdown-float {
    right: 75px;
    bottom: 8px; 
    font-size: 1rem;
    padding: 0.7rem 1rem;
    min-width: 120px;
    border-radius: 12px;
  }
}
