: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 ── */
header {
    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%;
}

.btn-perfil {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    text-decoration: none;
}

.btn-perfil:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.3);
}

.btn-perfil img {
    width: 65px;
    height: 65px;
    object-fit: contain;
}

/* ── 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 ── */
.login-card {
    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);
    }
}

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

.login-card::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);
}

.login-card 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 ── */
.input-group {
    position: relative;
    margin-bottom: 16px;
    text-align: left;
}

.input-group 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;
    padding-left: 4px;
}

.input-group input[type="text"],
.input-group input[type="password"] {
    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;
}

.input-group 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-group input::placeholder {
    color: rgba(238, 237, 235, 0.3);
}

/* ── Captcha ── */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(151, 122, 90, 0.25);
    border-radius: 12px;
    text-align: left;
}

.captcha-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    cursor: pointer;
    flex-shrink: 0;
}

.captcha-row label {
    font-family: 'Jost', sans-serif;
    color: var(--cream);
    font-size: 0.88rem;
    cursor: pointer;
}

/* ── BOTONES ── */
.btn-primary-gold {
    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;
}

.btn-primary-gold::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;
}

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

.btn-primary-gold:hover::before {
    left: 100%;
}

.btn-outline-gold {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 50px;
    background: rgba(212, 175, 55, 0.06);
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 14px;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-outline-gold:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
    color: var(--gold);
}

.forgot-link {
    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;
}

.forgot-link: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;
}

/* ── FOOTER ── */
footer {
    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) {
    .login-card {
        padding: 36px 28px;
    }

    nav ul {
        gap: 4px;
    }

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

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