
/* ================= VARIABLES ================= */
:root {
    --primary-color: #1361a7; /* Azul exacto del cartel */
    --primary-dark: #0d467b;
    --secondary-color: #c36531; /* Naranja exacto del cartel */
    --secondary-hover: #a65327;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #fafafa; /* Fondo exacto del cartel */
    --white: #FFFFFF;
}

/* ================= RESET & GLOBALS ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Garet', 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Garet', 'Montserrat', sans-serif;
    line-height: 1.2;
}

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

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(243, 111, 33, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(243, 111, 33, 0.6);
}

/* ================= NAVBAR (NUEVO MENÚ) ================= */
.navbar {
    background-color: var(--primary-dark);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
    transition: padding 0.3s ease;
}

.navbar.scrolled {
    padding: 8px 20px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-brand span {
    color: var(--secondary-color);
}

.brand-logo {
    display: none;
    height: 55px; /* Altura aumentada para que destaque mucho más */
    width: auto;
}

.navbar.scrolled .brand-text {
    display: none;
}

.navbar.scrolled .brand-logo {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
}
/* ================= PAGE HEADER ================= */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
}

/* ================= CONTENT SECTION ================= */
.content-section {
    padding: 60px 0;
}

.document-box {
    background-color: var(--white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 5px solid var(--secondary-color);
}

.document-box h2 {
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 10px;
}

.document-box h3 {
    color: var(--text-dark);
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.document-box h2:first-child { margin-top: 0; }

.document-box p {
    margin-bottom: 15px;
    color: var(--text-dark);
    text-align: justify;
}

.document-box ul {
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.document-box li { margin-bottom: 10px; }

/* Estilos para Tablas del Reglamento */
table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.95rem; }
th, td { padding: 12px 15px; border: 1px solid #ddd; text-align: left; }
th { background-color: var(--primary-color); color: var(--white); font-weight: bold; }
tr:nth-child(even) { background-color: #f9f9f9; }
@media (max-width: 768px) {
    table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ================= HERO SECTION ================= */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: var(--bg-light);
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 100%);
}

/* Placeholder Logo Principal */
.logo-prueba-placeholder {
    width: 250px;
    height: 120px;
    margin: 0 auto 30px auto;
    border: 2px dashed rgba(255,255,255,0.5);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    font-weight: bold;
    font-size: 0.9rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero .subtitle {
    font-size: 1.8rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 40px;
    font-weight: 700;
}

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

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-item strong {
    display: block;
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-family: 'Montserrat', sans-serif;
}

/* ================= ABOUT SECTION ================= */
.about-section {
    padding: 80px 0;
    text-align: center;
}

.about-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto 20px auto;
    font-size: 1.2rem;
    color: var(--text-light);
}

/* ================= CAROUSEL SECTION ================= */
.carousel-section {
    padding: 40px 0 80px 0;
    background-color: var(--white);
}

.carousel-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 500px;
}

.carousel-slide.active {
    display: block;
    animation: fade 0.8s;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.nav-btn {
    background-color: rgba(29, 85, 139, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background-color: var(--secondary-color);
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: var(--secondary-color);
}

/* ================= MODALIDADES SECTION ================= */
.modalidades-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border-top: 5px solid var(--primary-color);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card .distance {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.card .time {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
}

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

.organizers-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.logo-placeholder {
    width: 200px;
    height: 200px;
    border: 2px dashed #ccc;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    color: #888;
    padding: 20px;
}

.logo-placeholder span {
    font-size: 0.8rem;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================= BOTÓN DE DESCARGA PDF ================= */
.btn-download {
display: inline-flex;
align-items: center;
gap: 10px;
background-color: var(--secondary-color);
color: var(--white);
text-decoration: none;
padding: 12px 28px;
border-radius: 50px;
font-weight: 700;
font-family: 'Montserrat', sans-serif;
font-size: 1.1rem;
box-shadow: 0 4px 15px rgba(195, 101, 49, 0.4);
transition: all 0.3s ease;
}

.btn-download:hover {
background-color: var(--secondary-hover);
transform: translateY(-3px);
box-shadow: 0 6px 20px rgba(195, 101, 49, 0.6);
}

/* ================= CTA BOTTOM ================= */
.cta-bottom {
    background-color: var(--primary-color);
    padding: 60px 20px;
    text-align: center;
    color: var(--white);
}

.cta-bottom h2 {
    margin-bottom: 20px;
    font-size: 2.2rem;
}

/* ================= FOOTER ================= */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}

footer p {
    opacity: 0.7;
    margin-bottom: 10px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 15px; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .hero h1 { font-size: 2.5rem; }
    .hero .subtitle { font-size: 1.2rem; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .carousel-slide { height: 300px; }
}

/* ================= SECCIÓN PRÓXIMAMENTE ================= */
.coming-soon-section {
    padding: 80px 20px;
    background-color: var(--bg-light);
    min-height: 50vh; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon-box {
    background: var(--white);
    max-width: 600px;
    width: 100%;
    padding: 60px 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 5px solid var(--secondary-color);
    animation: fadeInUp 0.6s ease;
}

.coming-soon-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px auto;
    background-color: rgba(29, 85, 139, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--primary-color);
}

.coming-soon-box h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

.coming-soon-box p {
    color: var(--text-light);
    font-size: 1.1rem;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}