/* ===== VARIABLES Y ESTILOS BASE ===== */
:root {
    --text: #1f2937;
    --bg: #f4f6f9;
    --white: #fff;
    --muted: #6b7280;
    --radius: 10px;
    --primary: #1e1f3e;
    --accent: #f26522;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Roboto', Arial, sans-serif;
    background: var(--bg);
    margin: 0;
    color: var(--text);
    width: 100%;
    overflow-x: hidden;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* ===== HERO BANNER CORREGIDO ===== */
.hero-banner {
    position: relative;
    width: 100vw;
    height: 70vh; /* Ocupa toda la altura de la pantalla */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner-img-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-img {
    width: 100%;
   
    object-fit: cover; /* Asegura que la imagen cubra todo el espacio */
    display: block;
}

.cta-button {
    position: absolute;
    left: 50%;
    top: 75%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 2rem;
    padding: 20px 50px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: 3px solid #fff;
    box-shadow: 0 8px 32px rgba(10,37,64,0.18);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cta-button:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ===== BARRA DE LOGOS ===== */
.logo-bar {
    background: var(--primary);
    padding: 12px 0;
    width: 100vw;
    overflow-x: auto;
    box-shadow: 0 2px 12px rgba(10,37,64,0.08);
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-bar-content img {
    height: 70px;
    max-width: 150px;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

/* ===== BARRA STICKY CTA ===== */
.cta-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--primary);
    color: var(--white);
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cta-bar .content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
    padding-bottom: 0;
    gap: 16px;
}

.cta-text { font-size: 1.05rem; }

.register-button, .btn {
    display: inline-block;
    background: transparent;
    color: var(--white);
    font-weight: 700;
    border: 2px solid #fff;
    border-radius: 8px;
    padding: 19px 41px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: border-color 0.2s ease;
    white-space: nowrap;
}

.register-button:hover, .btn:hover { 
    background: #4fc3f7; 
    color: #fff;
}

/* ===== LAYOUT GENERAL ===== */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section { 
    padding: 48px 0;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

.section-white { background: var(--white); }
.section-light { background: var(--bg); }
.section-dark {
    background: var(--primary);
    color: #fff;
}

/* ===== TIPOGRAFÍA ===== */
h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 1em;
    color: var(--primary);
    text-align: center;
    opacity: 0;
    animation: slideInLeft 1s ease-in-out forwards;
    animation-delay: 0.3s;
}

.section-dark h2 { color: var(--white); }

h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 1.5em;
    color: var(--primary);
}

/* ===== LISTAS ===== */
.list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list li {
    margin-bottom: 0.8em;
    font-size: 1.05rem;
    padding-left: 1.6em;
    position: relative;
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out forwards;
}

.list li::before {
    content: '✔';
    color: var(--accent);
    position: absolute;
    left: 0;
    top: 0.15em;
    font-weight: 900;
}

.list li:nth-child(1) { animation-delay: 0.2s; }
.list li:nth-child(2) { animation-delay: 0.4s; }
.list li:nth-child(3) { animation-delay: 0.6s; }
.list li:nth-child(4) { animation-delay: 0.8s; }
.list li:nth-child(5) { animation-delay: 1s; }

.section-dark .list li::before { color: var(--white); }

/* ===== IMÁGENES ===== */
.about-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.10);
    margin-top: 1em;
    opacity: 0;
    animation: zoomIn 1s ease-in-out forwards;
    animation-delay: 0.5s;
}

/* ===== SECCIÓN UBICACIÓN ===== */
.venue-combo {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 20px 44px rgba(0,0,0,0.12);
    max-width: 1200px;
    margin: 0 auto;
}

.venue-map {
    background: #e5eef7;
}

.venue-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    min-height: 220px;
}

.info-card {
    background: #f4f6f9;
    border-radius: 12px;
    padding: 18px;
    margin-top: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-card h3 {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 800;
}

.info-sub {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.95rem;
}

.info-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.info-list li {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px dashed #e5e7eb;
    font-size: 1rem;
    color: var(--text);
}

.info-list li:last-child { border-bottom: 0; }
.info-list .label { font-weight: 700; color: var(--primary); }

.info-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.info-actions .btn {
    padding: 12px 16px;
    font-size: 0.98rem;
    border-radius: 8px;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid #cfd8e3;
    box-shadow: none;
    text-transform: none;
    letter-spacing: 0;
}

.btn-outline:hover { 
    background: #f3f6fa; 
    color: var(--primary);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; 
    top: 0;
    width: 100vw; 
    height: 100vh;
    background: rgba(30,31,62,0.7);
    justify-content: center;
    align-items: center;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 32px 24px;
    border-radius: 12px;
    max-width: 400px;
    width: 90vw;
    box-shadow: 0 8px 32px rgba(10,37,64,0.18);
    position: relative;
}

.modal-content h3 {
    margin: 0 0 16px;
    color: var(--primary);
    font-size: 1.5rem;
    text-align: center;
    font-weight: bold;
}

.modal .close {
    position: absolute;
    top: 12px;
    right: 18px;
    cursor: pointer;
    font-size: 2rem;
    color: var(--accent);
    transition: color 0.2s;
}

.modal .close:hover {
    color: var(--primary);
}

.modal form label {
    display: block;
    margin: 12px 0 8px;
    font-weight: 600;
    color: #0f172a;
}

.modal form input, 
.modal form textarea {
    width: 100%;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 14px;
    box-sizing: border-box;
}

.modal form input:focus, 
.modal form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 4px rgba(10, 37, 64, 0.4);
}

.modal form textarea {
    min-height: 120px;
    resize: vertical;
}

.modal form button[type="submit"] {
    margin-top: 16px;
    width: 100%;
    background: var(--primary);
    color: #ffffff;
    border: 0;
    border-radius: 8px;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.modal form button[type="submit"]:hover {
    background: #4fc3f7;
}

.modal form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Modal grande y filas de dos inputs */
.modal-lg-content {
    max-width: 800px;
    width: 98vw;
}

.modal-row {
    display: flex;
    gap: 24px;
    margin-bottom: 18px;
}

.modal-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ===== MINI MENÚ ===== */
.mini-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5em;
    background: var(--primary);
    padding: 10px 20px;
    border-radius: 8px;
    opacity: 0;
    animation: slideInRight 1s ease-in-out forwards;
    animation-delay: 0.2s;
}

.mini-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5em;
}

.mini-menu li {
    margin: 0;
}

.menu-link {
    color: var(--white);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0.5em 1em;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}

.menu-link:hover {
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 24px 0;
    font-size: 1rem;
}

footer a {
    color: var(--accent);
    text-decoration: underline;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .venue-combo { 
        grid-template-columns: 1fr; 
    }
    
    .info-card { 
        border-left: 0; 
        border-top: 1px solid #e5e7eb; 
    }
    
    .venue-map { 
        min-height: 420px; 
    }
}

@media (max-width: 900px) {
    .hero-banner {
        height: 60vh; /* Altura reducida en tablets */
    }
    
    .cta-button {
        font-size: 1.5rem;
        padding: 16px 32px;
    }
    
    .content-wrapper { 
        padding: 48px 16px; 
    }
    
    .cta-bar .content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .register-button { 
        margin-top: 8px; 
        width: 100%; 
        max-width: 420px; 
    }
}

@media (max-width: 700px) {
    .modal-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 640px) {
    .venue-map { 
        min-height: 360px; 
    }
    
    .info-list li { 
        grid-template-columns: 1fr; 
    }
}

@media (max-width: 600px) {
    /* Body optimizado para móvil */
    body {
        width: 100% !important;
        overflow-x: hidden;
        font-size: 14px;
        line-height: 1.5;
        padding: 0;
        margin: 0;
    }
    
    /* Banner optimizado para móvil */
    .hero-banner {
        height: 50vh !important;
        width: 100vw !important;
    }
    
    /* Botón CTA optimizado para móvil */
    .cta-button {
        font-size: 1.2rem !important;
        padding: 14px 24px !important;
        width: 80% !important;
        max-width: 280px !important;
        left: 50% !important;
        top: 84% !important;
    }
    
    /* Modal optimizado para móvil */
    .modal {
        padding: 10px;
        align-items: flex-start;
        overflow-y: auto;
    }
    
    .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 20px 15px;
    }
    
    .modal-lg-content {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .modal-row {
        flex-direction: column;
        gap: 10px !important;
    }
    
    .modal-group {
        width: 100%;
    }
    
    /* Asegurar que los inputs sean fáciles de tocar */
    .modal form input, 
    .modal form textarea {
        font-size: 16px;
        padding: 14px 16px;
        min-height: 44px;
    }
    
    .modal .close {
        top: 8px;
        right: 12px;
        font-size: 1.8rem;
    }
    
    /* Barra de logos en móvil */
    .logo-bar-content {
        gap: 16px;
    }
    
    .logo-bar-content img {
        height: 36px;
        max-width: 80px;
    }
    
    h2 { 
        font-size: 1.6rem; 
    }
    
    .content-wrapper { 
        padding: 40px 15px; 
    }
}

@media (max-width: 360px) {
    .cta-button {
        font-size: 1.1rem !important;
        padding: 12px 20px !important;
    }
    
    .modal-content {
        padding: 15px 10px;
    }
}

/* Para pantallas grandes (más de 1920px) */
@media (min-width: 1921px) {
    .hero-banner {
        background: var(--primary); /* Fondo de color para pantallas muy grandes */
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .banner-img-wrapper {
        max-width: 1920px;
        height: 80%;
    }

    .banner-img {
        width: auto;
        max-width: 95%;
        max-height: 95%;
        height: auto;
        object-fit: contain;
    }

    .cta-button {
        left: 50%;
        transform: translateX(-50%);
        top: 75%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { 
        scroll-behavior: auto; 
    }
    
    .cta-button, 
    .register-button, 
    .btn { 
        transition: none; 
    }
    
    .section,
    h2,
    .about-img,
    .mini-menu,
    .list li {
        animation: none;
        opacity: 1;
    }
}