/* ======================================================
   HEADER CYBERFRACTAL — DEFINITIVO (LEGACY SEGURO)
====================================================== */

/* Contenedor del header */
#headerbox {
  margin: 0 auto;
  padding: 6px 0 4px 0;
  text-align: left;   /* ← clave */
}

/* Enlace envolvente */
#headerbox a {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1;
}

/* Título */
#headerbox h1 {
  margin: 0;
  padding: 0;
  line-height: 1.05;
}

/* ======================================================
   TÍTULO CYBERFRACTAL (ÚNICO — SIN DUPLICADOS)
====================================================== */

.cyberfractal {
  font-family: 'Cinzel Decorative', serif;

  font-size: 40px;          /* tamaño base legacy seguro */
  font-weight: 500;
  letter-spacing: 2px;

  margin: 0;
  line-height: 1.05;

  color: #f6e6b5;
  text-shadow:
    0 0 6px rgba(255,230,180,0.6),
    0 0 14px rgba(200,160,90,0.4),
    0 0 18px rgba(255,240,180,0.8);
}

/* ======================================================
   TÍTULO BIENVENIDA (OJO + TEXTO)
====================================================== */

.bienvenido {
  font-family: 'Cinzel Decorative', 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;

  color: #f6e6b5;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin: 0;
  padding: 0;
  line-height: 1.05;

  text-shadow:
    0 0 4px rgba(255,230,180,0.6),
    0 0 14px rgba(200,160,90,0.4),
    0 0 18px rgba(255,240,180,0.8);

  animation: brilloRespirante 8s ease-in-out infinite;
}

/* ======================================================
   SÍMBOLO (OJO)
====================================================== */

.bienvenido .simbolo {
  width: 40px;
  height: auto;

  opacity: 0;
  transform: scale(0.6);

  animation:
    aparecerSimbolo 1.6s ease-out forwards,
    latidoRespirante 8s ease-in-out infinite;

  animation-delay: 0s, 0.6s;
}

/* ======================================================
   TEXTO BIENVENIDA
====================================================== */

.bienvenido .texto {
  opacity: 0;
  transform: translateY(6px);

  animation: aparecerTexto 1s ease-out forwards;
  animation-delay: 1s;
}

.cyberfractal_26 {
  display: inline-flex;
  align-items: center;     /* alinea verticalmente texto e imagen */
  gap: 16px;                /* espacio entre nombre y bandera */
}

/* ======================================================
   ANIMACIONES
====================================================== */

@keyframes aparecerSimbolo {
  0%   { opacity: 0; transform: scale(0.6); }
  60%  { opacity: 1; transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes aparecerTexto {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes brilloRespirante {
  0%, 100% {
    color: #f6e6b5;
    text-shadow: 0 0 6px rgba(255,240,180,0.6);
  }
  50% {
    color: #fff1c9;
    text-shadow: 0 0 22px rgba(255,255,210,1);
  }
}

@keyframes latidoRespirante {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  55% {
    transform: scale(1.06);
    filter: brightness(1.15);
  }
}

/* ======================================================
   MÓVIL – LIVIANO Y SEGURO
====================================================== */

@media (max-width: 600px) {
  #headerbox {
    margin-left: 10px;
    padding: 2px 8px;
  }

  .cyberfractal {
    font-size: 2.4rem;
  }

  .bienvenido {
    font-size: 2.1rem;
  }
}

.rojo-fosfo {
  color: #ff3333;
  font-weight: normal;        /* sigue siendo texto corrido */
  text-shadow: 0 0 5px rgba(255,80,80,0.7);
}
table {
  box-sizing: border-box;
}
img {
  max-width: 100%;
}

/* ===== BARRA DE ACCIONES HORIZONTAL CON SEPARADORES ===== */
.barra-acciones {
  display: flex;               /* activa flexbox */
  justify-content: center;     /* centra horizontalmente */
  align-items: center;         /* centra verticalmente */
  flex-wrap: wrap;             /* ajusta si pantalla es pequeña */
  margin: 0 auto;             
  padding: 5px 0;             
}

/* cada fila dentro de la barra de acciones */
.barra-acciones .fila {
  display: flex;               /* flex horizontal */
  justify-content: center;     /* centra links de la fila */
  align-items: center;         /* alinea verticalmente */
  gap: 5px;                    /* espacio entre links de la fila */
}

/* links dentro de la barra de acciones */
.barra-acciones a {
  display: flex;              
  align-items: center;
  text-decoration: none;
  position: relative;
  padding: 0 5px;             /* espacio interno para separar los íconos */
}

/* separador "|" entre links, excepto el último */
.barra-acciones a::after {
  content: "|";               
  margin-left: 5px;
  color: #000;                
}

/* quitar separador del último link de cada fila */
.barra-acciones .fila a:last-child::after {
  content: "";               
}

/* mantener tamaño original de las imágenes */
.barra-acciones a img {
  display: block;
  vertical-align: middle;
  max-width: 100%;
}
