/* Variables */
:root {
    --primary-color: #1A2C4D;
    --accent-color: #FFC107;
    --light-color: #F8F8F8;
    --text-color: #333;
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

/* Header and Navigation */
header {
    background-color: var(--accent-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    height: 58px;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: #222b3a;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--light-color);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(26, 44, 77, 0.8), rgba(26, 44, 77, 0.8)),
        url('images/hero.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    margin-top: 70px;
}

.hero-content {
    color: var(--light-color);
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-logo {
    display: block;
    margin: 0 auto 2rem auto;
    max-width: 120px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

/* Deportes Section */
.deportes {
    padding: 5rem 1rem;
    background-color: var(--light-color);
}

.deportes h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.deportes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.deporte-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.deporte-card:hover {
    transform: translateY(-5px);
}

.deporte-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Sobre Nosotros Section */
.nosotros {
    padding: 5rem 1rem;
    background-color: var(--primary-color);
    color: var(--light-color);
}

.nosotros h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.nosotros-content {
    max-width: 1200px;
    margin: 0 auto;
}

.valores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.valor {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
}

/* Contacto Section */
.contacto {
    padding: 5rem 1rem;
    background-color: var(--light-color);
}

.contacto h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.contacto-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contacto-form input,
.contacto-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.contacto-form textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.submit-button:hover {
    background-color: #e6ac00;
}

.contacto-content.solo-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 0;
}

.contacto-info {
    text-align: center;
}

.whatsapp-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 1.2rem 2.5rem;
    background-color: #25D366;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    transition: background 0.2s, transform 0.2s;
}

.whatsapp-btn i {
    margin-right: 0.7rem;
    font-size: 1.5rem;
    vertical-align: middle;
}

.whatsapp-btn:hover {
    background-color: #1ebe5d;
    transform: translateY(-2px) scale(1.04);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 2rem 1rem;
    text-align: center;
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--light-color);
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Galería Section */
.galeria {
    padding: 5rem 1rem;
    background-color: var(--light-color);
}

.galeria h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 1;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.galeria-item:hover img {
    transform: scale(1.05);
}

.galeria-item.video-item::after {
    content: '\f144';
    /* Font Awesome Play Icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--light-color);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: var(--transition);
}

.galeria-item.video-item:hover::after {
    color: var(--accent-color);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    cursor: pointer;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid var(--light-color);
    border-radius: 5px;
}

.lightbox video {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid var(--light-color);
    border-radius: 5px;
    outline: none;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--light-color);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close-lightbox:hover {
    color: var(--accent-color);
}

/* Responsive adjustments for gallery */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        right: 0;
        top: 70px;
        background-color: var(--primary-color);
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
    }

    .nav-links a {
        color: var(--light-color);
        margin: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .burger {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .galeria-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.deporte-card,
.valor {
    animation: fadeIn 0.5s ease-out;
}

/* Mobile Menu Animations */
.burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.toggle .line2 {
    opacity: 0;
}

.burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}