/* ================================
   CONTENEDOR GENERAL
================================ */
.fractal-contenedor {
  max-width: 320px;
  margin: 40px auto;
  text-align: center;
}


/* ================================
   TÍTULO BIOLÓGICO / BIOPOLÍTICO
================================ */
.titulo-biopolitico {
  margin-top: 35px;
  padding: 22px 18px;

  font-size: 22px;
  font-style: italic;
  line-height: 1.3;

  color: #ff4d4d;
  text-shadow:
    0 0 8px rgba(255, 50, 50, 0.9),
    0 0 12px rgba(255, 0, 0, 0.7);

  background: rgba(40, 0, 0, 0.55);
  border-radius: 14px;
  border: 2px solid rgba(255, 80, 80, 0.5);

  animation:
    latido 1.2s infinite ease-in-out,
    respiracion 6s infinite ease-in-out,
    tension 4s infinite ease-in-out;
}

.titulo-biopolitico a {
  color: inherit;
  text-decoration: none;
}


/* --- Animaciones del título --- */
@keyframes latido {
  0% { transform: scale(1); }
  30% { transform: scale(1.06); }
  40% { transform: scale(1); }
  70% { transform: scale(1.08); }
  80% { transform: scale(1); }
}

@keyframes respiracion {
  0%   { letter-spacing: 0px; opacity: 0.9; }
  50%  { letter-spacing: 1.5px; opacity: 1; }
  100% { letter-spacing: 0px; opacity: 0.9; }
}

@keyframes tension {
  0%   { filter: brightness(1); }
  50%  { filter: brightness(1.25) saturate(1.3); }
  100% { filter: brightness(1); }
}


/* ================================
   ZOOM FRACTAL DE IMAGEN
================================ */
.zoom-fractal {
  display: inline-block;

  /* evita que la imagen aumentada tape el título */
  padding-top: 40px;
  margin-bottom: 20px;
}

/* que el zoom se expanda hacia abajo, NO hacia arriba */
.zoom-fractal img {
  transition: transform 0.4s ease, filter 0.4s ease;
  border-radius: 5px;
  transform-origin: bottom center;
}

.zoom-fractal:hover {
  margin-bottom: 60px; /* espacio extra en hover */
}

.zoom-fractal:hover img {
  transform: scale(1.42);
  filter: drop-shadow(0 0 18px #cc33ff);
  animation: microtemblor-img 0.15s infinite;
}

@keyframes microtemblor-img {
  0%   { transform: scale(1.42) translate(0px, 0px); }
  50%  { transform: scale(1.42) translate(1.6px, -1.6px); }
  100% { transform: scale(1.42) translate(0px, 0px); }
}


/* ================================
   BOX DE ENLACES / ACCIONES
================================ */
.box-enlaces {
  margin-top: 18px;
  padding: 10px 12px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  border: 1px solid rgba(255,70,70,0.35);
  background: rgba(20,0,0,0.55);
  border-radius: 8px;

  box-shadow: 0 0 10px rgba(255,0,0,0.22);
}

.box-izquierda,
.box-derecha {
  display: flex;
  align-items: center;
  gap: 14px;
}


/* === Botón de impresión dentro del box === */
.btn-box-print {
  font-size: 18px;
  padding: 4px 8px;

  background: rgba(60, 0, 0, 0.6);
  border: 1px solid rgba(255, 80, 80, 0.6);
  border-radius: 6px;

  color: #ffb3b3;
  text-decoration: none;

  transition: 0.25s ease;
  box-shadow: 0 0 6px rgba(255,0,0,0.25);
}

.btn-box-print:hover {
  background: rgba(120, 0, 0, 0.85);
  color: white;
  transform: scale(1.12);
  box-shadow: 0 0 14px rgba(255,0,0,0.55);
}


/* ================================
   BOTÓN FLOTANTE VISCERAL
================================ */
.print-float-visceral {
  position: fixed;
  bottom: 25px;
  right: 25px;

  padding: 14px 20px;
  background: rgba(80,0,0,0.8);

  border: 2px solid rgba(255,60,60,0.7);
  border-radius: 12px;

  color: #ffb3b3;
  font-size: 18px;
  text-decoration: none;

  box-shadow:
    0 0 12px rgba(255,0,0,0.55),
    inset 0 0 8px rgba(255,80,80,0.4);

  animation:
    latido-visceral 1.6s infinite ease-in-out,
    brillo-hematico 4s infinite ease-in-out;

  transition: 0.3s ease;
  z-index: 9999;
}

.print-float-visceral:hover {
  color: #fff;
  background: rgba(150,0,0,0.9);
  transform: scale(1.15);
  box-shadow:
    0 0 22px rgba(255,0,0,0.8),
    inset 0 0 10px rgba(255,100,100,0.6);
}

@keyframes latido-visceral {
  0% { transform: scale(1); }
  20% { transform: scale(1.08); }
  40% { transform: scale(1); }
  60% { transform: scale(1.12); }
}

@keyframes brillo-hematico {
  0%   { filter: brightness(1); }
  50%  { filter: brightness(1.35) saturate(1.25); }
  100% { filter: brightness(1); }
}
