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

:root {
    --primary-blue: #0a2463;
    --secondary-blue: #1e56a0;
    --gold: #ffd700;
    --dark-gold: #d4af37;
    --green: #16a34a;
    --dark-green: #047857;
}

body {
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.font-oswald {
    font-family: "Oswald", sans-serif;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-blue);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 5px;
}

/* Progress Bar */
.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, #ffa500 100%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    transition: width 0.3s ease;
    width: 0;
}

/* Top Bar */
.top-bar {
    /* fondo sólido para la barra superior: más limpio y consistente */
    background: var(--primary-blue);
    color: white;
    padding: 8px 0;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(2, 6, 23, 0.06);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--gold);
}

/* Top-bar pills and improved layout */
.top-bar-content .top-left,
.top-bar-content .top-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: white;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.16s ease, transform 0.16s ease,
        box-shadow 0.16s ease;
}

.top-pill svg {
    display: inline-block;
    color: white;
    opacity: 0.95;
}

.top-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.12);
}

.top-bar-content .sep {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 6px;
}

.top-right .social-icons {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-left: 10px;
}
.social-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: white;
    transition: transform 0.14s ease, background 0.14s ease;
}
.social-icon svg {
    width: 16px;
    height: 16px;
}
/* images inside social icons (e.g. TikTok multi-color mark) */
.social-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
    /* ensure images don't overflow their circular container */
    max-width: 70%;
    max-height: 70%;
}
.social-icon:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
}

.top-pill.whatsapp {
    background: linear-gradient(90deg, #25d366, #128c7e);
    color: white;
}
.top-pill.whatsapp:hover {
    filter: brightness(1.03);
}

.top-pill.phone {
    background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 560px) {
    .top-right .phone-text {
        display: none;
    }
    .top-right .contact-text {
        display: none;
    }
    .top-right .whatsapp-text {
        display: none;
    }
}

@media (max-width: 720px) {
    .top-bar-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .top-bar-content .top-right {
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }
    .top-pill {
        font-size: 13px;
        padding: 6px 10px;
    }
}

/* Navigation */
nav {
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-section:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.logo {
    /* aumentar ligeramente el logotipo para dar más presencia en el nav */
    width: 56px;
    height: 56px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: auto;
    max-height: 56px;
    object-fit: contain;
    display: block;
}

.logo-section:hover .logo {
    transform: scale(1.05);
}

.logo-text h1 {
    font-family: "Oswald", sans-serif;
    /* ligeramente mayor para dar presencia en el nav y igualar apariencia del index */
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin: 0 0 4px 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text p {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--gold);
}

.nav-menu a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

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

.btn-primary {
    background: linear-gradient(90deg, var(--gold) 0%, #ffa500 100%);
    color: var(--primary-blue);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.5);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--primary-blue);
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--primary-blue);
    z-index: 9999;
    transition: left 0.3s;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-header h2 {
    color: white;
    font-weight: 700;
}

.mobile-close {
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

.mobile-menu-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.mobile-menu-list a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    transition: color 0.3s;
}

.mobile-menu-list a:hover {
    color: var(--gold);
}

/* Hero Section */
.hero {
    /* Usar imagen hero en lugar del degradado visual */
    background-image: url("/img/banner2.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 80px 20px 60px;
}

.hero::before {
    /* sutil patrón animado sobre la imagen para dar dinamismo */
    content: "";
    position: absolute;
    inset: -10% -10% -10% -10%;
    background: radial-gradient(
        circle,
        rgba(255, 215, 0, 0.06) 1px,
        transparent 1px
    );
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
    z-index: 1;
}

.hero::after {
    /* overlay oscuro para asegurar legibilidad del texto sobre la imagen */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(3, 37, 65, 0.32) 0%,
        rgba(3, 37, 65, 0.42) 100%
    );
    z-index: 2;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.hero-content {
    position: relative;
    z-index: 3; /* por encima del overlay y del patrón */
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gold) 0%, #ffa500 100%);
    color: var(--primary-blue);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 24px;
    animation: pulse 2s infinite;
    font-size: 14px;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.hero h1 {
    font-family: "Oswald", sans-serif;
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 16px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    line-height: 1.1;
}

.hero h2 {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 12px;
}

.hero p {
    font-size: 17px;
    max-width: 700px;
    margin: 0 auto 32px;
    opacity: 0.9;
    line-height: 1.6;
}

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

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    line-height: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 48px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.stat-box {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 24px 20px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-box:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 42px;
    font-weight: 900;
    font-family: "Oswald", sans-serif;
    background: linear-gradient(135deg, var(--gold) 0%, #ffa500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.95;
    font-weight: 600;
}

/* Section Common Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    color: var(--gold);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title {
    font-family: "Oswald", sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 15px 0;
}

.section-subtitle {
    font-size: 20px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gold) 0%, #ffa500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-blue);
    font-size: 24px;
    margin-bottom: 15px;
}

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

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.value-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
}

.value-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.value-icon.gold {
    background: linear-gradient(135deg, var(--gold) 0%, #ffa500 100%);
}

.value-icon.blue {
    background: linear-gradient(
        135deg,
        var(--primary-blue) 0%,
        var(--secondary-blue) 100%
    );
}

.value-icon.green {
    background: linear-gradient(
        135deg,
        var(--green) 0%,
        var(--dark-green) 100%
    );
}

.value-icon.red {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.value-text h4 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 3px;
}

.value-text p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.about-image {
    position: relative;
}

.about-image-box {
    aspect-ratio: 4/5;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.about-image-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.about-image-box > div {
    position: relative;
    z-index: 2;
}

.about-image-content {
    font-size: 80px;
    margin-bottom: 20px;
}

.about-image-box h3 {
    font-family: "Oswald", sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Academia Section */
.dark-section {
    background: linear-gradient(135deg, #111827 0%, var(--primary-blue) 100%);
    color: white;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.program-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.program-card:hover {
    transform: translateY(-10px);
}

.program-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.program-card h3 {
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 10px;
}

.program-age {
    color: #d1d5db;
    margin-bottom: 15px;
}

.program-desc {
    font-size: 14px;
    color: #d1d5db;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.feature-icon {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-top: 0;
}

.feature-text {
    flex: 1;
}

.feature-text h4 {
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.feature-text p {
    font-size: 14px;
    color: #d1d5db;
    margin: 0;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.player-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
}

.player-card:hover {
    transform: translateY(-10px);
}

.player-image {
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 30px;
}

.player-image.blue {
    background: linear-gradient(
        135deg,
        var(--primary-blue) 0%,
        var(--secondary-blue) 100%
    );
}

.player-image.green {
    background: linear-gradient(
        135deg,
        var(--green) 0%,
        var(--dark-green) 100%
    );
}

.player-image.gold {
    background: linear-gradient(135deg, var(--gold) 0%, #ffa500 100%);
    color: var(--primary-blue);
}

.player-image.red {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.player-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        transparent 100%
    );
    padding: 30px 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.player-card:hover .player-info {
    transform: translateY(0);
}

.player-info h4 {
    color: white;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 5px;
}

.player-info p {
    color: var(--gold);
    font-size: 14px;
    margin: 0;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.staff-card {
    text-align: center;
}

.staff-avatar {
    width: 130px;
    height: 130px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.staff-card h4 {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 5px;
}

.staff-role {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.staff-cert {
    font-size: 12px;
    color: #999;
}

/* Layout tweak: en pantallas anchas mostrar 4 tarjetas en una sola fila */
@media (min-width: 1200px) {
    .staff-grid {
        max-width: 1400px;
        grid-template-columns: repeat(4, 1fr);
        gap: 48px;
    }
    .staff-avatar {
        width: 140px;
        height: 140px;
        font-size: 54px;
        box-shadow: 0 18px 40px rgba(6, 30, 59, 0.08);
    }
    .staff-card {
        padding: 18px 8px;
    }
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.news-featured {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.news-featured-image {
    aspect-ratio: 16/9;
    background: linear-gradient(
        135deg,
        var(--primary-blue) 0%,
        var(--secondary-blue) 50%,
        var(--green) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.news-featured-content {
    font-size: 80px;
    margin-bottom: 20px;
}

.news-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        transparent 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.3s;
}

.news-featured:hover .news-overlay {
    opacity: 1;
}

.news-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--primary-blue);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
}

.news-overlay h3 {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.news-overlay p {
    color: #d1d5db;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    gap: 20px;
    color: #9ca3af;
    font-size: 14px;
}

.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.news-card-content {
    padding: 25px;
}

.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 10px;
}

.category-badge.green {
    background: #d1fae5;
    color: #047857;
}

.category-badge.blue {
    background: #dbeafe;
    color: #1e40af;
}

.news-card-content h4 {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
}

.news-card-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}

.news-date {
    color: #999;
    font-size: 12px;
}

/* Sponsors */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.sponsor-box {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: background 0.3s;
}

.sponsor-box:hover {
    background: #e9ecef;
}

.sponsor-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.sponsor-name {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 36px 28px;
    border-radius: 18px;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.contact-icon {
    width: 76px;
    height: 76px;
    background: linear-gradient(
        180deg,
        rgba(255, 215, 0, 0.98),
        rgba(255, 200, 0, 0.95)
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.18);
}

.contact-icon img {
    width: 36px;
    height: 36px;
    display: block;
}

.contact-card h4 {
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-card p {
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.4;
    /* allow long emails/URLs to wrap nicely */
    overflow-wrap: anywhere;
    word-break: break-word;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

/* Base style for social links: flexible so it supports icon-only or label+icon variants */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    color: inherit;
    text-decoration: none;
}

/* Small circular icon-only variant (use where only the icon is shown) */
.social-link.icon-only {
    padding: 8px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.social-link.icon-only img {
    width: 22px;
    height: 22px;
    display: block;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 30px rgba(2, 6, 23, 0.28);
}

.contact-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 900px) {
    .contact-card {
        padding: 28px 18px;
    }
    .contact-icon {
        width: 64px;
        height: 64px;
    }
    .contact-icon img {
        width: 30px;
        height: 30px;
    }
}

/* Footer / labeled variant: rectangular pill with label next to icon */
footer .social-link {
    border-radius: 8px;
    background: transparent;
    padding: 8px 12px;
    min-height: 36px;
    color: #ffffff;
    font-weight: 600;
    font-size: 20px;
}

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

/* Footer specific icon sizing to keep pill layout balanced */
footer .social-link img {
    width: 20px;
    height: 20px;
    display: inline-block;
}

/* Footer social block: title + horizontal icon-only logos */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

/* Title for the footer social section */
.footer-social .title {
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    margin: 0;
}

/* When using icon-only inside footer, show circular background and center the icons */
footer .social-links {
    margin-top: 0;
    gap: 18px;
}

footer .social-link.icon-only {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

footer .social-link.icon-only img {
    width: 28px;
    height: 28px;
}

.footer-social-note {
    color: #9ca3af;
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
    max-width: 200px;
}

/* Specific footer column for social icons: center title and icons */
.footer-social-section {
    display: flex;
    flex-direction: column;
    align-items: center; /* center title and icons horizontally */
}

.footer-social-section .social-title {
    margin: 0 0 8px 0;
    text-align: center;
    width: 100%;
}

.footer-social-section .social-links {
    justify-content: center;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

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

.cta-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 20px;
}

.cta-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.cta-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-card p {
    color: #d1d5db;
    margin-bottom: 25px;
}

/* Footer */
footer {
    background: #111827;
    color: white;
    padding: 60px 0 30px;
    position: relative; /* permite usar pseudo-elemento que oculte líneas finas arriba */
}

/* Cubrir cualquier línea fina que aparezca justo encima del footer (solución visual no invasiva) */
footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px; /* suficiente para cubrir líneas de 1px en pantallas con subpixel */
    background: #111827;
    pointer-events: none;
    z-index: 5;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold) 0%, #ffa500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.footer-brand-text h3 {
    font-family: "Oswald", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.footer-brand-text p {
    font-size: 11px;
    color: #9ca3af;
}

.footer-section h4 {
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-contact a:hover {
    color: var(--gold) !important;
}

.footer-schedule {
    color: #9ca3af;
    font-size: 14px;
    line-height: 2;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid #374151;
    background: #1f2937;
    color: white;
    font-size: 14px;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--gold);
}

.newsletter-form button {
    background: linear-gradient(90deg, var(--gold) 0%, #ffa500 100%);
    color: var(--primary-blue);
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s;
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

.footer-bottom {
    /* Eliminar la línea visible debajo del footer; usar none !important para sobreescribir reglas conflictivas */
    border-top: none !important;
    box-shadow: none; /* asegurar que no haya sombras que parezcan líneas */
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

.footer-bottom-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--gold);
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar {
        font-size: 12px;
        padding: 6px 0;
    }

    .top-bar-content {
        gap: 6px;
        font-size: 11px;
    }

    .nav-content {
        padding: 12px 0;
    }

    .logo {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .logo-text h1 {
        font-size: 20px;
    }

    .logo-text p {
        font-size: 10px;
    }

    .nav-menu {
        display: none;
    }

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

    .hero h1 {
        font-size: 42px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 40px;
    }

    .stat-box {
        padding: 20px 16px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-label {
        font-size: 12px;
    }

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

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

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

    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

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

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

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        font-size: 10px;
        padding: 4px 0;
    }

    .top-bar-content {
        justify-content: center;
        text-align: center;
    }

    .logo {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .logo-text h1 {
        font-size: 18px;
    }

    .logo-text p {
        font-size: 9px;
    }

    .mobile-menu-btn {
        font-size: 28px;
    }

    .hero {
        min-height: 100vh;
        padding: 60px 20px 40px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero h2 {
        font-size: 20px;
    }

    .hero p {
        font-size: 15px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 32px;
    }

    .stat-box {
        padding: 20px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-label {
        font-size: 11px;
    }
}

/* ===== ADICIONES PARA NAV / MOBILE MENU / PROGRESS BAR ===== */

/* Evitar scroll en body cuando el menú móvil está abierto */
.no-scroll {
    overflow: hidden !important;
}

/* Mobile menu positioning */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--primary-blue);
    z-index: 99999;
    transition: left 0.28s cubic-bezier(0.2, 0.9, 0.2, 1);
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
}
.mobile-menu.active {
    left: 0;
}

/* Overlay detrás del menú móvil */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.6);
    z-index: 99990;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.mobile-menu-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Accessibility focus ring */
:focus {
    outline: 3px solid rgba(255, 215, 0, 0.25);
    outline-offset: 3px;
}

/* Progress bar */
.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, #ffa500 100%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000;
    transition: width 0.18s ease;
    width: 0%;
}

/* Ensure mobile menu buttons visible on top of everything */
.mobile-menu-btn,
.mobile-close {
    z-index: 100001;
}

/* Small polish: prevent background jump on opening menu */
html.no-scroll {
    height: 100%;
}

/* keep top-bar visually consistent (if needed) */
.top-bar {
    background: var(--primary-blue);
    color: white;
}
