@import url("https://fonts.googleapis.com/css2?family=Forum&display=swap");

:root {
    --font-display: "Forum", serif;
    --font-ui: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --bg: #0f0f12;
    --surface: #18181d;
    --surface-2: #22222a;
    --text: #f5f5f7;
    --muted: #b7b7c2;
    --border: #30303a;
    --primary: #d84f8f;
    --primary-hover: #c74380;
    --success-bg: #14351f;
    --success-text: #8ff0a4;
    --error-bg: #3a1418;
    --error-text: #ff9aa8;
    --error-border: #e5485d;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: var(--font-ui);
    background: radial-gradient(circle at 50% 0%, rgba(216, 79, 143, 0.08), transparent 34%), rgba(7, 7, 10, 0.82);
    color: var(--text);
    isolation: isolate;
    min-height: 100vh;
    padding-top: 94px;
    position: relative;
}

h1,
h2,
h3,
.page-title {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 0.95;
}

body::before {
    background-image: linear-gradient(rgba(3, 3, 5, 0.52), rgba(3, 3, 5, 0.74)), url("../img/background_galisweb.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    content: "";
    filter: brightness(0.7) saturate(0.86) contrast(0.9);
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: -2;
}

body::after {
    background: linear-gradient(180deg, rgba(8, 8, 10, 0.22), rgba(8, 8, 10, 0.62)), radial-gradient(circle at 50% 12%, rgba(216, 79, 143, 0.07), transparent 34%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: -1;
}

body > * {
    position: relative;
    z-index: 1;
}

header {
    background: rgba(8, 8, 10, 0.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(184, 176, 170, 0.24);
    padding: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 20;
}

.header-inner {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1280px;
    min-height: 94px;
    padding: 0 24px;
    width: 100%;
}

.brand {
    align-items: center;
    display: inline-flex;
    flex-shrink: 0;
    line-height: 1;
    text-decoration: none;
}

.header-inner .brand img {
    display: block;
    height: auto;
    max-height: 62px;
    max-width: none;
    object-fit: contain;
    width: 292px;
}

.brand img {
    display: block;
    height: auto;
    width: auto;
}

.site-nav {
    align-items: center;
    display: flex;
    gap: 10px;
}

.site-nav a,
.account-menu summary {
    color: var(--text);
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
}

.site-nav a:hover,
.account-menu summary:hover {
    color: var(--primary);
}

.nav-cta {
    align-items: center;
    background: linear-gradient(135deg, var(--primary), #f17ab0);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(216, 79, 143, 0.24);
    color: white !important;
    display: inline-flex;
    font-weight: 800;
    min-height: 40px;
    padding: 0 18px;
}

.nav-cta:hover {
    background: linear-gradient(135deg, var(--primary-hover), #e86aa4);
    color: white !important;
}

.nav-secondary {
    color: rgba(245, 245, 247, 0.74) !important;
    font-size: 13px !important;
    font-weight: 600;
    padding: 8px 4px;
}

.nav-secondary:hover {
    color: var(--text) !important;
}

.nav-with-badge {
    align-items: center;
    display: inline-flex;
    gap: 6px;
}

.nav-badge {
    align-items: center;
    background: var(--primary);
    border-radius: 999px;
    color: white;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    height: 18px;
    justify-content: center;
    min-width: 18px;
    padding: 0 6px;
}

.account-menu {
    position: relative;
}

.account-menu summary {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    gap: 8px;
    list-style: none;
    min-height: 40px;
    padding: 0 14px;
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

.account-menu summary::after {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    content: "";
    opacity: 0.7;
}

.account-dropdown {
    background: rgba(18, 18, 22, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
    display: grid;
    gap: 4px;
    min-width: 180px;
    padding: 8px;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 40;
}

.account-dropdown a {
    border-radius: 8px;
    color: rgba(245, 245, 247, 0.82);
    font-size: 13px;
    font-weight: 650;
    padding: 10px 11px;
}

.account-dropdown a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.account-dropdown .logout-link {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #ff9aa8;
    margin-top: 4px;
    padding-top: 12px;
}

main {
    flex: 1 0 auto;
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
    width: 100%;
}

.site-footer {
    background: linear-gradient(180deg, rgba(18, 18, 22, 0.94), rgba(8, 8, 10, 0.96));
    border-top: 1px solid rgba(184, 176, 170, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: rgba(245, 245, 247, 0.7);
    flex-shrink: 0;
}

.site-footer-inner {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1280px;
    padding: 28px 24px;
}

.site-footer-brand {
    display: grid;
    gap: 4px;
}

.site-footer-brand strong {
    color: var(--text);
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 0.9;
}

.site-footer-brand span {
    color: rgba(245, 245, 247, 0.56);
    font-size: 13px;
}

.site-footer-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer a {
    align-items: center;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: rgba(245, 245, 247, 0.78);
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    min-height: 38px;
    padding: 0 13px;
    text-decoration: none;
}

.site-footer a:hover {
    background: rgba(216, 79, 143, 0.12);
    border-color: rgba(216, 79, 143, 0.26);
    color: var(--text);
}

.site-footer svg {
    fill: none;
    height: 17px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 17px;
}

.card {
    background: rgba(24, 24, 29, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
    padding: 20px;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-top: 14px;
    margin-bottom: 6px;
    font-weight: 600;
}

input,
select {
    width: 100%;
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text);
}

button {
    margin-top: 18px;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background: var(--primary-hover);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

th {
    color: var(--primary);
    background: #101014;
}

.mensaje {
    padding: 12px;
    border-radius: 10px;
    background: var(--success-bg);
    color: var(--success-text);
    margin-bottom: 16px;
}

.mensaje.error {
    background: var(--error-bg);
    color: var(--error-text);
}

.dev-build-badge {
    background: rgba(8, 8, 10, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    bottom: 10px;
    color: rgba(245, 245, 247, 0.76);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    padding: 7px 10px;
    pointer-events: none;
    position: fixed;
    right: 10px;
    z-index: 100;
}

input.campo-error,
select.campo-error {
    border-color: var(--error-border);
    box-shadow: 0 0 0 2px rgba(229, 72, 93, 0.18);
}

@media (max-width: 700px) {
    body {
        padding-top: 128px;
    }

    .header-inner {
        align-items: center;
        flex-direction: column;
        min-height: auto;
        padding: 14px 24px;
    }

    .header-inner .brand img {
        max-height: 50px;
        width: 235px;
    }

    .site-nav {
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-cta,
    .account-menu summary {
        min-height: 36px;
    }

    .account-dropdown {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .site-footer-inner {
        align-items: center;
        flex-direction: column;
        font-size: 13px;
        text-align: center;
    }

    .site-footer-links {
        justify-content: center;
    }
}
