:root {
    --bg-color: #FFFFFF;
    --text-color: #333333;
    --accent-color: #005A9C;
    /* Talavera Blue */
    --secondary-accent: #E4007C;
    /* Mexican Pink */
    --highlight-color: #F4A900;
    /* Marigold */
    --font-heading: 'Cinzel Decorative', cursive;
    --font-body: 'Raleway', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    margin: 0;
}

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

.big-font {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.medium-font {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--secondary-accent);
    display: inline-block;
    padding-bottom: 10px;
}

.text-uppercase-spaced {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    color: var(--secondary-accent);
    font-weight: 700;
}

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

/* --- Talavera Pattern --- */
.talavera-border-top {
    height: 20px;
    background: repeating-linear-gradient(45deg,
            var(--accent-color),
            var(--accent-color) 10px,
            #fff 10px,
            #fff 20px);
    width: 100%;
}

.talavera-border-bottom {
    height: 20px;
    background: repeating-linear-gradient(-45deg,
            var(--accent-color),
            var(--accent-color) 10px,
            #fff 10px,
            #fff 20px);
    width: 100%;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 2rem;
    background-image: radial-gradient(#f0f0f0 1px, transparent 1px);
    background-size: 20px 20px;
    position: relative;
}

.hero-image-container {
    width: 280px;
    height: 380px;
    margin: 2rem auto;
    position: relative;
    border: 5px solid var(--accent-color);
    padding: 10px;
    background: #fff;
    box-shadow: 10px 10px 0 var(--secondary-accent);
}

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

/* --- Buttons --- */
.btn-mexicana {
    background-color: var(--accent-color);
    color: #fff;
    border: 2px solid var(--accent-color);
    padding: 12px 35px;
    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;
    border-radius: 0;
}

.btn-mexicana:hover {
    background-color: #fff;
    color: var(--accent-color);
    border-color: var(--secondary-accent);
    box-shadow: 5px 5px 0 var(--secondary-accent);
    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: var(--accent-color);
    font-weight: 700;
    border: 2px solid var(--accent-color);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 10px;
    background: #fff;
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--secondary-accent);
    font-weight: 700;
}

/* --- Decorations --- */
.papel-picado {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20" preserveAspectRatio="none"><path d="M0 0 L10 15 L20 0 L30 15 L40 0 L50 15 L60 0 L70 15 L80 0 L90 15 L100 0 Z" fill="%23E4007C" opacity="0.8"/></svg>');
    background-size: 50px 100%;
    animation: sway 3s ease-in-out infinite alternate;
    transform-origin: top center;
    z-index: 10;
}

@keyframes sway {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(1deg);
    }
}

.bougainvillea-petal {
    position: fixed;
    width: 15px;
    height: 15px;
    background: var(--secondary-accent);
    border-radius: 50% 0 50% 0;
    opacity: 0.7;
    animation: fall-sway 10s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes fall-sway {
    0% {
        transform: translateY(-50px) rotate(0deg) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    50% {
        transform: translateY(50vh) rotate(180deg) translateX(20px);
    }

    100% {
        transform: translateY(100vh) rotate(360deg) translateX(-20px);
        opacity: 0;
    }
}

/* --- Cards --- */
.mexicana-card {
    background: #fff;
    padding: 2rem;
    border: 1px solid #ddd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.mexicana-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--secondary-accent);
}

/* --- 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(--secondary-accent);
    border: 2px solid #fff;
    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: 3rem;
    }

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

/* --- Mexicana Gallery --- */
.mexicana-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item-mex img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 5px 5px 0 var(--secondary-accent);
    transition: transform 0.3s ease;
}

.gallery-item-mex:nth-child(even) img {
    box-shadow: 5px 5px 0 var(--accent-color);
}

.gallery-item-mex:hover img {
    transform: translateY(-5px);
    box-shadow: 10px 10px 0 var(--highlight-color);
}

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

.mexicana-timeline::before {
    content: '';
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: repeating-linear-gradient(to bottom,
            var(--accent-color),
            var(--accent-color) 10px,
            var(--secondary-accent) 10px,
            var(--secondary-accent) 20px);
}

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

.timeline-item .time {
    width: 80px;
    font-weight: 700;
    color: var(--accent-color);
    text-align: right;
    padding-right: 20px;
}

.timeline-item .icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid var(--secondary-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    font-size: 1.2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.timeline-item .info {
    padding-left: 20px;
    flex: 1;
}

.timeline-item .info h3 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--accent-color);
}

.timeline-item .info p {
    margin: 0;
    color: var(--text-color);
    font-weight: 500;
}