:root{
  --gold:#FFD700;
  --gold-soft: rgba(255,215,0,.14);
  --bg-overlay: rgba(0,0,0,.42);

  --panel: rgba(10,26,47,.78);
  --panel-2: rgba(0,0,0,.55);

  --text:#ffffff;
  --muted: rgba(255,255,255,.86);

  --radius: 18px;
  --shadow: 0 16px 36px rgba(0,0,0,.35);
  --border: 1px solid rgba(255,215,0,.18);

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 44px;
}

*{ box-sizing: border-box; }

html, body{
  height: 100%;
  margin: 0;
}

body{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--space-5) var(--space-3);
  font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);

  background: url("../assets/mazo-libro.png") center/cover no-repeat fixed;
  position: relative;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

/* Capa para que el texto se lea mejor */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: -1;
}

/* Layout principal */
.perfil-wrapper{
  width: min(520px, 100%);
  display: grid;
  gap: var(--space-4);
  justify-items: center;
}

/* Logo */
.logo-superior img{
  width: clamp(120px, 18vw, 180px);
  height: auto;
  filter: drop-shadow(0 12px 16px rgba(0,0,0,.35));
}

/* Tarjeta central */
.cuadro-perfil{
  width: 100%;
  padding: clamp(18px, 3.4vw, 34px);
  border-radius: var(--radius);
  border: var(--border);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
}

/* Título */
.cuadro-perfil h2{
  font-family: 'Cinzel', serif;
  color: var(--gold);
  margin: 0 0 var(--space-3);
  letter-spacing: .6px;
  font-size: clamp(18px, 2.4vw, 26px);
}

/* Línea decorativa sutil */
.cuadro-perfil h2::after{
  content:"";
  display:block;
  width: min(240px, 70%);
  height: 1px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,.75), transparent);
}

/* Botones */
.botones-login{
  display: grid;
  gap: 12px;
  margin-top: var(--space-4);
}

/* Links como botones */
.boton-login{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  width: 100%;
  min-height: 46px;
  padding: 12px 14px;

  border-radius: 12px;
  border: 1px solid rgba(255,215,0,.28);
  background: rgba(255,215,0,.95);
  color: #111;

  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: .4px;
  text-decoration: none;

  box-shadow: 0 10px 18px rgba(0,0,0,.25);
  transition: transform .15s ease, filter .2s ease, box-shadow .2s ease;
}

/* Hover/Active */
.boton-login:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 22px rgba(0,0,0,.28);
}

.boton-login:active{
  transform: translateY(0);
  filter: brightness(.98);
}

/* Accesibilidad: enfoque teclado */
.boton-login:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px var(--gold-soft), 0 10px 18px rgba(0,0,0,.25);
}

/* =========================
   Responsive
   ========================= */

/* En pantallas muy chicas, reduce aire para que no se sienta apretado */
@media (max-width: 480px){
  body{
    padding: 18px 12px;
  }

  .perfil-wrapper{
    gap: 16px;
  }

  .botones-login{
    gap: 10px;
  }
}