:root {
    --bg-color: #FFF8E1;
    /* Cream */
    --text-color: #212121;
    --accent-red: #D32F2F;
    --accent-pink: #C2185B;
    --accent-yellow: #FFC107;
    --accent-blue: #1976D2;
    --card-bg: #FFFFFF;
    --font-heading: 'Rye', serif;
    --font-body: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    margin: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffc107' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* --- Typography --- */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 400;
}

.big-font {
    font-size: 4.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--accent-red);
    text-shadow: 2px 2px 0px var(--accent-yellow);
}

.medium-font {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.text-uppercase-spaced {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    color: #555;
    font-weight: 600;
}

/* --- Layout --- */
.section-padding {
    padding: 5rem 1rem;
    position: relative;
}

/* --- Charro Card --- */
.charro-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--accent-pink);
    border-bottom: 5px solid var(--accent-blue);
    transition: transform 0.3s ease;
    position: relative;
}

.charro-card:hover {
    transform: translateY(-5px);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 2rem;
    position: relative;
    background: linear-gradient(rgba(255, 248, 225, 0.9), rgba(255, 248, 225, 0.9)), url('https://www.transparenttextures.com/patterns/flower-trail.png');
}

.hero-image-container {
    width: 280px;
    height: 380px;
    margin: 2rem auto;
    position: relative;
    padding: 15px;
    background: #fff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--accent-red);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Papel Picado Animation --- */
.papel-picado {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0v100c20,0,40-20,60-20s40,20,60,20s40-20,60-20s40,20,60,20s40-20,60-20s40,20,60,20s40-20,60-20s40,20,60,20s40-20,60-20s40,20,60,20s40-20,60-20s40,20,60,20s40-20,60-20s40,20,60,20s40-20,60-20s40,20,60,20s40-20,60-20s40,20,60,20s40-20,60-20s40,20,60,20V0H0z' fill='%23C2185B' opacity='0.8'/%3E%3C/svg%3E");
    background-size: 600px 100%;
    animation: wave 10s linear infinite;
}

@keyframes wave {
    0% {
        background-position-x: 0;
    }

    100% {
        background-position-x: 600px;
    }
}

/* --- Buttons --- */
.btn-charro {
    background-color: var(--accent-red);
    color: #fff;
    border: none;
    padding: 12px 35px;
    border-radius: 5px;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 5px 0 #B71C1C;
}

.btn-charro:hover {
    background-color: var(--accent-pink);
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #880E4F;
    color: #fff;
    text-decoration: none;
}

/* --- Countdown --- */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: #fff;
    background: var(--accent-blue);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin: 0 auto 10px;
    border: 4px solid #fff;
}

.countdown-item:nth-child(2) .countdown-number {
    background: var(--accent-pink);
}

.countdown-item:nth-child(3) .countdown-number {
    background: var(--accent-yellow);
    color: #212121;
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-color);
    letter-spacing: 1px;
    font-weight: 700;
}

/* --- Music Button --- */
.music-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.btn-music-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-red);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .big-font {
        font-size: 3.5rem;
    }

    .hero-image-container {
        width: 80%;
    }
}

/* --- Charro Gallery --- */
.charro-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
}

.gallery-item-charro img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid var(--accent-yellow);
    transition: all 0.3s ease;
}

.gallery-item-charro:hover img {
    transform: scale(1.05);
    border-color: var(--accent-pink);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --- Charro Timeline --- */
.charro-timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.charro-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-red);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item .time {
    width: 40%;
    text-align: right;
    padding-right: 30px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-blue);
}

.timeline-item .content {
    width: 40%;
    padding-left: 30px;
    text-align: left;
    background: #fff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--accent-yellow);
}

.timeline-item .content h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-color);
}

.timeline-item .content p {
    margin: 0;
    color: #666;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--accent-pink);
    border: 4px solid #fff;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 0 0 2px var(--accent-red);
}