/* CSS Variables & Theme */
:root {
    /* Colors */
    --bg-dark: #000000; /* Pure Black to match logos */
    --bg-light: #FDF6E3; /* Cream white for contrast */
    --text-main: #FDF6E3;
    --text-muted: #A39B9F;
    --accent-red: #C4302B; /* Brick red */
    --accent-teal: #1A8C8C; /* Teal/Aquamarine */
    --accent-gold: #D4AF37; /* Gold/Yellow */
    --accent-orange: #E66825; /* Soft Orange */

    /* Typography */
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions & UI */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: normal;
    letter-spacing: 1px;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1px;
    border-radius: 0; /* Geometric feel */
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--accent-red);
    color: var(--text-main);
}
.btn-primary:hover {
    background-color: #A32622;
    transform: translateY(-3px);
    box-shadow: var(--shadow-subtle);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
}
.btn-secondary:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid var(--text-main);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}
.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--bg-dark);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: padding var(--transition-fast);
    border-bottom: 1px solid rgba(253, 246, 227, 0.1);
}
.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
}
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-links a:hover:not(.btn-outline) {
    color: var(--accent-teal);
}
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}
.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-fast);
}

/* --- Sections --- */
.section {
    padding: 100px 0;
}
.section-title {
    font-size: 3rem;
    margin-bottom: 40px;
    color: var(--text-main);
    text-transform: uppercase;
}
.section-title span {
    color: var(--accent-teal);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Offset for nav */
}
.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}
.hero .subtitle {
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 10px;
}
.hero .title {
    font-size: clamp(5rem, 15vw, 10rem);
    line-height: 0.9;
    color: var(--text-main);
    text-shadow: 4px 4px 0px var(--accent-red), -2px -2px 0px var(--accent-teal);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.hero .tagline {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-muted);
    margin-bottom: 20px;
}
.hero .dates-badge {
    background-color: var(--accent-teal);
    color: var(--bg-dark);
    display: inline-block;
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 20px 0 40px;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%); /* Diagonal shape */
}
.cta-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── La Plata grid background (cuadrícula + diagonales) ─── */
.hero-grid-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    background-image:
        /* Cuadrícula regular — calles de La Plata */
        linear-gradient(rgba(253,246,227,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(253,246,227,0.045) 1px, transparent 1px),
        /* Diagonales — avenidas diagonales de La Plata */
        linear-gradient(45deg,  rgba(253,246,227,0.025) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(253,246,227,0.025) 1px, transparent 1px);
    background-size:
        64px 64px,
        64px 64px,
        128px 128px,
        128px 128px;
}

/* Abstract Shapes */
.hero-shapes {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}
.shape {
    position: absolute;
}
.shape-1 { /* Red Triangle */
    width: 0; height: 0;
    border-left: 200px solid transparent;
    border-right: 200px solid transparent;
    border-bottom: 350px solid rgba(196, 48, 43, 0.4);
    top: -50px; left: -100px;
    transform: rotate(15deg);
}
.shape-2 { /* Teal Box */
    width: 150px; height: 300px;
    background-color: rgba(26, 140, 140, 0.4);
    bottom: -50px; right: 5%;
    transform: skew(-20deg);
}
.shape-3 { /* Gold Circle/ellipse */
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, rgba(212,175,55,0) 70%);
    top: 20%; right: 20%;
}

/* --- About Section --- */
.about {
    background-color: #0A0A0A;
    border-top: 5px solid var(--accent-orange);
}
.about-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: start;
    margin-bottom: 50px;
}
.about-text {
    max-width: 680px;
    font-size: 1.1rem;
    color: var(--text-muted);
}
.about-text p {
    margin-bottom: 20px;
}
.about-text strong {
    color: var(--text-main);
}
.about-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: right;
    padding-right: 10px;
    border-right: 2px solid rgba(253,246,227,0.08);
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-num {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1;
    color: var(--accent-gold);
}
.stat-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Sede info bar */
.sede-info {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    padding: 24px 30px;
    background: rgba(253,246,227,0.03);
    border: 1px solid rgba(253,246,227,0.08);
    border-left: 4px solid var(--accent-teal);
}
.sede-info__bloque {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sede-info__icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}
.sede-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.9;
}
.sede-info__bloque strong {
    display: block;
    color: var(--text-main);
    font-size: 1rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}
.sede-info__bloque p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* --- Obras --- */
.obras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.obra-card {
    background: #111111;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(253, 246, 227, 0.05);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}
.obra-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-color: var(--accent-gold);
}

/* Header coloreado con título */
.obra-img-placeholder {
    height: 200px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    padding: 1rem 1.25rem;
    flex-shrink: 0;
}

.obra-info {
    padding: 1.1rem 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.obra-title {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 4px;
    line-height: 1.15;
}
.obra-tags {
    font-size: 0.75rem;
    color: var(--accent-teal);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}
.obra-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex: 1;
}
.obra-link {
    color: var(--text-main);
    font-weight: bold;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--accent-red);
    display: inline-block;
    transition: color 0.2s;
}
.obra-link:hover { color: var(--accent-red); }

/* Barra de color superior por obra */
.obra-color-bar {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 5px;
    z-index: 3;
    transition: height var(--transition-fast);
}
.obra-card:hover .obra-color-bar {
    height: 7px;
}

/* --- Cronograma --- */
.cronograma {
    background-color: var(--bg-dark);
}
.filtros-dias {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.filter-btn {
    background: transparent;
    border: 1px solid rgba(253, 246, 227, 0.2);
    color: var(--text-muted);
    padding: 8px 20px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 20px;
    transition: var(--transition-fast);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--accent-teal);
    color: var(--bg-dark);
    border-color: var(--accent-teal);
    font-weight: 600;
}
.timeline {
    position: relative;
    border-left: 2px solid rgba(253, 246, 227, 0.1);
    padding-left: 30px;
    margin-left: 15px;
}
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    animation: fadeIn 0.5s ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--accent-red);
    box-shadow: 0 0 10px rgba(196,48,43,0.5);
}
.time-badge {
    display: inline-block;
    background: rgba(253, 246, 227, 0.05);
    padding: 5px 10px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 10px;
}
.show-title {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 5px;
}
.timeline-item.interludio::before {
    background: var(--accent-teal);
    border-radius: 0; /* Square marker */
}
.timeline-item.interludio .show-title {
    color: var(--accent-teal);
    font-size: 1.3rem;
    letter-spacing: 1px;
}
.interludio-tag {
    display: inline-block;
    background: rgba(26,140,140,0.15);
    color: var(--accent-teal);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 8px;
    margin-bottom: 6px;
}

/* Active nav link */
.nav-links a.nav-active {
    color: var(--accent-gold);
}

/* --- Entradas --- */
.entradas {
    background: linear-gradient(135deg, #0A0A0A, var(--bg-dark));
    border-top: 1px dashed rgba(253, 246, 227, 0.1);
}
.entradas-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 50px;
}
.entradas-header p strong {
    color: var(--accent-gold);
}

/* Grid de links por obra */
.obras-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.entrada-link-card {
    background: rgba(253, 246, 227, 0.03);
    border: 1px solid rgba(253, 246, 227, 0.08);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-fast);
}
.entrada-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.5);
    border-color: rgba(253, 246, 227, 0.2);
}
.entrada-link-titulo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-main);
    line-height: 1.1;
}
.entrada-link-dir {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
}
.entrada-link-btn {
    font-size: 1rem;
    padding: 10px 20px;
    text-align: center;
    margin-top: 8px;
}

/* --- Footer --- */
.footer {
    background: #050505;
    padding: 80px 0 20px;
    border-top: 2px solid var(--accent-teal);
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}
.footer-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 15px;
}
.footer-col h4 {
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
}
.footer-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
}
.footer-link {
    color: var(--accent-teal);
    text-decoration: underline;
}
.footer-link:hover {
    color: var(--text-main);
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(253, 246, 227, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .about-stats {
        flex-direction: row;
        justify-content: space-around;
        text-align: center;
        border-right: none;
        border-top: 1px solid rgba(253,246,227,0.08);
        padding-top: 24px;
        padding-right: 0;
    }
    .sede-info {
        flex-direction: column;
        gap: 20px;
    }
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition-smooth);
        border-left: 1px solid rgba(253, 246, 227, 0.1);
        padding: 40px;
    }
    .nav-links.active {
        right: 0;
    }
    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }
    .mobile-menu-btn.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .hero .title { font-size: 4rem; }
    .hero .dates-badge { font-size: 1.2rem; }
}
