/* ======================================================
   ILLEX.CSS — VERSIÓN FINAL ESTABLE
   Legacy + Cyberfractal controlado
====================================================== */

/* ======================================================
   RESET BÁSICO
====================================================== */

* {
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px; /* legacy: NO tocar */

  background: #111 url('../images/bg.gif') fixed;

  color: #ececec;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  padding-bottom: 80px;
}
/* ======================================================
   CONTENEDOR PRINCIPAL (ÚNICO Y CONSISTENTE)
====================================================== */

.contenedor-600 {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 0 25px rgba(0,0,0,0.8);
  overflow: hidden;
	
}

.contenedor-600 > table {
  width: 100%;
}


/* ======================================================
   IMÁGENES
====================================================== */

img {
  max-width: 100%;
  height: auto;
}

/* ======================================================
   TABLAS LEGACY
====================================================== */

td {
  font-size: 10px;
  vertical-align: top;
  overflow: hidden;   /* 🔥 CLAVE */
}

table, tr, td {
  height: auto !important;
}


table{
  max-width:100%;
  height:auto;
}

table[width="600"] {
  width: 100% !important;
  max-width: 600px;
}

/* ======================================================
   ENLACES
====================================================== */

a {
  text-decoration: none;
  transition: color 0.3s ease;
}

a:link    { color: #F76B08; }
a:visited { color: #FFAD73; }
a:hover,
a:active  { color: #FFFFFF; }

/* ======================================================
   IMÁGENES FLOTANTES
====================================================== */

img.izquierda {
  float: left;
  margin-right: 20px;
}

img.derecha {
  float: right;
  margin-left: 20px;
}

/* ======================================================
   BORDES IMÁGENES
====================================================== */

img[border],
.img-borde {
  border: 1px solid rgba(255,255,255,0.4);
  margin: 4px 0;
}

.img-borde:hover {
  border-color: #fff;
}

.b1 { border: 1px solid #d4af37; }
.b3 { border: 3px solid #d4af37; }

/* ======================================================
   MENÚ TABLA
====================================================== */

.menu-table {
  width: 100%;
  border-collapse: collapse;
}

.menu-table td {
  padding: 10px;
  text-align: center;
}

.menu-table img {
  display: block;
  margin: 5px auto;
  border: 1px solid #ccc;
}

/* ======================================================
   HEADER CYBERFRACTAL
====================================================== */

#headerbox {
  padding: 14px 0 10px;
  line-height: normal;
}

#headerbox h1 {
  line-height: 1.15;
  padding-top: 4px;
}

.cyberfractal {
  font-size: 40px;
  display: inline-block;
  padding-top: 6px;
}

/* ======================================================
   LISTAS
====================================================== */

ul, ol {
  padding-left: 20px;
}

.lista-semiologia {
  margin: 0 0 20px 20px;
}

.lista-semiologia li {
  margin-bottom: 8px;
}

/* =========================
   BOTON FLOTANTE
========================= */

.btn-flotante{
  position: fixed;
  left: 50%;
  margin-left: 300px;
  transform: translateX(-70px);
  bottom: 40px;

/* alineado al contenedor real */
left:50%;
margin-left:300px;   /* mitad de 600 */
transform:translateX(-70px);

width:55px;
height:55px;

background:rgba(255,255,255,0.35);

border-radius:50%;

display:flex;
align-items:center;
justify-content:center;

opacity:0;

transition:all .4s ease;

z-index:999;

box-shadow:
0 0 6px rgba(120,170,255,.4),
0 0 12px rgba(170,120,255,.3);

}

.btn-flotante.visible{
opacity:.8;
}

.btn-flotante img{
width:34px;
opacity:.7;
}

.btn-flotante:hover{
transform:translateX(-70px) scale(1.1);
background:rgba(255,255,255,.6);
}


/* =========================
   ONDA FRACTAL (FIJA AL CENTRO)
========================= */

#onda-fractal{

position:fixed;

bottom:0;

left:50%;
transform:translateX(-50%);

width:600px;
height:4px;

pointer-events:none;

opacity:0;

}

/* línea base */

#onda-fractal::after{

content:"";
position:absolute;
left:0;
top:0;

width:100%;
height:2px;

background:linear-gradient(
90deg,
transparent,
rgba(120,170,255,.4),
rgba(200,140,255,.4),
transparent
);

opacity:.4;

}

/* pulso */

#onda-fractal::before{

content:"";
position:absolute;

left:-80px;
top:-1px;

width:80px;
height:6px;

opacity:0;

background:linear-gradient(
90deg,
rgba(120,170,255,0),
rgba(120,170,255,1),
rgba(200,140,255,1),
rgba(120,170,255,0)
);

filter:blur(1px);

}


/* animación */

#onda-fractal.activa{
animation:onda-neuronal 1.6s ease-out;
}

@keyframes onda-neuronal{

0%{
opacity:0;
transform:translateX(-50%) scaleX(.4);
}

40%{
opacity:1;
}

100%{
opacity:0;
transform:translateX(-50%) scaleX(1.2);
}

}

#onda-fractal.activa::before{
animation:pulso-fractal 1.8s linear;
}

@keyframes pulso-fractal{

0%{
left:-80px;
opacity:0;
}

10%{opacity:1;}

90%{opacity:1;}

100%{
left:600px;
opacity:0;
}

}

@media (max-width: 600px){
  .btn-flotante{
    right: 20px;
    left: auto;
    margin-left: 0;
    transform: none;
  }
}
/* ??? MEN ILLEX DISTRIBUIDO EN 600px ??? */
.menu-illex-old {
  width: 600px;
  margin: 0 auto;              /* centra el men */
  background: #333;
  padding: 4px 0;

  display: flex;               /* ?? distribucin horizontal */
}

/* LINKS */
.menu-illex-old a {
  flex: 1;                     /* ?? todos iguales */
  text-align: center;

  color: #e6e6e6;
  text-decoration: none;

  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.8px;

  padding: 4px 0;              /* altura uniforme */

  border-right: 1px solid rgba(255,255,255,0.08);  /* divisin sutil */

  transition: all 0.25s ease;
}

/* quita lnea del ltimo */
.menu-illex-old a:last-child {
  border-right: none;
}

/* HOVER (dorado suave) */
.menu-illex-old a:hover {
  color: #d6b85c;

  text-shadow:
    0 0 4px rgba(230,208,138,0.6),
    0 0 10px rgba(230,208,138,0.3);
}