/* ── Variables (mismas que iniciosesion.css) ── */
:root {
  --gold: #d4af37;
  --gold-dark: #b8860b;
  --copper: #977a5a;
  --dark: #0d0906;
  --cream: #f9e3ba;
  --white: #EEEDEB;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: 'Jost', sans-serif;
  background: var(--dark);
  overflow-x: hidden;
}

/* ── Fondo ── */
.bg-scene {
  position: fixed;
  inset: 0;
  background: url("../img/ibague1.jpg") center/cover no-repeat;
  z-index: 0;
}

.bg-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
      rgba(13, 9, 6, 0.92) 0%,
      rgba(13, 9, 6, 0.55) 40%,
      rgba(151, 122, 90, 0.18) 70%,
      rgba(13, 9, 6, 0.95) 100%);
}

.bg-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(151, 122, 90, 0.12) 0%, transparent 50%);
}

/* ── HEADER ── */
.encabezado {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4%;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  background: linear-gradient(to bottom, rgba(13, 9, 6, 0.9), transparent);
}

.logo {
  width: 180px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.3));
}

nav ul {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
}

nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  padding: 8px 18px;
  border-radius: 30px;
  transition: all 0.4s ease;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

nav ul li a:hover {
  color: var(--gold);
}

nav ul li a:hover::after {
  width: 60%;
}

/* ── MAIN ── */
main {
  position: relative;
  z-index: 5;
  min-height: calc(100vh - 120px - 200px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}

/* ── CARD DE REGISTRO ── */
.form-registro {
  width: 420px;
  max-width: 100%;
  background: rgba(13, 9, 6, 0.6);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 24px;
  padding: 50px 45px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: cardReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes cardReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-registro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.form-registro::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Ornamento ── */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.ornament-line {
  flex: 1;
  height: 1px;
  max-width: 60px;
  background: linear-gradient(90deg, transparent, var(--copper));
}

.ornament-line.right {
  background: linear-gradient(90deg, var(--copper), transparent);
}

.ornament-diamond {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ── Títulos ── */
h2 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--copper);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

/* ── INPUTS ── */
label {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
  margin-bottom: 6px;
  margin-top: 16px;
  padding-left: 4px;
  text-align: left;
}

input {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(151, 122, 90, 0.35);
  border-radius: 50px;
  color: var(--white);
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  outline: none;
  margin-top: 0;
}

input:focus {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.12), inset 0 0 10px rgba(212, 175, 55, 0.03);
}

input::placeholder {
  color: rgba(238, 237, 235, 0.3);
}

/* ── BOTÓN ── */
button {
  margin-top: 28px;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--dark);
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
}

button:hover::before {
  left: 100%;
}

/* ── Link de inicio de sesión ── */
.link-login {
  display: block;
  margin-top: 20px;
  color: rgba(212, 175, 55, 0.6);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s;
  text-align: center;
}

.link-login:hover {
  color: var(--gold);
}

/* ── Separador ── */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: rgba(151, 122, 90, 0.25);
}

.divider span {
  font-family: 'Cormorant Garamond', serif;
  color: var(--copper);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* ── MENSAJE ÉXITO ── */
.mensaje-exito {
  background: rgba(31, 61, 31, 0.7);
  border: 1px solid rgba(144, 238, 144, 0.3);
  padding: 12px 18px;
  border-radius: 12px;
  margin-bottom: 18px;
  color: #90ee90;
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
}

/* ── FOOTER ── */
.footer-moderno {
  position: relative;
  z-index: 5;
  background: rgba(13, 9, 6, 0.97);
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  padding: 48px 8% 24px;
  font-family: 'Jost', sans-serif;
}

.footer-contenido {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-col h3 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.footer-col p,
.footer-col a {
  color: var(--white);
  font-size: 0.88rem;
  line-height: 2;
  text-decoration: none;
  display: block;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-copy {
  text-align: center;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  padding-top: 20px;
  color: rgba(238, 237, 235, 0.4);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .form-registro {
    padding: 36px 28px;
  }

  nav ul {
    gap: 4px;
  }

  nav ul li a {
    font-size: 0.68rem;
    padding: 6px 10px;
  }

  .footer-contenido {
    flex-direction: column;
  }
}
