@charset "utf-8";

/* ======================================================
   FRACTALCSS — VERSIÓN LIMPIA FINAL
   Marcos · Imágenes · Sin romper layout legacy
====================================================== */

/* ===============================
   IMAGEN CON MARCO DECORATIVO
=============================== */

.imagen-marco {
  display: block;
  margin: 20px auto;

  padding: 5px;
  background: #d4d4d4;

  border: 5px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;

  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
}

/* ===============================
   IMÁGENES DENTRO DE LINKS
=============================== */

a img {
  border: 1px solid #444;
  transition: border-color 0.3s ease;
}

a img:hover {
  border-color: #caa755;
}

/* ===============================
   HEADER FRACTAL (600px REAL)
=============================== */

#headerbox {
  width: 600px;
  max-width: 600px;
  margin: 0 auto;

  padding: 4px 12px;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* ===============================
   IMÁGENES — CONTROL SEGURO
=============================== */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===============================
   FONDO GENERAL (NEUTRO)
=============================== */

html,
body {
  background: #2f2f2f !important;
}

.wrapper,
main.section {
  background: #2f2f2f !important;
}

/* ===============================
   BORDES LEGACY
   (compatibilidad con HTML viejo)
=============================== */

.img-borde,
img[border] {
  border: 1px solid #666;
}

.b1 {
  border: 1px solid #d4af37;
}

.b3 {
  border: 3px solid #d4af37;
}
/* ======================================================
   FRACTAL — MARCO CON LATIDO REAL (HOSTING SAFE)
   NO transform · NO pseudo-elementos · NO bloqueable
====================================================== */

.fractal-box {
  display: inline-block;
  padding: 14px;
  background: #000;
  border: 2px dashed rgba(255,80,80,0.75);

  /* LATIDO REAL */
  animation: latido-fractal 2.8s infinite;
}

/* imagen limpia */
.fractal-box img {
  display: block;
  margin: 0 auto;
  border: none !important;
}

/* texto */
.fractal-caption {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
}

/* ANIMACIÓN 100% COMPATIBLE */
@keyframes latido-fractal {
  0% {
    box-shadow: 0 0 4px rgba(255,80,80,0.25);
  }
  50% {
    box-shadow: 0 0 14px rgba(255,80,80,0.75);
  }
  100% {
    box-shadow: 0 0 4px rgba(255,80,80,0.25);
  }
}

