@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

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

body {
    font-family: 'Gotham', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background: #071928;
    color: #ffffff;
}

.gotham-medium {
    font-family: 'Gotham Medium', 'Segoe UI', sans-serif;
    font-weight: 500;
}

.gotham-bold {
    font-family: 'Gotham Bold', 'Segoe UI', sans-serif;
    font-weight: 700;
}

.bebas-neue {
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 1px;
}

.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #071928 0%, #0a1d32 50%, #071928 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(204, 166, 106, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(207, 155, 69, 0.15) 0%, transparent 50%);
    animation: float 20s infinite ease-in-out;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* NAVBAR MEJORADA PARA MÓVILES */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(7, 25, 40, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(204, 166, 106, 0.2);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    position: relative;
}

.logo {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
    z-index: 1001;
}

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

/* Menú hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #CCA66A;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    position: relative;
    font-size: 0.95rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(45deg, #CCA66A, #CF9B45);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: #CCA66A;
}

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

/* Contenedor de botones de login/registro */
.nav-spacer {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.cta-btn {
    background: linear-gradient(45deg, #CCA66A, #CF9B45);
    color: #071928;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(204, 166, 106, 0.3);
    font-size: 0.9rem;
    white-space: nowrap;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(204, 166, 106, 0.4);
    background: linear-gradient(45deg, #CF9B45, #CCA66A);
}

.hero-content {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #CCA66A, #CF9B45);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #b8c5d1;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.btn-secondary {
    background: transparent;
    color: #CCA66A;
    padding: 0.75rem 2rem;
    border: 2px solid #CCA66A;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: #CCA66A;
    color: #071928;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(204, 166, 106, 0.3);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(204, 166, 106, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(204, 166, 106, 0.2);
    transition: all 0.3s;
}

.stat:hover {
    border-color: #CCA66A;
    box-shadow: 0 5px 20px rgba(204, 166, 106, 0.2);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: bold;
    color: #CF9B45;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #b8c5d1;
    font-size: 0.9rem;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.field-container {
    width: 450px;
    height: 320px;
    background: linear-gradient(45deg, #228B22, #32CD32);
    border-radius: 25px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    animation: pulse 4s infinite ease-in-out;
    border: 3px solid #CCA66A;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotateY(0deg); }
    50% { transform: scale(1.02) rotateY(2deg); }
}

.field-lines {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 3px solid white;
    border-radius: 20px;
}

.field-lines::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 3px solid white;
    border-radius: 50%;
}

.field-lines::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: white;
}

.players {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.player {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #CF9B45;
    border-radius: 50%;
    border: 3px solid white;
    animation: playerMove 3s infinite ease-in-out;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.player:nth-child(1) { top: 50%; left: 0%; animation-delay: 0s; background: #071928; }
.player:nth-child(2) { top: 10%; left: 20%; animation-delay: 0s; }
.player:nth-child(3) { top: 30%; left: 15%; animation-delay: 0.5s; }
.player:nth-child(4) { top: 60%; left: 15%; animation-delay: 1s; }
.player:nth-child(5) { top: 80%; left: 20%; animation-delay: 1.5s; }
.player:nth-child(6) { top: 10%; right: 50%; animation-delay: 0s; background: #CCA66A; }
.player:nth-child(7) { top: 30%; right: 55%; animation-delay: 0.5s; background: #CCA66A; }
.player:nth-child(8) { top: 60%; right: 55%; animation-delay: 1s; background: #CCA66A; }
.player:nth-child(9) { top: 80%; right: 50%; animation-delay: 1.5s; background: #CCA66A; }
.player:nth-child(10) { top: 30%; right: 35%; animation-delay: 1s; background: #CF9B45; }
.player:nth-child(11) { top: 60%; right: 25%; animation-delay: 2s; background: #CF9B45; }

@keyframes playerMove {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.1); }
}

.master-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: auto;
    opacity: 0.8;
}

.features {
    padding: 6rem 0;
    background: linear-gradient(180deg, #071928 0%, #0a1d32 50%, #071928 100%);
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #CCA66A, #CF9B45);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #b8c5d1;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: rgba(204, 166, 106, 0.05);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(204, 166, 106, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(204, 166, 106, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(204, 166, 106, 0.2);
    border-color: #CCA66A;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #CF9B45;
    display: block;
}

.feature-title {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.feature-desc {
    color: #b8c5d1;
    line-height: 1.6;
}

.cta-section {
    padding: 6rem 0;
    background: linear-gradient(45deg, #0a1d32, #071928);
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23CCA66A" opacity="0.1"/></svg>');
    background-size: 50px 50px;
    animation: moveStars 20s linear infinite;
}

@keyframes moveStars {
    from { transform: translateX(0); }
    to { transform: translateX(50px); }
}

.cta-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.cta-subtitle {
    font-size: 1.3rem;
    color: #b8c5d1;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.footer {
    background: #050f1a;
    padding: 4rem 0 2rem;
    border-top: 2px solid #CCA66A;
}

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

.footer-section h3 {
    color: #CF9B45;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-transform: uppercase;
}

.footer-section p,
.footer-section a {
    color: #b8c5d1;
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #CCA66A;
}

.footer-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(204, 166, 106, 0.2);
    color: #b8c5d1;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(204, 166, 106, 0.2);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.4rem;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(204, 166, 106, 0.3), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    background: var(--gold);
    color: var(--primary-blue);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(204, 166, 106, 0.4);
    border-color: #d4b773;
}

/* Iconos SVG personalizados */
.social-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* MEDIA QUERIES MEJORADAS */

/* Tablets */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .field-container {
        width: 400px;
        height: 280px;
    }
}

/* Móviles grandes */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo {
        height: 50px;
    }
    
    /* Mostrar menú hamburguesa */
    .menu-toggle {
        display: flex;
    }
    
    /* Ocultar menú de navegación en móviles */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(7, 25, 40, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: left 0.3s ease;
        backdrop-filter: blur(10px);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        font-size: 1.5rem;
        color: #ffffff;
        text-decoration: none;
        padding: 1rem;
        border-radius: 10px;
        transition: all 0.3s;
    }
    
    .nav-links a:hover {
        background: rgba(204, 166, 106, 0.2);
        color: #CCA66A;
    }
    
    /* Botones de login/registro en móviles */
    .nav-spacer {
        gap: 0.5rem;
    }
    
    .nav-spacer .cta-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Hero section para móviles */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 1rem;
        margin-top: 80px;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .field-container {
        width: 300px;
        height: 220px;
        margin: 0 auto;
    }
    
    .master-logo {
        width: 40px;
        top: 15px;
        right: 15px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 300px;
        margin: 2rem auto 0;
    }
    
    .stat {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons .cta-btn,
    .hero-buttons .btn-secondary {
        width: 200px;
        text-align: center;
        padding: 0.8rem 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
    }

    .cta-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .cta-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .cta-section .cta-btn {
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .features {
        padding: 4rem 0;
    }
    
    .cta-section {
        padding: 4rem 0;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .nav-spacer .cta-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .field-container {
        width: 260px;
        height: 180px;
    }
    
    .player {
        width: 20px;
        height: 20px;
    }
    
    .hero-buttons .cta-btn,
    .hero-buttons .btn-secondary {
        width: 180px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .stats {
        max-width: 250px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

/* CORRECCIONES PARA JUGADORES EN LA CANCHA - MÓVILES */

/* Ajustar posiciones de jugadores para que se vean todos en móviles */
@media (max-width: 768px) {
    .player {
        width: 18px;
        height: 18px;
    }
    
    /* Reposicionar jugadores para cancha más pequeña */
    .player:nth-child(1) { top: 50%; left: 5%; }
    .player:nth-child(2) { top: 15%; left: 25%; }
    .player:nth-child(3) { top: 35%; left: 20%; }
    .player:nth-child(4) { top: 65%; left: 20%; }
    .player:nth-child(5) { top: 85%; left: 25%; }
    .player:nth-child(6) { top: 15%; left: 45%; }
    .player:nth-child(7) { top: 35%; left: 40%; }
    .player:nth-child(8) { top: 65%; left: 40%; }
    .player:nth-child(9) { top: 85%; left: 45%; }
    .player:nth-child(10) { top: 35%; left: 65%; }
    .player:nth-child(11) { top: 65%; left: 70%; }
}

@media (max-width: 480px) {
    .player {
        width: 16px;
        height: 16px;
        border: 2px solid white;
    }
    
    /* Ajustar aún más para pantallas muy pequeñas */
    .player:nth-child(1) { top: 50%; left: 8%; }
    .player:nth-child(2) { top: 18%; left: 28%; }
    .player:nth-child(3) { top: 38%; left: 23%; }
    .player:nth-child(4) { top: 62%; left: 23%; }
    .player:nth-child(5) { top: 82%; left: 28%; }
    .player:nth-child(6) { top: 18%; left: 48%; }
    .player:nth-child(7) { top: 38%; left: 43%; }
    .player:nth-child(8) { top: 62%; left: 43%; }
    .player:nth-child(9) { top: 82%; left: 48%; }
    .player:nth-child(10) { top: 38%; left: 68%; }
    .player:nth-child(11) { top: 62%; left: 73%; }
}

/* CORRECCIONES PARA EL FOOTER - MÓVILES */

/* Footer en tablets */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
    }
}

/* Footer en móviles */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }
    
    /* Primera sección con logo y texto al lado */
    .footer-section:first-child {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        grid-column: 1;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(204, 166, 106, 0.2);
    }
    
    .footer-logo {
        width: 80px;
        flex-shrink: 0;
        margin-bottom: 0;
    }
    
    .footer-section:first-child p {
        flex: 1;
        font-size: 0.9rem;
        line-height: 1.6;
        margin: 0;
    }
    
    /* Secciones Juego, Soporte y Legal centradas con texto a la izquierda */
    .footer-section:not(:first-child) {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        text-align: left;
        padding-left: 0;
        padding-right: 0;
    }
    
    .footer-section:not(:first-child) h3 {
        margin-bottom: 1rem;
        font-size: 1.1rem;
        padding-left: 0;
    }
    
    .footer-section:not(:first-child) p {
        margin-bottom: 0.5rem;
        padding-left: 0;
    }
    
    .footer-section:not(:first-child) p a {
        display: block;
        padding-left: 0;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.9rem;
    }
}

    /* Móviles pequeños */
@media (max-width: 480px) {
    .footer-section:first-child {
        flex-direction: row;
        gap: 0.8rem;
    }
    
    .footer-logo {
        width: 70px;
    }
    
    .footer-section:first-child p {
        font-size: 0.85rem;
    }
    
    .footer-section:not(:first-child) {
        width: 100%;
        max-width: 150px;
    }
    
    .footer-section:not(:first-child) h3 {
        font-size: 1rem;
    }
    
    .footer-section:not(:first-child) p {
        font-size: 0.9rem;
    }
}