:root {
    --primary-color: #003366;
    --secondary-color: #f4a261;
    --accent-color: #2a9d8f;
    --text-color: #333333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
}

/* Header y Navegación */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
    z-index: 101;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #004080);
    color: var(--white);
    text-align: center;
    padding: 5rem 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-style: italic;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Content Sections */
.content-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.content-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.content-section h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.content-section p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.intro-text {
    font-size: 1.1rem;
    font-style: italic;
    text-align: center;
    color: #555;
}

/* Features List */
.features-list {
    list-style-type: none;
    margin-top: 1.5rem;
}

.features-list li {
    background: var(--light-bg);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-left: 4px solid var(--secondary-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.features-list strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Timeline */
.timeline {
    margin: 3rem 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--secondary-color);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 1;
    box-shadow: var(--shadow);
}

.timeline-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    width: 90%;
    margin: 0 1rem;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    margin: 0;
    text-align: left;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.gallery-item p {
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    text-align: center;
}

/* Muestra Features */
.muestra-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* Afiche de la muestra (inicio de la sección) */
.muestra-poster {
    text-align: center;
    margin-bottom: 2rem;
}

.muestra-poster img {
    margin: 0 auto;
    max-width: 380px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Foto de carteles de ediciones anteriores (final de la sección) */
.muestra-old-signs {
    text-align: center;
    margin-top: 3rem;
}

.muestra-old-signs img {
    max-width: 100%;
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.muestra-old-signs p {
    margin-top: 1rem;
    font-style: italic;
    color: #555;
    text-align: center;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
    border-top: 4px solid var(--secondary-color);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card p {
    text-align: center;
    margin: 0;
}

/* CTA Container */
.cta-container {
    background: linear-gradient(135deg, var(--primary-color), #004080);
    color: var(--white);
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 3rem;
}

.cta-container h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-container p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Work Section */
.work-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.work-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.work-content p {
    text-align: left;
}

/* Background Alternates */
.alt-bg {
    background-color: var(--light-bg);
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.alt-bg > * {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.btn:hover {
    background: #e76f51;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logos {
    text-align: center;
}

.footer-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-info h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.footer-info p,
.footer-contact p {
    margin: 0.3rem 0;
    opacity: 0.9;
}

.footer-contact strong {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .content-section {
        padding: 3rem 1.5rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 80px;
        padding-right: 0;
    }
    
    .timeline-year {
        left: 30px;
        transform: translateX(-50%);
    }
    
    .timeline-content {
        width: 100%;
        margin: 0;
    }
    
    .work-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .header-logo {
        height: 50px;
    }
    
    .hero {
        padding: 3rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .content-section {
        padding: 2.5rem 1.5rem;
    }
    
    .content-section h2 {
        font-size: 1.6rem;
    }
    
    .content-section h3 {
        font-size: 1.2rem;
    }
    
    .content-section p {
        text-align: left;
    }
    
    .features-list li {
        padding: 1.2rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .muestra-features {
        grid-template-columns: 1fr;
    }
    
    .work-container {
        gap: 2rem;
    }
    
    .btn {
        display: block;
        text-align: center;
        width: 100%;
        max-width: 300px;
        margin: 1.5rem auto 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logos {
        order: -1;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .hero {
        padding: 2.5rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .content-section {
        padding: 2rem 1rem;
    }
    
    .content-section h2 {
        font-size: 1.4rem;
    }
    
    .timeline-year {
        font-size: 1rem;
        padding: 0.3rem 0.8rem;
    }
    
    .gallery-item img {
        height: 250px;
    }
}