:root {
    --rojo: #e63946;
    --rojo-oscuro: #c1121f;
    --negro: #0d0d0d;
    --blanco: #ffffff;
    --gris: #f1faee;
    --gris-claro: #f8f9fa;
    --gris-medio: #6c757d;
    --header-height: 77px;
}

* {
    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;
    overflow-x: hidden;
}

/* Prevent CLS for all images */
img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   HEADER - DISEÑO MODERNO HORIZONTAL
   ======================================== */
header {
    background: linear-gradient(135deg, var(--negro) 0%, #1a1a1a 50%, var(--negro) 100%);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid var(--rojo);
}

.container {
    width: 96%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Configuración del header horizontal */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    height: var(--header-height);
    padding: 0;
}

/* ========================================
   LOGO + NOMBRE DEL CLUB
   ======================================== */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 0;
}

.logo:hover {
    transform: scale(1.02);
}

.logo:hover,
.logo:focus,
.logo:visited,
.logo:active,
.logo:link {
    text-decoration: none !important;
    color: inherit !important;
}

.logo .logo-text {
    text-decoration: none !important;
    color: var(--blanco) !important;
}

.logo img {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px;
    min-height: 52px;
    max-width: 52px;
    max-height: 52px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(230, 57, 70, 0.4);
    transition: box-shadow 0.3s ease;
}

.logo:hover img {
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.5);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--blanco);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--rojo);
    transition: width 0.3s ease;
}

.logo:hover .logo-text::after {
    width: 100%;
}

/* ========================================
   MENÚ DE NAVEGACIÓN PRINCIPAL
   ======================================== */
nav.desktop-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 850px;
}

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

.header-social .social-links {
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.header-social .social-links a {
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none !important;
}

.header-social .social-links a:hover {
    transform: translateY(-3px) scale(1.1);
}

/* Facebook hover */
.header-social .social-links a[aria-label="Facebook"]:hover {
    background: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}

/* Instagram hover */
.header-social .social-links a[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(225, 48, 108, 0.4);
}

/* TikTok hover */
.header-social .social-links a[aria-label="TikTok"]:hover {
    background: #000;
    border-color: #69c9d0;
    box-shadow: 0 6px 20px rgba(105, 201, 208, 0.4);
}

.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: 0.2rem;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

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

nav.desktop-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.55rem 0.85rem;
    border-radius: 6px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

nav.desktop-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--rojo);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav.desktop-menu a:hover {
    color: var(--blanco);
    background: rgba(255, 255, 255, 0.08);
}

nav.desktop-menu a:hover::before {
    width: 80%;
}

/* 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.65rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

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

nav.desktop-menu .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: linear-gradient(145deg, #1a1a1a 0%, #252525 100%);
    min-width: 250px;
    border-radius: 12px;
    padding: 0.6rem 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.desktop-menu .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 8px solid #1a1a1a;
}

/* Crear un puente invisible para mantener el hover */
nav.desktop-menu .dropdown::after {
    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: translateX(-50%) translateY(0);
}

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

nav.desktop-menu .dropdown-menu a {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.7rem 1.2rem;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    border-left: 3px solid transparent;
}

nav.desktop-menu .dropdown-menu a::before {
    display: none;
}

nav.desktop-menu .dropdown-menu a:hover {
    background: rgba(230, 57, 70, 0.15);
    color: var(--blanco);
    padding-left: 1.4rem;
    border-left-color: var(--rojo);
}

/* 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: translateX(-50%) translateY(0);
}

/* ========================================
   SECCIÓN DERECHA - REDES + IDIOMA
   ======================================== */
.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.4rem;
    flex-shrink: 0;
    padding: 6px 0;
}

/* Menú Mobile */
.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--blanco);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    background: rgba(230, 57, 70, 0.2);
    border-color: var(--rojo);
}

nav.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(145deg, #0d0d0d 0%, #1a1a1a 100%);
    z-index: 999;
    padding: 1rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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.webp') 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;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    margin-top: 0.5rem;
    padding: 0.55rem 1.1rem;
    background: var(--rojo);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    text-decoration: none !important;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.25);
}

.card-cta i {
    font-size: 0.8rem;
    transition: transform 0.25s ease;
}

.card:hover .card-cta {
    background: var(--rojo-oscuro);
    box-shadow: 0 6px 16px rgba(230, 57, 70, 0.4);
}

.card:hover .card-cta i {
    transform: translateX(4px);
}

.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 V2 — Flipcard ajustada: logo + nombre + descripción.
   Proporciones consistentes para todos los logos (sin cortes).
   ============================================================ */
.sponsor-card--v2 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.85rem;
    padding: 1.5rem 1.5rem 1.75rem;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
    text-align: center;
}

.sponsor-card--v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rojo), var(--rojo-oscuro));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sponsor-card--v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(230, 57, 70, 0.12);
    border-color: rgba(230, 57, 70, 0.2);
}

.sponsor-card--v2:hover::before {
    transform: scaleX(1);
}

/* Contenedor del logo con tamaño fijo para que todas las cards alineen */
.sponsor-card--v2 .sponsor-card__logo-wrap {
    width: 100%;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.sponsor-card--v2 .sponsor-logo-new {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(35%);
    transition: filter 0.35s ease, transform 0.35s ease;
    margin: 0;
}

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

.sponsor-card--v2 .sponsor-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--negro);
    margin: 0;
    letter-spacing: 0.3px;
    line-height: 1.3;
    text-transform: uppercase;
}

.sponsor-card--v2 .sponsor-description {
    font-size: 0.85rem;
    color: var(--gris-medio);
    line-height: 1.4;
    margin: 0;
}

.main-sponsors .sponsor-card--v2 {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

@media (prefers-reduced-motion: reduce) {
    .sponsor-card--v2,
    .sponsor-card--v2:hover,
    .sponsor-card--v2 .sponsor-logo-new {
        transform: none;
        transition: none;
    }
}

.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;
    min-height: 120px;
    aspect-ratio: auto;
    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.95);
    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.9;
}

/* 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.95;
    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.95);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.separator {
    opacity: 0.7;
}

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

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

.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;
    }
}

/* MENÚ HAMBURGUESA - Aparece en pantallas medianas y pequeñas */
@media (max-width: 1100px) {

    /* Header adaptativo para móvil */
    header {
        height: var(--header-height);
        display: flex;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        padding: 0 0.5rem;
    }

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

    /* Selector de idioma más compacto en móvil */
    .header-right {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }

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

    nav.desktop-menu {
        display: none;
    }

    .logo-text {
        display: inline;
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .logo img {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px;
        min-height: 46px;
        max-width: 46px;
        max-height: 46px;
    }

    .logo {
        gap: 10px;
    }

    /* 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;
    }
}

/* ==========================================================================
   MARGEN LATERAL EN MÓVIL Y TABLET
   Por debajo de 1200px .container ocupa el 98% del ancho, lo que dejaba el
   texto a ~4px del borde de la pantalla en móvil. Aquí se garantiza un
   margen mínimo de 1rem (y respeta el notch del iPhone en horizontal).
   El header (.header-content) se excluye: tiene su propio ajuste.
   ========================================================================== */
@media (max-width: 1200px) {
    .container:not(.header-content) {
        width: 100%;
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        box-sizing: border-box;
    }
}
