/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    padding-top: 0;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

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

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

.nav-menu a:hover,
.nav-menu a.active {
    color: #0066cc;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    z-index: 1;
    top: 100%;
    left: 0;
    padding: 10px 0;
    margin-top: 5px;
}

.dropdown-content a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.btn-member {
    background: #0066cc;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.btn-member:hover {
    background: #0052a3;
    color: white;
    text-decoration: none;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1500;
    padding: 100px 20px 20px;
}

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

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 1500;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

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

.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.mobile-menu-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Navegación móvil */
.mobile-nav {
    padding: 60px 0 30px 0;
    display: flex;
    flex-direction: column;
}

.mobile-nav>a {
    padding: 15px 25px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.mobile-nav>a:hover,
.mobile-nav>a.active {
    background: #f8f9fa;
    color: #0066cc;
    padding-left: 35px;
}

/* Dropdown móvil mejorado */
.mobile-dropdown {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-dropdown-toggle {
    width: 100%;
    padding: 15px 25px;
    background: none;
    border: none;
    text-align: left;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.mobile-dropdown-toggle:hover {
    background: #f8f9fa;
    color: #0066cc;
    padding-left: 35px;
}

.mobile-dropdown-toggle span {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: #666;
}

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

/* Contenido del dropdown móvil */
.mobile-dropdown-content {
    display: none;
    background: #f8f9fa;
    animation: slideDown 0.3s ease;
}

.mobile-dropdown-content.show,
.mobile-dropdown-content[style*="block"] {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-dropdown-content a {
    display: block;
    padding: 12px 25px 12px 45px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.mobile-dropdown-content a:last-child {
    border-bottom: none;
}

.mobile-dropdown-content a:hover,
.mobile-dropdown-content a.active {
    background: #e9ecef;
    color: #0066cc;
    padding-left: 55px;
}

/* Indicador visual para subelementos */
.mobile-dropdown-content a::before {
    content: '→';
    position: absolute;
    left: 25px;
    color: #999;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.mobile-dropdown-content a:hover::before {
    color: #0066cc;
    left: 35px;
}

/* Botón del menú móvil principal */
.mobile-btn-member {
    margin: 20px 25px;
    padding: 12px 20px;
    background: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
    display: block;
}

.mobile-btn-member:hover {
    background: #0052a3;
    transform: translateY(-1px);
}

/* Información de usuario móvil mejorada */
.mobile-user-info {
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    margin-top: 10px;
    background: #f8f9fa;
}

.mobile-user-info span {
    display: block;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.mobile-btn-logout {
    background: #dc3545 !important;
    width: 100%;
    margin: 0;
    padding: 12px;
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-btn-logout:hover {
    background: #c82333 !important;
    transform: translateY(-1px);
}

/* Overlay para cerrar menú */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1400;
    display: none;
}

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

/* Mejoras responsive */
@media (max-width: 480px) {
    .mobile-menu {
        width: 100%;
        right: -100%;
    }

    .mobile-nav>a,
    .mobile-dropdown-toggle {
        padding: 18px 20px;
    }

    .mobile-dropdown-content a {
        padding: 15px 20px 15px 40px;
    }

    .mobile-btn-member {
        margin: 20px;
    }
}

/* Animación suave para el toggle del menú */
@media (prefers-reduced-motion: no-preference) {
    .mobile-dropdown-content {
        transition: all 0.3s ease;
    }

    /* ===== HERO SECTION ===== */
    .hero {
        position: relative;
        top: 0;
        height: 60vh;
        background-image: url('../images/golf-course-bg.jpg');
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: white;
    }

    .hero-content {
        position: relative;
        z-index: 1;
        max-width: 800px;
        padding: 0 20px;
        margin-top: 60px;
    }

    .hero h1 {
        font-family: 'Gulzar';
        font-size: 36px;
        margin-bottom: 10px;
        line-height: 1.2;
        font-weight: 400;
    }

    /* ===== BUTTONS ===== */
    .btn-primary {
        background: #0066cc;
        color: white;
        padding: 12px 30px;
        border-radius: 5px;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-top: 15px;
        transition: all 0.3s;
    }

    .btn-primary:hover {
        background: #0052a3;
        transform: translateY(-2px);
        color: white;
        text-decoration: none;
    }

    .btn-secondary {
        background: #e6f2ff;
        color: #0066cc;
        padding: 10px 25px;
        border-radius: 5px;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: all 0.3s;
    }

    .btn-secondary:hover {
        background: #0066cc;
        color: white;
        text-decoration: none;
    }

    /* ===== SERVICES SECTION ===== */
    .services {
        padding: 40px 0;
        max-width: 1200px;
        margin: 0 auto;
        width: 90%;
    }

    .services h2 {
        font-size: 30px;
        margin-bottom: 40px;
        text-align: left;
    }

    .services-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
        gap: 40px;
    }

    .service-card {
        background: white;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s;
    }

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

    .service-card img {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }

    .service-card-content {
        padding: 30px;
    }

    .service-card h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .service-card p {
        color: #666;
        margin-bottom: 20px;
    }

    /* ===== INFO SECTION ===== */
    .info-section {
        padding: 40px 0;
        display: flex;
        justify-content: center;
    }

    .info-content {
        max-width: 1200px;
        width: 90%;
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        color: white;
        padding: 80px 40px;
        border-radius: 5px;
        text-align: center;
    }

    .info-section h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .info-section p {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

    /* ===== LOGIN MODAL ===== */
    .login-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 2000;
    }

    .login-modal.active {
        display: flex;
    }

    .login-form {
        background: white;
        padding: 40px;
        border-radius: 20px;
        max-width: 400px;
        width: 90%;
    }

    .login-form h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
        text-align: center;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
    }

    .form-group input {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 8px;
        font-size: 1rem;
    }

    .form-link {
        text-align: right;
        margin-bottom: 20px;
    }

    .form-link a {
        color: #0066cc;
        text-decoration: none;
        font-size: 0.9rem;
    }

    .form-checkbox {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
        font-size: 0.9rem;
    }

    .btn-login {
        width: 100%;
        background: #0066cc;
        color: white;
        padding: 12px;
        border: none;
        border-radius: 25px;
        font-size: 1.1rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        transition: background 0.3s;
    }

    .btn-login:hover {
        background: #0052a3;
    }

    /* ===== FOOTER ===== */
    .footer {
        background: #1a2332;
        color: white;
        padding: 60px 0 30px;
    }

    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
        width: 90%;
        display: grid;
        grid-template-columns: auto 1fr 1fr 1fr;
        gap: 40px;
        align-items: flex-start;
        margin-bottom: 40px;
    }

    .footer-logo {
        display: flex;
        align-items: center;
    }

    .footer-logo img {
        width: 70px;
        height: 70px;
    }

    .footer-section {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-section h4 {
        font-size: 1.2rem;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .footer-section p {
        line-height: 1.8;
        color: #ccc;
    }

    .footer-section a {
        color: #ccc;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .footer-section a:hover {
        color: white;
    }

    .footer-bottom {
        text-align: center;
        padding-top: 30px;
        border-top: 1px solid #334155;
        color: #888;
        max-width: 1200px;
        margin: 0 auto;
        width: 90%;
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 768px) {
        .header {
            width: 95%;
            padding: 10px 15px;
        }

        .nav-menu {
            display: none;
        }

        .btn-member {
            display: none;
        }

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

        .hero {
            height: 75vh;
            max-height: 700px;
            margin-top: 10px;
        }

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

        .services {
            padding: 80px 20px;
            width: 100%;
        }

        .info-section {
            padding: 80px 20px;
        }

        .info-content {
            width: 100%;
        }

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

        .footer {
            padding: 60px 20px 30px;
        }

        .footer-content,
        .footer-bottom {
            width: 100%;
        }

        .footer-content {
            grid-template-columns: 1fr;
            text-align: center;
            gap: 30px;
        }

        .footer-logo {
            justify-content: center;
            margin-bottom: 20px;
        }

        .footer-section {
            align-items: center;
            text-align: center;
        }

        .footer-section h4 {
            justify-content: center;
        }
    }

    /* ===== RESPONSIVE PARA TABLETS ===== */
    @media (max-width: 1024px) and (min-width: 769px) {
        .footer-content {
            grid-template-columns: auto 1fr 1fr;
            gap: 30px;
        }
    }

    /* ===== RESPONSIVE PARA MÓVILES MUY PEQUEÑOS ===== */
    @media (max-width: 480px) {
        .footer {
            padding: 40px 15px 20px;
        }

        .footer-logo img {
            width: 60px;
            height: 60px;
        }

        .footer-section h4 {
            font-size: 1.1rem;
            margin-bottom: 15px;
        }

        .footer-section p {
            font-size: 0.9rem;
        }
    }

    /* Estilo para menú activo - azul y negrilla como en la imagen */
    .nav-menu a.active,
    .mobile-nav a.active,
    .dropdown a.active {
        font-weight: bold !important;
        color: #0066cc !important;
        /* Azul como en la imagen */
    }
}