:root {
    --primary-orange: #ff9d00;
    --text-white: #ffffff;
    --glass-bg: rgba(75, 75, 75, 0.2);
    --glass-border: rgba(255, 255, 255, 0.1);
    --bg-overlay: rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Mono', monospace;
    color: var(--text-white);
    background-color: #111;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- NUEVA CAPA DE FONDO PARALLAX EXACTO --- */
#fondo-animado {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120vh; /* 20% extra de altura respecto a la pantalla */
    background-image: linear-gradient(var(--bg-overlay), var(--bg-overlay)), 
                      url('img/CPxKS_background_1920.jpg'); /* Cambia el nombre */
    background-size: cover; /* Adapta el ancho a cualquier pantalla */
    background-position: center top;
    z-index: -1;
}

.header {
    width: 100%;
    max-width: 450px;
    margin: 40px 0;
    text-align: center;
}

.logo {
    width: 100%;
    height: auto;
    max-width: 400px;
}

.events-container {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 60px;
}

.event-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.event-date {
    font-size: 2rem;
    font-weight: 700;
    font-style: italic; 
    margin-bottom: 0;
}

.event-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-orange);
    line-height: 1.1;
    margin-bottom: 18px;
    padding-right: 60px;
}

.event-location {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.ticket-icon-wrapper {
    color: var(--primary-orange);
    width: 60px;
    height: auto;
    position: absolute;
    top: 30px;
    right: 30px;
}

.event-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.event-date span {
    font-weight: 400;
    opacity: 0.8;
}

.ticket-svg {
    width: 100%;
    height: 100%;
}

.footer {
    width: 100%;
    max-width: 500px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 25px;
    margin-top: auto;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-around;
}

.social-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-white);
    font-size: 2rem;
    font-weight: 700;
    transition: opacity 0.3s;
}

.social-link:hover { opacity: 0.7; }

.insta-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
}

/* --- SEPARADOR DE AÑO --- */
.separador-ano {
    font-size: 1rem;
    font-weight: 500;
    font-style: italic;
    color: var(--text-white);
    text-align: left;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-left: 10px;
    opacity: 0.9;
    grid-column: 1 / -1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

@media (min-width: 768px) {
    .events-container {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    }
}