/* ============================================================
   ELPLAAANB — BASE STYLES
   Compartido por todas las páginas del sitio
   ============================================================ */

/* --- CUSTOM PROPERTIES --- */
:root {
    --bg-negro:       #050505;
    --bg-elevado:     #0e0e0e;
    --bg-card:        #111111;
    --crema:          #e5d5b5;
    --crema-dim:      rgba(229, 213, 181, 0.5);
    --crema-ghost:    rgba(229, 213, 181, 0.12);
    --blanco:         #ffffff;
    --blanco-dim:     rgba(255, 255, 255, 0.65);
    --linea:          rgba(229, 213, 181, 0.14);

    --fuente-titulo:  'Oswald', sans-serif;
    --fuente-cuerpo:  'Poppins', sans-serif;

    --transition:     0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --sombra-suave:   0 4px 30px rgba(0, 0, 0, 0.6);
    --sombra-fuerte:  0 8px 50px rgba(0, 0, 0, 0.85);
}

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

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

body {
    background-color: var(--bg-negro);
    color: var(--blanco);
    font-family: var(--fuente-cuerpo);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* --- HEADER --- */
.main-header {
    width: 100%;
    padding: 48px 0 24px;
    text-align: center;
    position: relative;
    z-index: 100;
}

.logo-wrapper { margin-bottom: 36px; }

.main-logo {
    width: 260px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 0 18px rgba(229, 213, 181, 0.25));
    transition: filter var(--transition);
}

.main-logo:hover {
    filter: drop-shadow(0 0 28px rgba(229, 213, 181, 0.45));
}

/* --- NAVEGACIÓN --- */
.navbar {
    border-top: 1px solid var(--linea);
    padding-top: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.nav-links a {
    font-family: var(--fuente-titulo);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3.5px;
    color: var(--crema);
    opacity: 0.75;
    transition: opacity var(--transition), color var(--transition), transform var(--transition);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--crema);
    transition: width var(--transition);
}

.nav-links a:hover { opacity: 1; color: var(--blanco); transform: translateY(-2px); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { opacity: 1; color: var(--blanco); }
.nav-links a.active::after { width: 100%; }

/* --- HERO --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 78vh;
    min-height: 480px;
    overflow: hidden;
}

.hero-media {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(35%) contrast(115%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0 20px;
    text-align: center;
}

.hero-title {
    font-family: var(--fuente-titulo);
    font-size: clamp(2rem, 5vw, 4.5rem);
    letter-spacing: clamp(6px, 2vw, 14px);
    color: var(--blanco);
    text-shadow: 0 2px 30px rgba(0,0,0,0.95);
    line-height: 1.1;
    animation: fadeUp 1.2s cubic-bezier(0.4,0,0.2,1) both;
}

.hero-sub {
    font-family: var(--fuente-titulo);
    font-size: clamp(0.75rem, 1.2vw, 0.95rem);
    letter-spacing: 5px;
    color: var(--crema);
    opacity: 0.8;
    margin-top: 20px;
    text-transform: uppercase;
    animation: fadeUp 1.2s 0.25s cubic-bezier(0.4,0,0.2,1) both;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 32px; left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeIn 1s 1.5s ease both;
}

.hero-scroll-hint span {
    font-family: var(--fuente-titulo);
    font-size: 0.6rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--crema-dim);
}

.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--crema-dim), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* --- STATS STRIP --- */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--linea);
}

.stat-item {
    padding: 48px 32px;
    text-align: center;
    border-right: 1px solid var(--linea);
}
.stat-item:last-child { border-right: none; }

.stat-number {
    font-family: var(--fuente-titulo);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--blanco);
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-family: var(--fuente-titulo);
    font-size: 0.65rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--crema-dim);
}

/* --- PRÓXIMO EVENTO HOME --- */
.next-event {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 480px;
    border-bottom: 1px solid var(--linea);
}

.next-event-media {
    position: relative;
    overflow: hidden;
}

.next-event-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
    transition: transform 0.8s cubic-bezier(0.4,0,0.2,1);
}

.next-event:hover .next-event-media img { transform: scale(1.04); }

.next-event-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 56px;
    background: var(--bg-card);
    border-left: 1px solid var(--linea);
}

.next-event-content .eyebrow {
    font-family: var(--fuente-titulo);
    font-size: 0.65rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--crema);
    opacity: 0.7;
    margin-bottom: 16px;
    display: block;
}

.next-event-title {
    font-family: var(--fuente-titulo);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.0;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.next-event-date {
    font-family: var(--fuente-titulo);
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--crema-dim);
    margin-bottom: 8px;
}

.next-event-venue {
    font-family: var(--fuente-titulo);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 36px;
}

.next-event-desc {
    font-size: 0.9rem;
    color: var(--blanco-dim);
    line-height: 1.85;
    margin-bottom: 40px;
    max-width: 42ch;
}

/* --- BOTONES GLOBALES --- */
.btn-primary {
    display: inline-block;
    font-family: var(--fuente-titulo);
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    padding: 14px 36px;
    border: 1px solid var(--crema);
    color: var(--crema);
    transition: all var(--transition);
    align-self: flex-start;
}
.btn-primary:hover { background: var(--crema); color: var(--bg-negro); }

.btn-secondary {
    display: inline-block;
    font-family: var(--fuente-titulo);
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    padding: 14px 32px;
    border: 1px solid var(--linea);
    color: var(--blanco-dim);
    transition: all var(--transition);
}
.btn-secondary:hover { border-color: var(--crema-dim); color: var(--crema); }

/* --- FEATURES GRID HOME --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--linea);
}

.feature-item {
    padding: 56px 40px;
    border-right: 1px solid var(--linea);
}
.feature-item:last-child { border-right: none; }

.feature-number {
    font-family: var(--fuente-titulo);
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: var(--crema);
    opacity: 0.4;
    margin-bottom: 24px;
    display: block;
}

.feature-item h3 {
    font-family: var(--fuente-titulo);
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
    line-height: 1.1;
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--blanco-dim);
    line-height: 1.85;
}

/* --- HOME CTA FINAL --- */
.home-cta {
    text-align: center;
    padding: 100px 32px;
}

.home-cta .eyebrow {
    font-family: var(--fuente-titulo);
    font-size: 0.65rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--crema-dim);
    display: block;
    margin-bottom: 20px;
}

.home-cta h2 {
    font-family: var(--fuente-titulo);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1.0;
    margin-bottom: 40px;
}

.cta-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Eyebrow reutilizable global */
.eyebrow {
    font-family: var(--fuente-titulo);
    font-size: 0.65rem;
    color: var(--crema);
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0.7;
    display: block;
}

/* --- FOOTER --- */
.main-footer {
    padding: 56px 24px;
    text-align: center;
    border-top: 1px solid var(--linea);
    color: var(--crema-dim);
    font-size: 0.72rem;
    letter-spacing: 2px;
    font-family: var(--fuente-titulo);
    text-transform: uppercase;
}

/* --- ANIMACIONES --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 1; }
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .next-event { grid-template-columns: 1fr; }
    .next-event-media { height: 320px; }
    .next-event-content { padding: 48px 32px; border-left: none; border-top: 1px solid var(--linea); }

    .features-grid { grid-template-columns: 1fr; }
    .feature-item { border-right: none; border-bottom: 1px solid var(--linea); padding: 40px 28px; }
    .feature-item:last-child { border-bottom: none; }

    .stats-strip { grid-template-columns: 1fr; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--linea); padding: 36px 24px; }
    .stat-item:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
    .main-header { padding: 32px 0 20px; }
    .main-logo { width: 160px; }
    .nav-links { gap: 20px; }
    .nav-links a { font-size: 0.85rem; letter-spacing: 2px; }
    .home-cta { padding: 72px 24px; }
}
