/* ============ VARIABLES ============ */
:root {
    --bronze: #CD7F32;
    --bronze-dark: #8B5A1E;
    --bronze-light: #E8A84A;
    --bg: #0a0a0a;
    --text: #ffffff;
    --text-muted: #888;
    --text-dim: #333;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ============ BODY ============ */
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 110px 0 20px;
}

/* ============ NAV ============ */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 20px 40px;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    background: linear-gradient(to bottom,
        rgba(8,8,8,1) 0%, rgba(8,8,8,0.95) 60%, rgba(8,8,8,0.8) 85%, transparent 100%);
}
.nav-logo-static { max-height: 32px; opacity: 0.7; }
.nav-links { display: flex; gap: 30px; list-style: none; padding: 0; margin: 0; justify-content: center; }
.nav-links a {
    color: var(--text-muted); text-decoration: none; font-size: 0.8em;
    letter-spacing: 2px; text-transform: uppercase; transition: color 0.3s;
    font-family: 'Orbitron', sans-serif;
}
.nav-links a:hover { color: var(--bronze); }
.nav-btn {
    background: var(--bronze); color: #000; padding: 10px 20px;
    border-radius: 4px; font-family: 'Orbitron', sans-serif; font-size: 0.7em;
    font-weight: 700; letter-spacing: 1px; text-decoration: none;
    transition: 0.3s; justify-self: end;
}
.nav-btn:hover { background: var(--bronze-light); }

/* ============ HAMBURGER ============ */
.hamburger {
    display: none; flex-direction: column; gap: 5px; cursor: pointer;
    padding: 4px; position: fixed; top: 20px; right: 20px; z-index: 300;
}
.hamburger span { display: block; width: 24px; height: 2px; background: white; border-radius: 2px; transition: 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--bronze); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--bronze); }

/* ============ MENÚ MÓVIL ============ */
.mobile-menu {
    display: none; position: fixed; inset: 0;
    background: rgba(8,8,8,0.98); z-index: 150;
    flex-direction: column; align-items: center; justify-content: center; gap: 36px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    color: var(--text-muted); text-decoration: none; font-family: 'Orbitron', sans-serif;
    font-size: 1em; letter-spacing: 3px; text-transform: uppercase; transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--bronze); }
.mobile-menu .mobile-btn {
    background: var(--bronze); color: #000; padding: 16px 36px;
    border-radius: 4px; font-family: 'Orbitron', sans-serif; font-size: 0.85em;
    font-weight: 700; letter-spacing: 2px; text-decoration: none; margin-top: 10px;
}

/* ============ FORMULARIO ============ */
.form-container {
    width: 90%; max-width: 450px;
    background: #151515; padding: 40px; border-radius: 15px;
    border: 1px solid #222; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.logo { max-width: 160px; height: auto; display: block; margin: 0 auto 25px; }
h2 {
    font-family: 'Orbitron', sans-serif; color: var(--bronze);
    font-size: 1.1em; margin-bottom: 10px; letter-spacing: 2px; text-transform: uppercase;
}
.subtitulo { color: #bbbbbb; font-size: 0.9em; line-height: 1.6; margin-bottom: 25px; }
.verificar-link {
    text-align: center; margin-bottom: 25px; padding: 12px;
    background: #1a1a1a; border-radius: 5px; border: 1px solid #222;
    font-size: 0.85em;
}
.verificar-link span { color: #bbbbbb; }
.verificar-link a { color: var(--bronze); font-weight: 500; text-decoration: none; }
.verificar-link a:hover { opacity: 0.8; }

.field-group { text-align: left; margin-bottom: 15px; }
label { display: block; font-size: 0.75em; color: #888; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }
.opcional { color: #555; font-size: 0.85em; text-transform: none; letter-spacing: 0; }
input, textarea {
    width: 100%; padding: 12px; background: #000;
    border: 1px solid #333; border-radius: 5px; color: white;
    font-family: 'Rajdhani', sans-serif; outline: none; transition: 0.3s;
}
input:focus, textarea:focus { border-color: var(--bronze); }
input.invalido { border-color: #ff4d4d !important; }
textarea { resize: none; height: 100px; }

/* ============ SELECT PERSONALIZADO ============ */
.custom-select { position: relative; width: 100%; user-select: none; }
.custom-select-selected {
    width: 100%; padding: 12px; background: #000; border: 1px solid #333;
    border-radius: 5px; color: #555; cursor: pointer; transition: border-color 0.3s;
    display: flex; justify-content: space-between; align-items: center;
}
.custom-select-selected.open { border-color: var(--bronze); border-radius: 5px 5px 0 0; }
.custom-select-selected.has-value { color: white; }
.custom-select-selected.invalido { border-color: #ff4d4d !important; }
.custom-select-arrow { font-size: 0.65em; color: #555; transition: transform 0.3s; }
.custom-select-selected.open .custom-select-arrow { transform: rotate(180deg); }
.custom-select-options {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #111; border: 1px solid var(--bronze);
    border-top: none; border-radius: 0 0 5px 5px; z-index: 50; overflow: hidden;
}
.custom-select-options.open { display: block; }
.custom-select-option {
    padding: 12px 14px; color: #aaa; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.custom-select-option:hover { background: #1a1a1a; color: white; }
.custom-select-option.chosen { color: var(--bronze); }

/* ============ BOTÓN ============ */
.btn-submit {
    width: 100%; background: var(--bronze); color: black; padding: 16px;
    border: none; border-radius: 5px; font-family: 'Orbitron', sans-serif;
    font-weight: bold; cursor: pointer; transition: 0.3s; margin-top: 15px; letter-spacing: 1px;
}
.btn-submit:hover { opacity: 0.9; transform: translateY(-2px); }
.btn-submit:disabled { background: #444; cursor: not-allowed; transform: none; }

/* ============ FOOTER ============ */
footer {
    padding: 32px 40px; border-top: 1px solid #151515;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px; margin-top: 60px; width: 100vw;
}
.footer-logo { max-width: 80px; height: auto; opacity: 0.6; }
.footer-center { text-align: center; flex: 1; }
.footer-text { font-size: 0.7em; color: var(--text-dim); letter-spacing: 1px; font-family: 'Orbitron', sans-serif; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.footer-social { font-size: 0.75em; color: var(--bronze); letter-spacing: 2px; font-family: 'Orbitron', sans-serif; text-decoration: none; transition: color 0.3s; }
.footer-social:hover { color: var(--bronze-light); }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    body { padding-top: 90px; }
    nav { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
    .nav-links { display: none; }
    .nav-btn { display: none; }
    .hamburger { display: flex; }
    footer { padding: 24px 20px; flex-direction: column; text-align: center; }
    .footer-right { align-items: center; }
}
