/* === SHARED STYLES FOR SUBPAGES === */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

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

:root {
    --gold: #d4a917;
    --gold-light: #f0cc3a;
    --gold-dim: #9a7b10;
    --black: #000000;
    --dark: #111111;
    --dark-red: #3a0a0a;
    --cream: #e8dcc8;
}

html { scroll-behavior: smooth; }

body {
    background: var(--black);
    color: var(--cream);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}


/* === TOP NAVIGATION BAR === */
.top-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 2rem;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 169, 23, 0.15);
}

.top-bar .home-link {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--gold);
    text-decoration: none;
    transition: text-shadow 0.3s;
    text-transform: lowercase;
}
.top-bar .home-link:hover {
    text-shadow: 0 0 12px rgba(212, 169, 23, 0.4);
}

.top-bar nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.top-bar nav a {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: rgba(251, 250, 248, 0.911);
    text-decoration: none;
    letter-spacing: 0.12em;
    transition: color 0.3s;
}
.top-bar nav a:hover,
.top-bar nav a.active {
    color: var(--gold-light);
}


/* === PAGE HEADER === */
.page-header {
    min-height: 68vh;
    padding: 3rem 2rem 3rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.page-header h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.2rem, 2.8vw, 2rem);
    color: #d52607;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-shadow: 0 0 30px rgba(212, 86, 26, 0.2);
    margin: 0;
}

.page-header .subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* === CONTENT AREA === */
.content {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.content p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    line-height: 1.85;
    font-family: 'Cormorant Garamond', serif;
    color: rgba(255, 255, 255, 0.97);
    text-align: justify;
    text-indent: 2.5em;
}

.content h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--gold);
    margin: 3rem 0 1rem;
    font-weight: 600;
}

.content h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--gold-dim);
    margin: 2rem 0 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 400;
}

/* === CARD GRID === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 169, 23, 0.12);
    padding: 1.8rem;
    transition: all 0.4s ease;
}

.card:hover {
    border-color: rgba(212, 169, 23, 0.35);
    background: rgba(212, 169, 23, 0.03);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--gold-light);
    margin: 0 0 0.8rem;
    font-weight: 600;
}

.card p {
    font-size: 0.95rem;
    color: rgba(232, 220, 200, 0.55);
    margin: 0;
}

/* === PLACEHOLDER SECTION === */
.placeholder-section {
    text-align: center;
    padding: 4rem 2rem;
    border: 1px dashed rgba(212, 169, 23, 0.15);
    margin: 2rem 0;
}

.placeholder-section .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.placeholder-section p {
    font-style: italic;
    color: rgba(232, 220, 200, 0.35);
}

/* === FOOTER === */
.page-footer {
    text-align: center;
    padding: 3rem 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.04em;
    border-top: 1px solid rgba(212, 169, 23, 0.08);
}

.page-footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s;
}
.page-footer a:hover { color: var(--gold-light); }

/* === INSCRIPCIONES BADGE === */
.inscripciones-badge {
    border: 1px solid rgba(212, 169, 23, 0.55);
    padding: 1.6rem 2rem;
    text-align: center;
    margin: 2rem 0;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}
.inscripciones-badge .badge-title {
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}
.inscripciones-badge .badge-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    color: var(--gold-light);
    font-style: italic;
    letter-spacing: 0.05em;
}

/* === ANIMATIONS === */
.fade-in {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.8s ease forwards;
}
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-delay-1 { animation-delay: 0.2s; }
.fade-in-delay-2 { animation-delay: 0.4s; }
.fade-in-delay-3 { animation-delay: 0.6s; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    body { background-attachment: scroll; }
    .top-bar { padding: 0.6rem 1rem; flex-direction: column; gap: 0.5rem; }
    .top-bar nav { gap: 0.8rem; justify-content: center; }
    .page-header { padding: 3rem 1.5rem 2rem; }
    .content { padding: 1.5rem 1.5rem 3rem; }
    .card-grid { grid-template-columns: 1fr; }
}
