@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg-black: #09090b;
    --bg-surface: #121216;
    --bg-card: #18181f;
    --crimson: #9b111e;
    --crimson-bright: #c81d2e;
    --crimson-dark: #5e0810;
    --gold: #d4af37;
    --gold-light: #f3d97d;
    --text-white: #f8fafc;
    --text-muted: #a1a1aa;
    --border-subtle: rgba(212, 175, 55, 0.22);
    --font-display: 'Cinzel', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --radius: 10px;
    --transition: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-sans);
    line-height: 1.65;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ================= CABECERA Y NAVEGACIÓN ================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(9, 9, 11, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-emblem {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
    border: 1.5px solid var(--gold);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--gold);
    font-size: 1.15rem;
    box-shadow: 0 0 18px rgba(155, 17, 30, 0.45);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-sub {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--gold);
}

.brand-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-white);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    list-style: none;
}

.nav-menu a {
    font-size: 0.88rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    padding: 0.4rem 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gold);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--crimson-bright), var(--gold));
}

.btn-acceso {
    background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
    border: 1px solid var(--gold);
    color: var(--text-white) !important;
    padding: 0.52rem 1rem !important;
    border-radius: 6px;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
}

.btn-acceso:hover {
    background: var(--crimson-bright);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--gold);
    font-size: 1.5rem;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
}

/* ================= HERO / PORTADA ================= */
.hero {
    position: relative;
    min-height: 86vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 75% 30%, rgba(155, 17, 30, 0.38), transparent 55%),
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.14), transparent 50%),
        linear-gradient(180deg, #09090b 0%, #140709 55%, #09090b 100%);
    border-bottom: 1px solid var(--border-subtle);
    padding: 4.5rem 0;
}

.hero-content {
    max-width: 780px;
}

.hero-badge {
    display: inline-block;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.3rem;
    background: rgba(212, 175, 55, 0.08);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.5vw, 4.3rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 1.2rem;
    background: linear-gradient(180deg, #ffffff 30%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-motto {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
    color: var(--gold);
    margin-bottom: 1.2rem;
    font-style: italic;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.08rem;
    max-width: 640px;
    margin-bottom: 2.2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ================= BOTONES ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.65rem;
    border-radius: 7px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--crimson-bright), var(--crimson-dark));
    color: var(--text-white);
    border: 1px solid var(--gold);
    box-shadow: 0 8px 24px rgba(155, 17, 30, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(200, 29, 46, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.12);
}

/* ================= SECCIONES Y TARJETAS ================= */
.section {
    padding: 4.5rem 0;
}

.section-alt {
    background-color: var(--bg-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.2rem;
}

.section-kicker {
    color: var(--crimson-bright);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.78rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.45rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--text-white);
    margin-bottom: 0.8rem;
}

.section-divider {
    width: 72px;
    height: 3px;
    background: linear-gradient(90deg, var(--crimson), var(--gold));
    margin: 0.9rem auto 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.6rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
}

.card-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    background: linear-gradient(135deg, #1f1215, #121216);
}

.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.45rem;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
    color: var(--text-white);
}

.card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    flex: 1;
}

/* ================= PAGE HEADER INTERNO ================= */
.page-banner {
    background:
        linear-gradient(135deg, rgba(155, 17, 30, 0.28), rgba(9, 9, 11, 0.96)),
        var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 3.6rem 0;
    text-align: center;
}

.page-banner h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.page-banner p {
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

/* ================= FORMULARIOS ================= */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
    color: var(--text-white);
}

.form-control {
    width: 100%;
    padding: 0.82rem 1rem;
    background: #0d0d11;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
}

.alert {
    padding: 1rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.94rem;
}

.alert-success {
    background: rgba(22, 163, 74, 0.16);
    border: 1px solid #22c55e;
    color: #bbf7d0;
}

.alert-error {
    background: rgba(220, 38, 38, 0.16);
    border: 1px solid #ef4444;
    color: #fecaca;
}

/* ================= FOOTER ================= */
.site-footer {
    background: #060608;
    border-top: 1px solid var(--border-subtle);
    padding: 3.5rem 0 1.5rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2.2rem;
    margin-bottom: 2.5rem;
}

.footer-title {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 1.3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.84rem;
    color: var(--text-muted);
}

/* ================= BANNER DE COOKIES RGPD ================= */
.cookie-banner {
    position: fixed;
    bottom: 1.2rem;
    left: 1.2rem;
    right: 1.2rem;
    max-width: 960px;
    margin: 0 auto;
    background: #14141a;
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 1.35rem 1.6rem;
    z-index: 2000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* ================= RESPONSIVE MÓVIL ================= */
@media (max-width: 960px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 78px;
        left: 0;
        right: 0;
        background: #0c0c10;
        border-bottom: 1px solid var(--gold);
        flex-direction: column;
        align-items: stretch;
        padding: 1.2rem 1.5rem 1.8rem;
        gap: 0.85rem;
        display: none;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu a {
        padding: 0.65rem 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}