/* XII Concentración Vehículos Clásicos Lorca & V AutoRetro - Design System (Light Theme) */

:root {
    /* Color Palette */
    --primary: #e34300;       /* Vibrant Orange matching the poster */
    --primary-light: #ff5714; /* Lighter Orange for hover states */
    --accent: #e34300;        /* Theme Accent */
    --bg-dark: #ffffff;       /* Pure White Background */
    --bg-body: #fffcf8;       /* Warm Creamy/Off-white background matching the poster */
    --bg-card: #f8f3eb;       /* Warm vintage card background */
    --bg-card-light: #ffffff; /* Contrast Card Background */
    --text-light: #101010;    /* Dark Charcoal for Primary Text */
    --text-muted: #4f473e;    /* Warm Muted Grey for Secondary Text */
    --border-color: #ebdcc8;  /* Warm Cream/Brown Border matching the poster */
    --border-orange: rgba(227, 67, 0, 0.15);
    
    /* Fonts */
    --font-primary: 'Montserrat', sans-serif;
    --font-accent: 'Montserrat', sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Styles & Resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-body);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-accent);
    font-weight: 800; /* Extra Bold for clean titles */
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-transform: uppercase;
}

p {
    color: var(--text-muted);
}

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

/* Utilities */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 100px 24px;
}

.orange-text {
    color: var(--primary);
}

.gold-text { /* Keep compatibility with class used in HTML */
    color: var(--primary);
}

.accent-text {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 12px;
}


/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 28px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    border: 1px solid var(--primary);
    box-shadow: 0 4px 15px rgba(227, 67, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 67, 0, 0.45);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(227, 67, 0, 0.2);
}

.btn-large {
    font-size: 1rem;
    padding: 16px 36px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-icon {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Pulsing effect for header CTA */
@keyframes pulseShadow {
    0% {
        box-shadow: 0 0 0 0 rgba(227, 67, 0, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(227, 67, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(227, 67, 0, 0);
    }
}

.btn-pulse {
    animation: pulseShadow 2s infinite;
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition);
}

.header-transparent {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 70px;
    border-bottom: 1px solid rgba(227, 67, 0, 0.15);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    font-family: var(--font-primary);
}

.logo-img {
    height: 46px;
    width: auto;
    object-fit: contain;
}

.logo-text-gold {
    color: var(--primary);
}

.logo-text-white {
    color: var(--text-light);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section (Light & Modern) */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #fff6f2 0%, var(--bg-body) 70%);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, var(--bg-body) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(227, 67, 0, 0.08);
    border: 1.5px solid var(--primary);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 20px;
    margin-bottom: 24px;
}

#hero-title {
    font-size: clamp(2.2rem, 5.5vw, 4.4rem);
    font-weight: 800; /* Extra Bold Montserrat */
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-muted);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    font-size: 0.9rem;
    font-weight: 500;
}

.meta-icon {
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* Countdown */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 40px 0;
}

.countdown-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    min-width: 90px;
    padding: 16px 8px;
    border-radius: var(--border-radius);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.countdown-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(227, 67, 0, 0.1);
}

.countdown-number {
    display: block;
    font-family: var(--font-primary);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}

.countdown-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Gallery Section (Showcasing Posters) */
.gallery-section {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 12px;
    color: var(--text-light);
}

.section-subtitle {
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.gallery-item {
    display: block;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 480px; /* Taller height for poster aspect ratio */
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.04);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.85) 70%, rgba(255, 255, 255, 0) 100%);
    z-index: 2;
    transition: var(--transition);
}

.gallery-caption h3 {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 6px;
}

.gallery-caption p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Details Section */
.details-section {
    background-color: var(--bg-body);
}

.details-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.details-content h2 {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    margin-bottom: 24px;
    color: var(--text-light);
}

.details-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.details-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 36px;
}

.feature-card {
    background-color: var(--bg-card-light);
    padding: 24px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.feature-icon {
    font-size: 2rem;
    display: inline-block;
    margin-bottom: 12px;
}

.feature-card h4 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.feature-card p {
    font-size: 0.85rem;
}

.details-schedule-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.details-schedule-card h3 {
    font-size: 1.6rem;
    margin-bottom: 6px;
    text-align: center;
}

.schedule-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

.schedule-list {
    list-style: none;
}

.schedule-list li {
    display: flex;
    gap: 16px;
    padding-bottom: 24px;
    border-left: 2px solid var(--border-color);
    padding-left: 20px;
    margin-left: 8px;
    position: relative;
}

.schedule-list li::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 2px solid #ffffff;
}

.schedule-list li:last-child {
    border-left: none;
    padding-bottom: 0;
}

.schedule-time {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    min-width: 65px;
}

.schedule-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.schedule-cta {
    margin-top: 30px;
}

/* Location Section */
.location-section {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
}

.location-card {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
}

.location-info {
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location-info h2 {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    margin-bottom: 20px;
}

.location-info p {
    margin-bottom: 20px;
}

.location-address {
    font-weight: 700;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 30px !important;
}

.location-map-preview {
    min-height: 350px;
    background-color: #f7f7f7;
    position: relative;
    overflow: hidden;
}

.location-map-preview iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 350px;
    border: none;
}

/* Footer (Light Theme) */
footer {
    background-color: #f7f7f7;
    border-top: 1px solid var(--border-color);
    padding: 80px 24px 30px;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand h4 {
    margin-bottom: 16px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.logo-img-footer {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.footer-brand p {
    font-size: 0.9rem;
    max-width: 320px;
}

.footer-links h4, .footer-social h4 {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    transition: var(--transition);
}

.social-btn:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(227, 67, 0, 0.2);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Voting Section */
.voting-section {
    background-color: var(--bg-body);
    border-top: 1px solid var(--border-color);
}

.voting-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
}

.voting-info {
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.voting-info h2 {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    margin-bottom: 20px;
}

.voting-info p {
    margin-bottom: 30px;
}

.voting-visual {
    background-color: var(--bg-card-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-left: 1px solid var(--border-color);
}

.trophy-badge-card {
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 320px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.trophy-badge-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(227, 67, 0, 0.15);
}

.trophy-icon-glow {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 20px;
    display: inline-block;
    animation: floatTrophy 4s ease-in-out infinite;
}

@keyframes floatTrophy {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.trophy-badge-card h4 {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.trophy-badge-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive Breakpoints */

@media (max-width: 1200px) {
    .logo {
        font-size: 0.95rem;
    }
    .nav-menu {
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .details-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .voting-card {
        grid-template-columns: 1fr;
    }
    
    .voting-visual {
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding: 50px 30px;
    }
    
    .voting-info {
        padding: 48px 30px;
    }
    
    .location-card {
        grid-template-columns: 1fr;
    }
    
    .location-info {
        padding: 48px 30px;
    }
    
    .location-map-preview {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .section-container {
        padding: 60px 16px;
    }
    
    .nav-menu {
        display: none; /* Hide navigation links on small screens to keep layout clean */
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 0 auto;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .countdown-container {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .countdown-card {
        min-width: 75px;
        padding: 12px 4px;
    }
    
    .countdown-number {
        font-size: 1.8rem;
    }
    
    .details-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-actions {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .header-container {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        padding: 10px;
    }
    
    #main-header {
        height: auto;
        padding: 8px 0;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .header-scrolled {
        height: auto;
    }
    
    .logo {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .hero-section {
        padding-top: 140px;
    }
}
