@charset "utf-8";

/* ===============================
   BASE GENERAL
=============================== */
body {
  margin: 0;
  padding: 0;
  background-color: #0b0b0b;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===============================
   TEXTO FRACTAL
=============================== */
.p-fractal {
  text-align: justify;
  margin: 0 10px 1.8em;
}

.p-fractal2 {
  margin-bottom: 0.1rem;
}

.azul-claro {
  color: #8ecbff;
  line-height: 1.5;
}

.fig-justificado {
  text-align: justify;
  max-width: 431px;
  padding-left: 5px;
  hyphens: auto;
}


/* ===============================
   FIRMA
=============================== */
.firma {
  width: 50%;
  margin-left: auto;
  text-align: left;
  font-size: 0.7rem;
  line-height: 1.4;
}

.firma2 {
  margin-top: 0.1rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #9a9a9a;
  text-align: right;
}

/* ===============================
   CONTENEDORES Y COLUMNAS
=============================== */
.contenedor {
  width: 600px;
  margin: 0 auto;
  text-align: left;
}

.contenedor-fractal {
  display: block;
  width: fit-content;     /* se ajusta a la imagen */
  margin: 20px auto;      /* centra dentro del TD */
  padding: 12px;
  text-align: center;
	 outline: 2px solid red;
}

.contenedor-fractal img {
  display: block;
}


.col-main {
  padding-right: 8px;
}

.col-side {
  width: 138px;
  min-width: 138px;
}

.spacer {
  height: 8px;
}

.sangria {
  padding-left: 10px;
}

/* ===============================
   FRACTAL MEDIA (ESTRUCTURA)
=============================== */
.fractal-media {
  margin: 1.2rem auto;
  text-align: center;
}

/* ===============================
   CAPA VISUAL AISLADA
=============================== */
.fractal-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* ===============================
   TEXTO AISLADO (NO ANIMA JAMÁS)
=============================== */
.fractal-texto {
  margin-top: 0.6rem;
  max-width: 431px;
  margin-left: auto;
  margin-right: auto;
  animation: none !important;
  transform: none !important;
}

.fractal-texto * {
  animation: none !important;
  transform: none !important;
}

/* ===============================
   MARCO FRACTAL – COLAPSO
=============================== */
.marco-fractal-colapso {
  background: radial-gradient(
    circle at center,
    rgba(255,255,255,0.08),
    rgba(0,0,0,0) 70%
  );
}

.marco-fractal-colapso::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(255,80,80,0.75);
  animation: perder-lados 4s infinite linear;
  pointer-events: none;
}

/* ===============================
   MARCO FRACTAL – TRIANGULAR
=============================== */
.marco-fractal-triangular::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-left: 1px dashed rgba(255,80,80,0.6);
  border-right: 1px dashed rgba(255,80,80,0.6);
  border-bottom: 1px dashed rgba(255,80,80,0.6);
  animation: perder-triangulo 4s infinite linear;
  pointer-events: none;
}

/* ===============================
   MARCO PAVIMENTO (FIJO)
=============================== */
.fractal-media.marco-fractal-pavimento {
  padding: 14px;
  background: radial-gradient(
    circle at center,
    rgba(255,255,255,0.06),
    rgba(0,0,0,0) 75%
  );
  border: 1px dashed rgba(255,80,80,0.6);
}

.fractal-media.marco-fractal-pavimento figcaption {
  max-width: 431px;
  margin: 0.6rem auto 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: #8ecbff;
  text-shadow: 0 0 6px rgba(142,203,255,0.6);
  text-align: justify;
}

/* ===============================
   LATIDO (SOLO IMAGEN)
=============================== */
.latido-fractal {
  display: inline-block;
  will-change: transform, opacity;
}

.latido-on {
  animation: latido-fractal 1.8s ease-in-out infinite;
}

.latido-off {
  animation: none;
}

/* ===============================
   ANIMACIONES
=============================== */
@keyframes perder-lados {
  25%  { border-top-color: transparent; }
  50%  { border-right-color: transparent; }
  75%  { border-bottom-color: transparent; }
  100% { border-left-color: transparent; }
}

@keyframes perder-triangulo {
  33% { border-left-color: transparent; }
  66% { border-right-color: transparent; }
  100% {
    border-bottom-color: transparent;
    opacity: 0.2;
  }
}

@keyframes latido-fractal {
  0%   { transform: scale(1);    opacity: 0.9; }
  50%  { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1);    opacity: 0.9; }
}
.gif-centrado {
  text-align: center;   /* vence al section */
}

.contenedor-fractal {
  display: inline-block;  /* clave en tablas */
  padding: 12px;
}

.nav-footer {
  display: flex;
  flex-direction: row;   /* eje horizontal */
  justify-content: center;
  align-items: center;
  gap: 10px;             /* espacio entre ítems */
}
