/* ===== Variables y Reset ===== */
:root {
    --color-primary: #004aaf;
    --color-secondary: #ff8700;
    --color-accent: #ffd41e;
    --color-dark: #1a1a2e;
    --color-light: #f5f5f5;
    --color-white: #ffffff;
    --color-text: #333333;
    --color-text-light: #666666;
    --font-main: 'Montserrat', sans-serif;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 50px;
}

/* ===== Header / Navegación ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 74, 175, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: visible;
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    position: relative;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0 auto;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: absolute;
    right: 20px;
}

.nav-links a {
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
}

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

.nav-links a:hover {
    color: var(--color-accent);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-white);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 100px 0 120px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 74, 175, 0.7), rgba(26, 26, 46, 0.5));
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 20px;
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-invitacion {
    max-width: 550px;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
}

.hero-info h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-fecha {
    font-size: 1.4rem;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-lugar {
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--color-secondary);
    color: var(--color-white);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.4);
}

.btn-primary:hover {
    background: #e65100;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 111, 0, 0.5);
}

.btn-secondary {
    display: inline-block;
    padding: 10px 28px;
    background: #00a1ff;
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: none;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: #0080d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 161, 255, 0.4);
}

/* ===== Acerca de la Expo ===== */
.acerca {
    padding: 80px 0;
    background: var(--color-white);
    display: flex;
    justify-content: center;
}

.acerca .container {
    max-width: 900px;
    text-align: center;
}

.acerca-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #df007b;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.acerca-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 25px;
}

.acerca-text {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 35px;
    text-align: center;
}

.acerca-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-registra {
    display: inline-block;
    padding: 12px 28px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-registra:hover {
    background: #003580;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 74, 175, 0.4);
}

.btn-conoce {
    display: inline-block;
    padding: 12px 28px;
    background: #00a1ff;
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-conoce:hover {
    background: #0080d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 161, 255, 0.4);
}

/* ===== Lo que encontrarás ===== */
.encontraras {
    padding: 100px 0;
    background: var(--color-white);
    text-align: center;
}

.encontraras-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #df007b;
    margin-bottom: 50px;
    text-transform: uppercase;
    line-height: 1.2;
}

.encontraras-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 50px;
}

.encontraras-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 30px;
    max-width: 900px;
    margin: 0 auto;
}

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

.encontraras-item img {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    object-fit: contain;
}

.encontraras-item h3 {
    font-size: 1.1rem;
    color: var(--color-dark);
    font-weight: 700;
}

.encontraras-cta {
    margin-top: 50px;
    text-align: center;
}

/* ===== Galería Carrusel ===== */
.galeria-carousel {
    padding: 0;
    background: var(--color-dark);
    position: relative;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    height: 70vh;
    max-height: 700px;
    object-fit: cover;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-dark);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-btn:hover {
    background: var(--color-white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--color-white);
}

/* ===== Croquis ===== */
.croquis {
    padding: 0 0 80px 0;
    background: var(--color-white);
    text-align: center;
}

.croquis-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #df007b;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.croquis-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 40px;
}

.croquis-image {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
}

.croquis-image img {
    width: 100%;
    height: auto;
}

.croquis-cta {
    margin: 40px 0 80px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-croquis {
    display: inline-block;
    padding: 10px 25px;
    background: #df007b;
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-croquis:hover {
    background: #b3005f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(223, 0, 123, 0.4);
}

.btn-brochure {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #00a1ff;
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-brochure:hover {
    background: #0080d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 161, 255, 0.4);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 100;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Modal Carousel */
.modal-carousel {
    max-width: 700px;
    width: 100%;
}

.modal-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.modal-carousel-track-container {
    overflow: hidden;
    width: 100%;
    border-radius: var(--radius);
}

.modal-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.modal-carousel-slide {
    min-width: 100%;
}

.modal-carousel-slide img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.modal-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-dark);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-carousel-btn:hover {
    background: var(--color-white);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 10px;
}

.modal-next {
    right: 10px;
}

.modal-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.modal-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.modal-carousel-dot.active {
    background: var(--color-white);
}

.croquis-ubicacion {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 30px;
}

.croquis-mapa {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.croquis-mapa iframe {
    display: block;
    width: 100%;
    height: 400px;
}

/* ===== Patrocinadores ===== */
.patrocinadores {
    padding: 0 0 100px 0;
    background: var(--color-white);
    text-align: center;
}

.patrocinadores-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    word-wrap: break-word;
    padding: 0 15px;
}

.patrocinadores-subtitle {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 30px;
}

.patrocinadores-cta {
    margin-top: 50px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.btn-patrocinador {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #df007b;
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    text-align: center;
}

.btn-patrocinador:hover {
    background: #b3005f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(223, 0, 123, 0.4);
}

.patrocinadores-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.patrocinadores-row {
    display: flex;
    flex-wrap: wrap;
    /*gap: 30px;*/
    align-items: center;
    justify-content: center;
    width: 100%;
}

.patrocinador-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    height: 120px;
}

.patrocinador-item img {
    max-height: 110px;
    max-width: 220px;
    object-fit: contain;
    margin: 0 auto;
}

/* ===== Instagram Feed ===== */
.instagram-feed {
    padding: 80px 0;
    background: var(--color-light);
    text-align: center;
}

.instagram-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #df007b;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.instagram-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.instagram-subtitle a {
    color: var(--color-primary);
    font-weight: 700;
    transition: var(--transition);
}

.instagram-subtitle a:hover {
    color: #df007b;
}

.instagram-widget {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== Footer ===== */
.footer {
    background: #282d69;
    color: var(--color-white);
    padding: 40px 0 20px;
    text-align: center;
}

.footer .container {
    max-width: 1200px;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 70px;
    width: auto;
}

.footer-logo-canaco img {
    height: 65px;
    width: auto;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-nav a {
    color: var(--color-white);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
}

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

.footer-nav a:hover {
    color: var(--color-accent);
}

.footer-nav span {
    color: var(--color-white);
    opacity: 0.6;
}

.footer-copy {
    font-size: 1rem;
    color: var(--color-white);
    opacity: 0.8;
    letter-spacing: 0.5px;
    margin-top: 15px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    transition: var(--transition);
}

.footer-social a:hover {
    transform: translateY(-3px);
}

.footer-social img {
    width: 38px;
    height: 38px;
    filter: brightness(0) invert(1);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2rem;
    }

    .encontraras-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 960px) {
    .nav {
        padding: 25px 20px;
        justify-content: center;
        min-height: 80px;
    }

    .nav-logo img {
        height: 65px;
        margin-top: 10px;
        padding-bottom: 15px;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 74, 175, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 20px;
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .hero-info h1 {
        font-size: 2.2rem;
    }

    .hero-fecha {
        font-size: 1.1rem;
    }

    .hero-invitacion {
        max-width: 300px;
    }

    .encontraras-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .patrocinadores-grid {
        gap: 25px;
    }

    .patrocinadores-row {
        flex-direction: column;
        gap: 25px;
        width: 100%;
    }

    .patrocinador-item {
        padding: 10px;
        height: 100px;
        width: 100%;
    }

}

@media (max-width: 480px) {
    .hero-info h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .patrocinadores-title {
        font-size: 1.8rem;
    }

    .encontraras-title {
        font-size: 1.8rem;
    }

    .croquis-title {
        font-size: 1.8rem;
    }

    .acerca-title {
        font-size: 1.8rem;
    }

    .encontraras-grid {
        grid-template-columns: 1fr;
    }

    .patrocinador-item {
        height: 80px;
        padding: 8px;
    }

    .patrocinador-item img {
        max-height: 70px;
        max-width: 140px;
    }

    .btn-primary {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .encontraras-item {
        padding: 25px 15px;
    }
}
