/* ======================================================
   RESET CONTROLADO (BRAVE / CHROMIUM SAFE)
====================================================== */
* {
  box-sizing: border-box;
}

/* ======================================================
   BASE GENERAL + TIPOGRAFÍA ORIGINAL
====================================================== */
html, body {
  margin: 0;
  padding: 0;
  background: #2f2f2f;
  color: #cfcfcf;
  font-family: Arial, Helvetica, Verdana, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0;
  overflow-x: hidden; /* nunca scroll lateral */
}

/* ======================================================
   CONTENEDOR GENERAL
====================================================== */
.wrapper {
  width: 600px;
  margin: 0 auto;
  background: #2f2f2f;
}

/* ======================================================
   HEADER
====================================================== */
#headerbox {
  width: 600px;
  margin: 16px auto 8px auto;
  text-align: left;
}

.cyberfractal {
  font-family: "Times New Roman", Times, serif; /* clásico universal */
  font-size: 40px;
  font-weight: normal;
  font-style: italic;          /* cursiva elegante */
  letter-spacing: 0.5px;       /* menos tracking que Arial */
  line-height: 1.0;
  margin: 0;

  color: #f1e4b6;              /* marfil cálido */
  text-shadow:
    0 0 2px rgba(255,235,180,.55),
    0 0 5px rgba(0,0,0,.65);
}


/* ======================================================
   LINKS
====================================================== */
a {
  color: #d6d6d6;
  text-decoration: none;
}

a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ======================================================
   NAV
====================================================== */
nav table {
  width: 100%;
  border-collapse: collapse;
}

nav td {
  text-align: center;
  padding: 6px;
}

nav a {
  font-size: 12px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ======================================================
   TABLA PRINCIPAL (600px EXACTOS)
====================================================== */
.tabla-principal {
  width: 600px;
  margin: 0 auto;
  border-collapse: collapse;
  table-layout: fixed;
}

.tabla-principal,
.tabla-interna {
  max-width: 600px;
}

.col-izquierda {
  width: 380px;
  padding: 10px;
  vertical-align: top;
}

.col-derecha {
  width: 220px;
  padding: 6px;
  vertical-align: top;
  text-align: center;
  overflow: visible;
}

/* ======================================================
   TEXTOS
====================================================== */
p, td, li, span {
  font-size: 13px;
  line-height: 1.35;
  color: #cfcfcf;
}

/* ======================================================
   IMÁGENES (RETRO SAFE)
====================================================== */
img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  height: auto;
  max-width: none;   /* 🔑 no deformar imágenes originales */
}

/* Marco */
.imagen-marco {
  border: 5px solid rgba(0,0,0,.3);
  background: #111;
  padding: 5px;
}

.imagen-contenedor {
  width: 100%;
  text-align: center;
  margin: 10px 0;
}

.imagen-contenedor img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

/* Marco clásico Cyberfractal */
.imagen-marco {
  border: 5px solid rgba(0,0,0,.35);
  background: #111;
  padding: 5px;
}

.marco-luz {
  display: inline-block;
  margin: 10px auto;
  padding: 0;
  text-align: center;
  background: transparent;

  /* HALO DE LUZ */
  box-shadow: 0 0 14px rgba(102, 255, 204, 0.8);
}

.marco-luz img {
  display: block;
  border: 0;
}

/* ======================================================
   LATIDO FRACTAL — ESTABLE
====================================================== */
.fractal-latido {
  animation: latido 4s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform;
}

@keyframes latido {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* ======================================================
   BARRA ICONOS DERECHA
====================================================== */
.barra-iconos {
  margin: 0 auto 8px auto;
  border-collapse: collapse;
}

.barra-iconos td {
  padding: 3px;
}

/* ======================================================
   BOTÓN FLOTANTE
====================================================== */
.btn-flotante {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 999;
}

.btn-flotante img {
  width: 32px;
  height: 32px;
  opacity: .75;
}

.btn-flotante img:hover {
  opacity: 1;
}

/* ======================================================
   FOOTER
====================================================== */
footer {
  font-size: 11px;
  text-align: center;
  color: #aaaaaa;
  letter-spacing: 0.3px;
}

/* ======================================================
   AJUSTE FINO SOLO BRAVE / CHROMIUM
====================================================== */
@supports (-webkit-appearance: none) {
  body {
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
  }
}


/* ======================================================
   MENÚ FRACTAL HORIZONTAL — INF I.HTML
   SIN SCROLL / BRAVE SAFE
====================================================== */

.menu-lateral {
  margin: 12px auto;
  max-width: 600px;
  text-align: center;
  overflow: visible;
}

/* UL principal */
.nav-fractal {
  list-style: none;
  padding: 4px 0;
  margin: 0;
  background: #000;
  white-space: normal;          /* permite 2 filas */
}

/* ítems horizontales */
.nav-fractal > li {
  display: inline-block;
  position: relative;
  margin: 2px 4px;
}

/* links principales */
.nav-fractal > li > a {
  display: inline-block;
  padding: 3px 7px;
  font-size: 11px;
  color: #e0e0e0;
  background: #000;
  text-decoration: none;
}

/* hover */
.nav-fractal > li > a:hover {
  background: #444;
  box-shadow:
    0 0 6px rgba(255,220,120,.6),
    0 0 12px rgba(255,200,80,.4);
}

/* ===============================
   SUBMENÚS
=============================== */

.nav-fractal li ul {
 display: block;              /* siempre presente */
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
  opacity .25s ease,
  transform .25s ease,
  visibility .25s;
  position: absolute;
  top: 100%;
  left: 0;
  background: #000;
  list-style: none;
  padding: 4px;
  min-width: 170px;
  z-index: 1000;
}

/* activación */
.nav-fractal li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-fractal li:hover > ul {
  display: block;
}

.nav-fractal li ul li {
  display: block;
  margin: 0;
}

.nav-fractal li ul li a {
  display: block;
  padding: 3px 6px;
  font-size: 11px;
  color: #ddd;
  white-space: nowrap;
}

.nav-fractal li ul li a:hover {
  background: #555;
}

.nav-fractal > li > a,
.nav-fractal li ul li a {
  font-family: "Times New Roman", Times, serif;
  letter-spacing: 0.3px;
}


/* ===============================
   PREVENCIÓN SCROLL FANTASMA
=============================== */

.menu-lateral,
.nav-fractal,
.nav-fractal * {
  overflow: visible !important;
}

/* Chromium / Brave */
@supports (-webkit-appearance: none) {
  .nav-fractal {
    transform: translateZ(0);
  }
}
/* ======================================================
   RESET CONTROLADO (BRAVE / CHROMIUM SAFE)
====================================================== */
* {
  box-sizing: border-box;
}

/* ======================================================
   BASE GENERAL + TIPOGRAFÍA ORIGINAL
====================================================== */
html, body {
  margin: 0;
  padding: 0;
  background: #2f2f2f;
  color: #cfcfcf;
  font-family: Arial, Helvetica, Verdana, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0;
  overflow-x: hidden; /* nunca scroll lateral */
}

/* ======================================================
   CONTENEDOR GENERAL
====================================================== */
.wrapper {
  width: 600px;
  margin: 0 auto;
  background: #2f2f2f;
}

/* ======================================================
   HEADER
====================================================== */
#headerbox {
  width: 600px;
  margin: 16px auto 8px auto;
  text-align: left;
}

.cyberfractal {
  font-family: "Times New Roman", Times, serif; /* clásico universal */
  font-size: 40px;
  font-weight: normal;
  font-style: italic;          /* cursiva elegante */
  letter-spacing: 0.5px;       /* menos tracking que Arial */
  line-height: 1.0;
  margin: 0;

  color: #f1e4b6;              /* marfil cálido */
  text-shadow:
    0 0 2px rgba(255,235,180,.55),
    0 0 5px rgba(0,0,0,.65);
}


/* ======================================================
   LINKS
====================================================== */
a {
  color: #d6d6d6;
  text-decoration: none;
}

a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ======================================================
   NAV
====================================================== */
nav table {
  width: 100%;
  border-collapse: collapse;
}

nav td {
  text-align: center;
  padding: 6px;
}

nav a {
  font-size: 12px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ======================================================
   TABLA PRINCIPAL (600px EXACTOS)
====================================================== */
.tabla-principal {
  width: 600px;
  margin: 0 auto;
  border-collapse: collapse;
  table-layout: fixed;
}

.col-izquierda {
  width: 380px;
  padding: 10px;
  vertical-align: top;
}

.col-derecha {
  width: 220px;
  padding: 6px;
  vertical-align: top;
  text-align: center;
  overflow: visible;
}

/* ======================================================
   TEXTOS
====================================================== */
p, td, li, span {
  font-size: 13px;
  line-height: 1.35;
  color: #cfcfcf;
}

/* ======================================================
   IMÁGENES (RETRO SAFE)
====================================================== */
img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  height: auto;
  max-width: none;   /* 🔑 no deformar imágenes originales */
}

/* Marco */
.imagen-marco {
  border: 5px solid rgba(0,0,0,.3);
  background: #111;
  padding: 5px;
}

/* ======================================================
   LATIDO FRACTAL — ESTABLE
====================================================== */
.fractal-latido {
  animation: latido 4s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform;
}

@keyframes latido {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* ======================================================
   BARRA ICONOS DERECHA
====================================================== */
.barra-iconos {
  margin: 0 auto 8px auto;
  border-collapse: collapse;
}

.barra-iconos td {
  padding: 3px;
}

/* ======================================================
   BOTÓN FLOTANTE
====================================================== */
.btn-flotante {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 999;
}

.btn-flotante img {
  width: 32px;
  height: 32px;
  opacity: .75;
}

.btn-flotante img:hover {
  opacity: 1;
}

/* ======================================================
   FOOTER
====================================================== */
footer {
  font-size: 11px;
  text-align: center;
  color: #aaaaaa;
  letter-spacing: 0.3px;
}

/* ======================================================
   AJUSTE FINO SOLO BRAVE / CHROMIUM
====================================================== */
@supports (-webkit-appearance: none) {
  body {
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
  }
}


/* ======================================================
   MENÚ FRACTAL HORIZONTAL — INF I.HTML
   SIN SCROLL / BRAVE SAFE
====================================================== */

.menu-lateral {
  margin: 12px auto;
  max-width: 600px;
  text-align: center;
  overflow: visible;
}

/* UL principal */
.nav-fractal {
  list-style: none;
  padding: 4px 0;
  margin: 0;
  background: #000;
  white-space: normal;          /* permite 2 filas */
}

/* ítems horizontales */
.nav-fractal > li {
  display: inline-block;
  position: relative;
  margin: 2px 4px;
}

/* links principales */
.nav-fractal > li > a {
  display: inline-block;
  padding: 3px 7px;
  font-size: 11px;
  color: #e0e0e0;
  background: #000;
  text-decoration: none;
}

/* hover */
.nav-fractal > li > a:hover {
  background: #444;
  box-shadow:
    0 0 6px rgba(255,220,120,.6),
    0 0 12px rgba(255,200,80,.4);
}

/* ===============================
   SUBMENÚS
=============================== */

.nav-fractal li ul {
 display: block;              /* siempre presente */
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
  opacity .25s ease,
  transform .25s ease,
  visibility .25s;
  position: absolute;
  top: 100%;
  left: 0;
  background: #000;
  list-style: none;
  padding: 4px;
  min-width: 170px;
  z-index: 1000;
}

/* activación */
.nav-fractal li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-fractal li:hover > ul {
  display: block;
}

.nav-fractal li ul li {
  display: block;
  margin: 0;
}

.nav-fractal li ul li a {
  display: block;
  padding: 3px 6px;
  font-size: 11px;
  color: #ddd;
  white-space: nowrap;
}

.nav-fractal li ul li a:hover {
  background: #555;
}

.nav-fractal > li > a,
.nav-fractal li ul li a {
  font-family: Arial, Helvetica, Verdana, sans-serif;
  font-size: 11px;
  letter-spacing: 0.2px;
}


/* ===============================
   PREVENCIÓN SCROLL FANTASMA
=============================== */

.menu-lateral,
.nav-fractal,
.nav-fractal * {
  overflow: visible !important;
}

/* Chromium / Brave */
@supports (-webkit-appearance: none) {
  .nav-fractal {
    transform: translateZ(0);
  }
}

/* ======================================================
   MENÚ FRACTAL — BODY CENTRADO (BRAVE SAFE)
====================================================== */

.menu-lateral {
  width: 100%;
  max-width: 450px;     /* límite real */
  margin: 6px auto 12px auto; /* centrado al body */
  text-align: center;
  overflow: visible;
}

/* UL principal */
.nav-fractal {
  display: inline-block;  /* evita ocupar todo el ancho */
  max-width: 450px;
  margin: 0 auto;
  padding: 4px 0;
  background: #000;
}

/* ======================================================
   MENÚ GRÁFICO — COLUMNA DERECHA
====================================================== */

.menu-derecho {
  width: 100%;
  border-collapse: collapse;
}

.menu-derecho img {
  display: block;
  margin: 0 auto 8px auto;
  border: 1px solid rgba(0,0,0,.6);
}

.menu-derecho a:last-child img {
  margin-bottom: 0;
}

/* ajuste fino íconos finales */
.icono-legal img {
  margin-top: 6px;
}

.banner-legal img {
  margin-top: 8px;
}
/* ======================================================
   RESALTADO CONCEPTUAL
====================================================== */

.resaltar-rojo {
  display: block;
  margin: 8px 0 12px 0;
  font-family: "Times New Roman", Times, serif;
  font-size: 15px;
  font-style: italic;
  color: #d46a6a;          /* rojo sobrio, no chillón */
  letter-spacing: 0.3px;
}

/* ======================================================
   FIRMA DEL AUTOR
====================================================== */
.autor-firma {
  text-align: right;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 12px;
  color: #cfcfcf;
}

/* ======================================================
   FOOTER
====================================================== */
.footer {
  margin-top: 18px;
  font-size: 11px;
  color: #aaaaaa;
}

/* ======================================================
   BARRA DE ACCIONES — HORIZONTAL REAL
====================================================== */

.barra-acciones {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;                 /* separación entre íconos */
  flex-wrap: nowrap;        /* ❗ NO bajar a otra línea */
  white-space: nowrap;
  margin: 10px auto 6px;
  text-align: center;
}

/* enlaces */
.barra-acciones a {
  display: inline-flex;
  align-items: center;
}

/* separadores | */
.barra-acciones > span.sep {
  color: #888;
  font-size: 11px;
  margin: 0 2px;
}

/* imágenes */
.barra-acciones img {
  display: inline-block;
  vertical-align: middle;
  opacity: 0.85;
}

.barra-acciones img:hover {
  opacity: 1;
}

/* ======================================================
   AVISO DE IMPRESIÓN — ANCHO REAL 600px
====================================================== */

.print-aviso {
  display: block;
  width: 100%;
  max-width: 600px;      /* límite absoluto */
  margin: 8px auto 0;
  padding-top: 6px;

  text-align: center;
  font-size: 11px;
  font-family: Arial, Helvetica, Verdana, sans-serif;
  letter-spacing: 0.3px;

  color: #b8b0a0;
  border-top: 1px solid rgba(255,255,255,.15);
}

.print-aviso strong {
  color: #e6d7a5;
  font-weight: normal;
}



/* Datos legales */
.footer-legal {
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
  margin-top: 8px;
}

.footer,
.footer * {
  max-width: 100%;
}

/* ======================================================
   TABLA INTERNA  MISMO DISEO, SIN EXPANDIR ANCHO
====================================================== */

.tabla-interna {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
}
/* BLOQUEA EXPANSIN HORIZONTAL */
table {
  table-layout: fixed;
}

.wrapper {
  width: 600px;
  max-width: 600px;
  margin: 0 auto;
  overflow-x: hidden;
}

.section,
main,
footer {
  max-width: 600px;
  overflow-x: hidden;
}
