/* ============================================================
   AVALON.CSS — Framework Real del Ducado
   Tema: Oscuro + soporte para modo claro (toggle-ready)
   Versión: 1.0 — Fusionada y optimizada
   ============================================================ */

:root {
  --bg: #050712;
  --bg-soft: #0b1020;
  --card: #0f172a;
  --card-soft: #111827;
  --accent: #facc15;
  --accent-strong: #fbbf24;
  --accent-soft: rgba(250, 204, 21, 0.3);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --danger: #f97373;
  --border-soft: rgba(148, 163, 184, 0.35);
}

/* LIGHT MODE */
[data-theme="light"] {
  --bg: #f5e6c8;
  --card: #fff7e3;
  --text: #2e2b26;
  --muted: #6f5e4b;
  --accent: #b8860b;
  --border-soft: rgba(184,134,11,0.35);
}

* { box-sizing:border-box;margin:0;padding:0; }
html,body { height:100%;scroll-behavior:smooth; }

body {
  background:radial-gradient(circle at top,#111827 0,var(--bg) 40%,#000);
  color:var(--text);
  font-family:"Cinzel","Segoe UI",serif;
  line-height:1.6;
  transition:.3s ease-in-out;
}

/* LAYOUT */
.page{max-width:960px;margin:auto;padding:32px 16px;}

/* TITLES */
h1,h2,h3 {
  text-align:center;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-family:"Cinzel",serif;
  color:var(--accent-strong);
}

h1{font-size:clamp(1.9rem,4vw,2.6rem);}
h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--accent-strong);
}

h3 {
  font-size: clamp(1rem, 2.6vw, 1.4rem);
  color: var(--muted);
}

.heading-line {
  width:72px;height:2px;margin:10px auto;
  background:linear-gradient(90deg,transparent,var(--accent),transparent);
}

p{margin-bottom:.9rem;}
.center{text-align:center;}
.muted{color:var(--muted);font-size:.9rem;}

/* IMAGES */
img { display:block;max-width:100%;margin:auto; }

.shield,.hero-escudo {
  width: clamp(160px,40vw,300px);
  filter: drop-shadow(0 0 18px rgba(234,179,8,0.6));
  animation:breathe 6s infinite ease-in-out;
}

@keyframes breathe {0%,100%{transform:scale(1);}50%{transform:scale(1.04);}}

/* CARDS */
.avalon-card {
  background:linear-gradient(145deg,var(--card),var(--card-soft));
  border-radius:16px;
  border:1px solid var(--border-soft);
  padding:22px;
  box-shadow:0 18px 40px rgba(0,0,0,.7);
}

/* BUTTONS */
.avalon-btn,.royal-button,.boton-magico,.botonalerta,.btn {
  text-transform:uppercase;
  font-family:"Cinzel",serif;
  cursor:pointer;
  border-radius:50px;
  transition:.25s;
  padding:10px 24px;
}

.royal-button {
  background:linear-gradient(145deg,#9e7a1a,#d6b85a);
  color:#111;
  font-weight:600;

/* -----------------------------------------
   BOTÓN MÁGICO AVALON — FINAL ARCANO
   ----------------------------------------- */

  /* ---- BOTÓN SAGRADO ---- */
  .boton-magico {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-family: "Cinzel", serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-decoration: none;
    color: #c8ffb3;
    border: 2px solid #facc15;
    background: #c8ffb3;
    cursor: pointer;
    transition: 0.35s ease;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(250,204,21,0.25);
  }

  .boton-magico:hover {
    background: #facc15;
    color: #111;
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(250,204,21,0.5);
  }


/* HOVER = Manifestación de poder */
.boton-magico:hover {
  background-color: #06450d;            /* Verde oscuro */
  color: #ffe45e;                       /* Amarillo más brillante */
  border-color: #0fa34a;
  box-shadow: 0 0 28px rgba(0, 255, 100, 0.55);
  transform: scale(1.07);
}

/* Animación: energía respirando */
@keyframes respiracionMagica {
  0% {
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.15);
  }
  50% {
    box-shadow: 0 0 32px rgba(0, 255, 160, 0.45);
  }
  100% {
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.15);
  }
}

/* (Opcional) versión grande ritual */
.boton-magico.grande {
  padding: 20px 40px;
  font-size: 1.5rem;
}

.botonalerta {
  background:#b91c1c;
  color:white;
  border:3px solid var(--accent);
  padding:1.2rem 2.8rem;
  box-shadow:0 0 20px rgba(255,210,50,.4);
}

/* -----------------------------------------
   BOTÓN REAL — GOLDEN ROYAL BUTTON
   ----------------------------------------- */

.boton-real {
  background: linear-gradient(135deg, #c9a634, #f5d76e, #c9a634);
  color: #1c1c1c;
  font-family: "Cinzel", serif;
  padding: 14px 32px;
  border: 2px solid #e6c35a;
  border-radius: 14px;
  cursor: pointer;
  font-size: 1.3rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.35s ease;
  box-shadow: 0 0 18px rgba(255, 223, 102, 0.6);
  position: relative;
  overflow: hidden;
}

/* ✨ Brillo animado que cruza el botón */
.boton-real::after {
  content: "";
  position: absolute;
  top: 0;
  left: -140%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg, 
    transparent,
    rgba(255, 255, 255, 0.7),
    transparent
  );
  transform: skewX(-25deg);
  transition: 0.6s;
  opacity: 0.3;
}

.boton-real:hover::after {
  left: 130%;
  opacity: 0.9;
}

/* 👑 Hover = resplandor real */
.boton-real:hover {
  transform: scale(1.08);
  box-shadow: 0 0 32px rgba(255, 226, 120, 0.9);
  background: linear-gradient(135deg, #f5d76e, #ffeaa7, #f5d76e);
}

/* 🔥 Al presionar */
.boton-real:active {
  transform: scale(0.97);
  box-shadow: 0 0 10px rgba(255, 226, 120, 0.65);
}

h2 { color: var(--accent); }
h3 { color: var(--muted); }

<footer id="mFooter" style="display:none; margin-top:60px; padding:30px 0; text-align:center; background:#000;">
  <a href="https://www.duchyofavalon.org" style="text-decoration:none;">
    <img src="/pluma.png" style="width:90px; display:block; margin:0 auto;">
    <p style="margin-top:8px; font-size:0.75rem; color:#facc15; font-family:system-ui, sans-serif;">Duchy of Avalon</p>
  </a>
</footer>

<script>
  setTimeout(() => {
    document.getElementById("mFooter").style.display = "block";
  }, 5000);
</script>




