:root {
    --bg-color: #FAF2E8; /* Authentic vintage cream */
    --text-color: #3E2723; /* Deep wood/chocolate */
    --accent-brown: #795548; /* Rugged leather brown */
    --accent-teal: #00695C; /* Turquoise accent */
    --accent-rose: #C2185B; /* Quinceañera dark rose */
    --accent-gold: #D4AF37; /* Engraved gold */
    --card-bg: #FCF8F2; /* Parchment look */
    --font-script: 'Pinyon Script', cursive;
    --font-heading: 'Rye', cursive; /* Western wood font */
    --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;
    /* Soft leather texture look */
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(121, 85, 72, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(121, 85, 72, 0.06) 0%, transparent 40%),
        url('https://www.transparenttextures.com/patterns/canvas-paper.png');
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-color);
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.8);
}

.big-font {
    font-family: var(--font-script);
    font-size: 6.5rem;
    line-height: 1.1;
    margin: 1rem 0;
    color: var(--accent-rose);
    text-shadow: 2px 2px 0px #fff, 3px 3px 12px rgba(62, 39, 35, 0.3);
}

.medium-font {
    font-size: 2.3rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
}

.medium-font::after {
    content: ' ✭ ✭ ✭ ';
    display: block;
    font-size: 0.9rem;
    color: var(--accent-gold);
    letter-spacing: 6px;
    margin-top: 10px;
    font-weight: 400;
    text-shadow: none;
}

.text-uppercase-spaced {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-teal);
    text-shadow: 1px 1px 0px #fff;
}

/* --- Layout --- */
.section-padding {
    padding: 6rem 1.5rem;
    position: relative;
}

/* --- Cowboy Card / Stitching Style --- */
.cowboy-card {
    background: var(--card-bg);
    padding: 3.5rem 2.5rem;
    border-radius: 4px; /* More rustic/plank-like */
    box-shadow: 0 12px 30px rgba(62, 39, 35, 0.08), inset 0 0 20px rgba(121, 85, 72, 0.05);
    border: 3px dashed var(--accent-brown); /* Sturdier leather stitching */
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
    overflow: hidden;
}

.cowboy-card::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid rgba(121, 85, 72, 0.2);
    border-radius: 2px;
    pointer-events: none;
}

.cowboy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(62, 39, 35, 0.12), inset 0 0 20px rgba(121, 85, 72, 0.02);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 1.5rem;
    position: relative;
    background: radial-gradient(circle, rgba(250, 242, 232, 0.8) 0%, rgba(220, 200, 180, 0.95) 100%), 
                url('https://www.transparenttextures.com/patterns/wood-pattern.png');
}

.hero-image-container {
    width: 290px;
    height: 390px;
    margin: 2.5rem auto;
    position: relative;
    padding: 12px;
    background: #fff;
    box-shadow: 0 20px 45px rgba(62, 39, 35, 0.25);
    border: 3px double var(--accent-brown);
    border-radius: 4px;
}

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

/* --- Western Ornament --- */
.western-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 2.5rem 0;
}

.western-divider span {
    font-size: 1.5rem;
    color: var(--accent-brown);
}

.western-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-brown), transparent);
}

/* --- Buttons --- */
.btn-cowboy {
    background-color: var(--accent-brown);
    color: #fff;
    border: 2px solid #5D4037;
    padding: 12px 35px;
    border-radius: 4px; /* Square/plank rustic corners */
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 0 #3E2723, 0 8px 15px rgba(121, 85, 72, 0.3);
}

.btn-cowboy:hover {
    background-color: #5D4037;
    color: #fff;
    transform: translateY(2px);
    box-shadow: 0 2px 0 #3E2723, 0 4px 8px rgba(121, 85, 72, 0.2);
    text-decoration: none;
}

.btn-cowboy-rose {
    background-color: var(--accent-rose);
    border-color: #A21340;
    box-shadow: 0 4px 0 #6D0022, 0 8px 15px rgba(194, 24, 91, 0.3);
}

.btn-cowboy-rose:hover {
    background-color: #9C103C;
    color: #fff;
    border-color: #9C103C;
    box-shadow: 0 2px 0 #6D0022;
}

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

.countdown-item {
    text-align: center;
    min-width: 85px;
}

.countdown-number {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    font-weight: 400;
    color: #FFD54F; /* Golden yellow number */
    background: #4E3629; /* Dark leather pocket color */
    width: 85px;
    height: 85px;
    border-radius: 6px; /* Rounded square like buckle */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(62, 39, 35, 0.2), inset 0 0 10px rgba(0,0,0,0.5);
    margin: 0 auto 10px;
    border: 3px double var(--accent-gold); /* Gold double border details */
}

.countdown-item:nth-child(2) .countdown-number {
    border-color: #FF8A65;
    color: #FF8A65;
}

.countdown-item:nth-child(3) .countdown-number {
    border-color: #4DB6AC;
    color: #4DB6AC;
}

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

/* --- Timeline / Itinerary --- */
.timeline-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    padding-left: 30px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: dashed var(--accent-brown);
}

.timeline-row {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-row::before {
    content: '🤠';
    font-size: 1.1rem;
    position: absolute;
    left: -33px;
    top: 0;
    background: var(--bg-color);
    padding: 2px;
    z-index: 2;
}

.timeline-row:nth-child(even)::before {
    content: '🐴';
}

.timeline-row:nth-child(3n)::before {
    content: '🌵';
}

.timeline-time {
    font-weight: 700;
    color: var(--accent-teal);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 0.1rem;
    font-weight: 600;
}

.timeline-desc {
    color: #6D4C41;
    font-size: 0.95rem;
}

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

.btn-music-circle {
    padding: 0;
    margin: 0;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #fff;
    color: var(--accent-brown);
    border: 2px dashed var(--accent-brown);
    box-shadow: 0 5px 20px rgba(62, 39, 35, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    box-sizing: border-box; /* Avoid border padding issues */
    outline: none;
    overflow: visible;
}

.btn-music-circle:hover {
    transform: scale(1.08) rotate(15deg);
    background-color: var(--bg-color);
}

/* --- Gallery --- */
.western-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 3rem;
}

.gallery-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border: 4px solid #fff;
    background: #fff;
    transition: transform 0.3s;
}

.gallery-card:hover {
    transform: scale(1.03) rotate(1deg);
}

.gallery-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

/* --- Floating Elements Animation --- */
#floating-elements-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-item {
    position: absolute;
    opacity: 0.12;
    animation: floatUp 15s linear infinite;
    font-size: 1.5rem;
}

@keyframes floatUp {
    0% {
        transform: translateY(105vh) rotate(0deg);
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
    }
}

/* Offset the play icon slightly to the right to visually center the triangle */
.btn-music-circle i {
    display: inline-block;
    transition: transform 0.2s ease;
}
.btn-music-circle i.fa-play {
    transform: translateX(2px);
}

/* --- Media Queries / Responsividad --- */
@media (max-width: 768px) {
    .big-font {
        font-size: 4rem; /* Safe size for mobile screen widths */
        margin: 0.8rem 0;
    }

    .medium-font {
        font-size: 1.8rem;
    }

    .section-padding {
        padding: 4rem 1rem;
    }

    /* Move music control to top-right to avoid interference with mobile browser navigation / content */
    .music-control {
        top: 15px;
        right: 15px;
        bottom: auto;
    }

    .btn-music-circle {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }

    .btn-music-circle i.fa-play {
        transform: translateX(1.5px); /* Adjusted shift for smaller size */
    }

    /* Adjust countdown sizes for small screens */
    .countdown-number {
        width: 70px;
        height: 70px;
        font-size: 1.7rem;
        border-width: 2px;
    }

    .countdown-item {
        min-width: 70px;
    }

    /* Adjust margins and spacing on mobile */
    .cowboy-card {
        padding: 2rem 1.5rem;
    }

    .timeline-container {
        padding-left: 20px;
    }

    .timeline-row::before {
        left: -27px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .big-font {
        font-size: 3rem;
    }
    .countdown-container {
        gap: 0.8rem;
    }
    .countdown-number {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
    .countdown-item {
        min-width: 60px;
    }
}
