:root {
    --rojo: #e63946;
    --rojo-oscuro: #d62839;
    --negro: #121212;
    --blanco: #ffffff;
    --gris: #f1faee;
    --gris-claro: #f8f9fa;
    --gris-medio: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--blanco);
    color: var(--negro);
    line-height: 1.6;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--rojo), var(--negro));
    color: white;
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
}

/* ConfiguraciÃ³n del header con redes sociales a la derecha */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Logo a la izquierda */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo img {
    height: 45px;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--blanco);
}

/* MenÃº en el centro */
nav.desktop-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Redes Sociales en Header - A LA DERECHA */
.header-social {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-social .social-links {
    display: flex;
    gap: 1rem;
}

.header-social .social-links a {
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    text-decoration: none !important;
}

.header-social .social-links a:hover {
    color: var(--blanco);
    transform: translateY(-3px) scale(1.15);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none !important;
}

.header-social .social-links a:focus,
.header-social .social-links a:active,
.header-social .social-links a:visited {
    text-decoration: none !important;
    outline: none;
}

/* MenÃº Desktop Optimizado */
nav.desktop-menu ul {
    display: flex;
    list-style: none;
    gap: 1.2rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

nav.desktop-menu>ul>li {
    position: relative;
}

nav.desktop-menu a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}

nav.desktop-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Dropdown optimizado */
nav.desktop-menu .dropdown {
    position: relative;
}

nav.desktop-menu .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

nav.desktop-menu .dropdown-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

nav.desktop-menu .dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

nav.desktop-menu .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--rojo-oscuro);
    min-width: 220px;
    border-radius: 6px;
    padding: 0.5rem 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Crear un puente invisible para mantener el hover */
nav.desktop-menu .dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
    z-index: 999;
}

nav.desktop-menu .dropdown-menu.show,
nav.desktop-menu .dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

nav.desktop-menu .dropdown-menu li {
    list-style: none;
}

nav.desktop-menu .dropdown-menu a {
    color: var(--blanco);
    padding: 0.6rem 1rem;
    display: block;
    font-size: 0.85rem;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

nav.desktop-menu .dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: none;
    padding-left: 1.2rem;
}

/* Asegurar que el dropdown se mantenga visible al hacer hover */
nav.desktop-menu .dropdown:hover .dropdown-menu,
nav.desktop-menu .dropdown-menu:hover {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* MenÃº Mobile */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--blanco);
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 1rem;
    padding: 0.5rem;
}

nav.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--negro);
    z-index: 99;
    padding: 0.5rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

nav.mobile-menu.active {
    display: block;
}

nav.mobile-menu ul {
    list-style: none;
}

nav.mobile-menu li {
    margin-bottom: 0.5rem;
}

nav.mobile-menu a {
    color: var(--blanco);
    text-decoration: none;
    font-size: 1rem;
    display: block;
    padding: 0.5rem;
    border-left: 3px solid var(--rojo);
    transition: all 0.3s ease;
}

nav.mobile-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 1rem;
}

.mobile-dropdown .dropdown-menu {
    display: none;
    position: static;
    box-shadow: none;
    padding-left: 15px;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 0.3rem;
    border-radius: 4px;
}

.mobile-dropdown.active .dropdown-menu {
    display: block;
}

.mobile-dropdown .dropdown-icon {
    transition: transform 0.3s;
}

.mobile-dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

/* Hero Banner */
.hero {
    background: url('img/foto2.jpg') no-repeat center/cover;
    height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    background-position: center 40%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 600px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--rojo);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--rojo-oscuro);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Secciones */
section {
    padding: 4rem 0;
}

/* TÃTULOS DECORADOS NUEVOS */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--negro);
    position: relative;
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Estilo subrayado parcial */
.section-title.underline-partial::after {
    content: '';
    display: block;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--rojo) 60%, transparent);
    margin: 0.5rem auto 0;
}

/* Cards DIFERENCIADAS */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--blanco);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Card 1 - QuiÃ©nes Somos - Estilo con borde */
.card:nth-child(1) {
    border-left: 5px solid var(--rojo);
}

.card:nth-child(1):hover {
    transform: translateY(-10px) rotateZ(-1deg);
    box-shadow: 0 15px 30px rgba(230, 57, 70, 0.3);
}

/* Card 2 - Socios - Estilo con gradiente */
.card:nth-child(2) {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-top: 3px solid var(--rojo);
}

.card:nth-child(2):hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card:nth-child(2)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rojo), var(--rojo-oscuro));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:nth-child(2):hover::before {
    transform: scaleX(1);
}

/* Card 3 - Noticias - Estilo con badge */
.card:nth-child(3) {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
        linear-gradient(135deg, var(--rojo), var(--negro)) border-box;
}

.card:nth-child(3):hover {
    transform: translateY(-10px) rotateZ(1deg);
    box-shadow: 0 15px 35px rgba(18, 18, 18, 0.2);
}

.card:nth-child(3)::after {
    content: 'NUEVA';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--rojo);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center 20%;
}

.card-content {
    padding: 1.5rem;
}

.card h3 {
    color: var(--rojo);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Iconos de cards con animaciÃ³n */
.card h3 i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.card:hover h3 i {
    transform: scale(1.2) rotate(10deg);
}

.card-link {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
}

.card-link:hover {
    opacity: 0.9;
}

.card-link h3,
.card-link p {
    color: inherit !important;
    text-decoration: none !important;
    margin: 0;
}

.no-underline,
.no-underline *,
.no-underline:hover,
.no-underline:focus,
.no-underline:active {
    text-decoration: none !important;
    color: inherit !important;
}

.card-link .card-title,
.card-link .card-text {
    text-decoration: none !important;
    color: inherit !important;
    margin: 0;
}

.card a:any-link,
.card a:-webkit-any-link,
.card a:visited {
    text-decoration: none !important;
    color: inherit !important;
}

/* EquipaciÃ³n */
#equipacion {
    background-color: var(--gris);
}

/* Patrocinadores ORIGINALES (mantener para compatibilidad) */
.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.sponsor-logo {
    height: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.sponsor-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* ========================================
   SECCIÃ"N PATROCINADORES Y COLABORADORES NUEVA
   ======================================== */

/* SecciÃ³n Principal */
.sponsors-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--gris-claro) 0%, var(--blanco) 50%, var(--gris-claro) 100%);
    position: relative;
    overflow: hidden;
}

.sponsors-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.03) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-20px, -20px) rotate(180deg);
    }
}

/* Encabezado de secciÃ³n */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.section-header .section-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--negro);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
}

.section-header .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--rojo), var(--rojo-oscuro));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gris-medio);
    margin-top: 1.5rem;
    font-weight: 400;
}

/* CategorÃ­as de Sponsors */
.sponsors-category {
    margin-bottom: 5rem;
    position: relative;
}

.category-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--negro);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    padding: 0.5rem 2rem;
    background: var(--blanco);
    border-radius: 50px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.category-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100px;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rojo));
    transform: translateY(-50%);
}

.category-title::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -100px;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--rojo), transparent);
    transform: translateY(-50%);
}

/* Grid de Patrocinadores NUEVOS */
.sponsors-grid-new {
    display: grid;
    gap: 2.5rem;
    position: relative;
}

/* Patrocinadores Principales (mÃ¡s grandes) */
.sponsors-grid-new.main-sponsors {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    margin-bottom: 4rem;
}

/* Apoyo Institucional */
.sponsors-grid-new.institutional {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: 3rem;
}

/* Colaboradores */
.sponsors-grid-new.collaborators {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-bottom: 3rem;
}

/* Equipaciones */
.sponsors-grid-new.equipment {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Card de Sponsor NUEVA */
.sponsor-card {
    background: var(--blanco);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.sponsor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.sponsor-card:hover::before {
    left: 100%;
}

.sponsor-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(230, 57, 70, 0.15);
    border-color: var(--rojo);
}

/* Diferentes estilos para cada categorÃ­a */
.main-sponsors .sponsor-card {
    border-top: 4px solid var(--rojo);
}

.institutional .sponsor-card {
    border-left: 4px solid var(--negro);
}

.collaborators .sponsor-card {
    border-right: 4px solid var(--rojo-oscuro);
}

.equipment .sponsor-card {
    border-bottom: 4px solid var(--gris-medio);
}

.sponsor-logo-new {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    filter: grayscale(20%) opacity(0.9);
}

.sponsor-card:hover .sponsor-logo-new {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* Logos mÃ¡s grandes para patrocinadores principales */
.main-sponsors .sponsor-logo-new {
    height: 140px;
}

.sponsor-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--negro);
    margin-bottom: 0.5rem;
}

.sponsor-description {
    font-size: 0.9rem;
    color: var(--gris-medio);
    line-height: 1.4;
}

/* Badges especiales */
.sponsor-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--rojo);
    color: var(--blanco);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-sponsors .sponsor-badge {
    background: linear-gradient(45deg, var(--rojo), var(--rojo-oscuro));
}

.institutional .sponsor-badge {
    background: var(--negro);
}

/* SecciÃ³n de redes sociales NUEVA */
.social-section-new {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: var(--blanco);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.social-title-new {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--negro);
    margin-bottom: 1.5rem;
}

.social-links-new {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link-new {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--rojo), var(--rojo-oscuro));
    color: var(--blanco);
    border-radius: 50%;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link-new::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.social-link-new:hover::before {
    width: 100%;
    height: 100%;
}

.social-link-new:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 30px rgba(230, 57, 70, 0.4);
}

/* Timeline Section */
.timeline-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--rojo), transparent);
    transform: translateX(-50%);
}

.timeline-header {
    text-align: center;
    margin-bottom: 80px;
}

.timeline-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--negro);
    margin-bottom: 1rem;
    position: relative;
}

.timeline-header p {
    font-size: 1.2rem;
    color: #666;
}

.timeline-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.timeline-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-card:nth-child(even) {
    direction: rtl;
}

.timeline-card:nth-child(even) .timeline-content {
    direction: ltr;
    text-align: left;
}

.timeline-year {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--rojo);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.3);
}

.timeline-content {
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
    direction: ltr;
}

.timeline-content:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(230, 57, 70, 0.2);
}

.timeline-content h3 {
    font-size: 1.8rem;
    color: var(--negro);
    margin-bottom: 15px;
    font-weight: 700;
}

.timeline-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.timeline-stats {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-item .number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--rojo);
    display: block;
}

.stat-item .label {
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 350px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.timeline-image:hover img {
    transform: scale(1.1);
}

/* Contacto */
#contacto {
    background-color: var(--negro);
    color: white;
}

#contacto .section-title {
    color: var(--blanco);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border-radius: 4px;
    border: none;
    width: 100%;
}

.contact-form button {
    border: none;
    cursor: pointer;
}

/* Footer mejorado */
footer {
    background: linear-gradient(135deg, var(--rojo), var(--negro));
    color: white;
    padding: 3rem 0 0;
    margin-top: 4rem;
}

/* Footer Content */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding: 0 0 3rem 0;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-size: 1.2rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--blanco);
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.3rem 0;
}

.footer-links a:hover {
    color: var(--blanco);
    transform: translateX(5px);
}

.footer-links a i {
    width: 16px;
    text-align: center;
    opacity: 0.7;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    margin-top: 0.2rem;
    color: var(--blanco);
    font-size: 1rem;
    width: 20px;
}

.contact-item div strong {
    display: block;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.contact-item div span {
    opacity: 0.9;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Footer Social */
.footer-social {
    margin-top: 2rem;
}

.footer-social h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--blanco);
}

.footer-social .social-links {
    display: flex;
    gap: 1rem;
}

.footer-social .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--blanco);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.footer-social .social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Footer Bottom - COMPLETA Y RESPONSIVE */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.footer-bottom .container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-bottom-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.copyright {
    justify-self: start;
}

.copyright p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    justify-self: center;
}

.legal-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: var(--blanco);
}

.separator {
    opacity: 0.5;
}

.footer-badge {
    justify-self: end;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.badge i {
    color: #ff6b6b;
}

/* ===================================================
   RESPONSIVE DESIGN - MEJORAS CRÍTICAS PARA TIMELINE
   =================================================== */

/* Desktop y Laptop grandes */
@media (max-width: 1200px) {
    .container {
        width: 98%;
    }

    nav.desktop-menu a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    nav.desktop-menu ul {
        gap: 1rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo img {
        height: 40px;
    }

    /* Timeline ajustes */
    .timeline-section {
        padding: 80px 0;
    }

    .timeline-header h2 {
        font-size: 2.8rem;
    }

    .timeline-grid {
        gap: 50px;
    }

    /* Responsive para Patrocinadores */
    .sponsors-grid-new.main-sponsors {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .category-title::before,
    .category-title::after {
        width: 60px;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    nav.desktop-menu a {
        font-size: 0.85rem;
        padding: 0.4rem 0.7rem;
    }

    nav.desktop-menu ul {
        gap: 0.8rem;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    /* Timeline mejoras tablet */
    .timeline-section {
        padding: 60px 0;
    }

    .timeline-header h2 {
        font-size: 2.5rem;
    }

    .timeline-grid {
        gap: 50px;
    }

    .timeline-card {
        gap: 30px;
    }

    .timeline-year {
        width: 70px;
        height: 70px;
        font-size: 1.3rem;
    }

    .timeline-content {
        padding: 25px;
    }

    .timeline-image {
        height: 300px;
    }
}

/* CORRECCIÓN CRÍTICA PARA MÓVIL - EVITAR SUPERPOSICIÓN DEL HEADER */
@media (max-width: 768px) {

    /* Ocultar redes sociales en móvil */
    .header-social {
        display: none;
    }

    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-menu-btn {
        display: block;
    }

    nav.desktop-menu {
        display: none;
    }

    .logo-text {
        display: inline;
        font-size: 1.3rem;
    }

    /* CORRECCIÓN DEL HEADER FIJO EN MÓVIL */
    header {
        height: 70px;
        display: flex;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .header-content {
        height: 100%;
        align-items: center;
    }

    /* CORRECCIÓN DEL HERO PARA EVITAR SUPERPOSICIÓN */
    .hero {
        height: calc(60vh - 70px);
        /* Resta la altura del header */
        padding-top: 60px;
        /* Añade espacio superior adicional */
        min-height: 350px;
        /* Altura mínima para pantallas muy pequeñas */
    }

    .hero-content {
        margin: 0 auto;
        padding: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
        margin-top: 0;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .dropdown:hover .dropdown-menu {
        display: none !important;
    }

    /* ===== TIMELINE RESPONSIVE CRÍTICO ===== */
    .timeline-section {
        padding: 40px 0;
    }

    .timeline-section::before {
        left: 20px;
        width: 3px;
    }

    .timeline-header {
        margin-bottom: 40px;
        padding: 0 20px;
    }

    .timeline-header h2 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .timeline-header p {
        font-size: 1rem;
        margin-top: 10px;
    }

    .timeline-grid {
        padding: 0 15px;
        gap: 40px;
        max-width: none;
    }

    /* Cambiar a layout de una sola columna */
    .timeline-card {
        grid-template-columns: 1fr;
        gap: 20px;
        direction: ltr !important;
        padding-left: 50px;
        position: relative;
    }

    .timeline-card:nth-child(even) {
        direction: ltr !important;
        padding-left: 50px;
    }

    /* Reposicionar el año */
    .timeline-year {
        left: 20px;
        top: 20px;
        transform: translateX(-50%);
        width: 50px;
        height: 50px;
        font-size: 1rem;
        font-weight: 700;
        position: absolute;
        z-index: 10;
    }

    /* Ajustar contenido */
    .timeline-content {
        margin-left: 0;
        padding: 20px;
        direction: ltr;
        text-align: left;
    }

    .timeline-content h3 {
        font-size: 1.4rem;
        margin-bottom: 10px;
        margin-top: 10px;
    }

    .timeline-content p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    /* Ajustar imagen */
    .timeline-image {
        margin-left: 0;
        height: 200px;
        order: -1;
        /* Poner imagen antes del contenido */
    }

    /* Estadísticas más compactas */
    .timeline-stats {
        flex-direction: row;
        gap: 15px;
        padding-top: 15px;
    }

    .stat-item .number {
        font-size: 1.2rem;
    }

    .stat-item .label {
        font-size: 0.75rem;
    }

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

    .card:nth-child(3)::after {
        display: none;
    }

    /* Footer responsive mejorado */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 0 2rem 0;
    }

    .footer-bottom-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .copyright {
        justify-self: center;
        order: 1;
    }

    .footer-legal {
        justify-self: center;
        flex-wrap: wrap;
        justify-content: center;
        order: 2;
    }

    .footer-badge {
        justify-self: center;
        order: 3;
    }

    .footer-legal .separator {
        margin: 0 0.5rem;
    }

    /* Responsive Design para Patrocinadores NUEVOS */
    .sponsors-section {
        padding: 4rem 0;
    }

    .section-header .section-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }

    .category-title {
        font-size: 1.4rem;
        padding: 0.4rem 1.5rem;
        letter-spacing: 1px;
    }

    .category-title::before,
    .category-title::after {
        display: none;
    }

    .sponsors-grid-new.main-sponsors,
    .sponsors-grid-new.institutional,
    .sponsors-grid-new.collaborators,
    .sponsors-grid-new.equipment {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .sponsor-card {
        padding: 2rem 1.5rem;
    }

    .sponsor-logo-new {
        height: 100px;
    }

    .main-sponsors .sponsor-logo-new {
        height: 120px;
    }

    .social-links-new {
        gap: 1rem;
    }

    .social-link-new {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Móviles muy pequeños */
@media (max-width: 480px) {

    /* CORRECCIÓN ADICIONAL PARA MÓVILES MUY PEQUEÑOS */
    header {
        height: 75px;
    }

    .hero {
        height: calc(50vh - 75px);
        padding-top: 30px;
        min-height: 350px;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-top: 0.5rem;
    }

    /* Timeline para móviles muy pequeños */
    .timeline-section {
        padding: 30px 0;
    }

    .timeline-section::before {
        left: 15px;
    }

    .timeline-header {
        padding: 0 15px;
        margin-bottom: 30px;
    }

    .timeline-header h2 {
        font-size: 1.6rem;
    }

    .timeline-grid {
        padding: 0 10px;
        gap: 30px;
    }

    .timeline-card {
        padding-left: 45px;
    }

    .timeline-year {
        left: 15px;
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }

    .timeline-content {
        padding: 15px;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .timeline-content p {
        font-size: 0.85rem;
    }

    .timeline-image {
        height: 180px;
    }

    .timeline-stats {
        gap: 10px;
    }

    .stat-item .number {
        font-size: 1rem;
    }

    .stat-item .label {
        font-size: 0.7rem;
    }

    /* Otros ajustes para móviles pequeños */
    .section-header .section-title {
        font-size: 2rem;
    }

    .category-title {
        font-size: 1.2rem;
    }

    .sponsor-card {
        padding: 1.5rem 1rem;
    }

    .sponsor-logo-new {
        height: 80px;
    }

    .main-sponsors .sponsor-logo-new {
        height: 100px;
    }
}