/* --- VARIABLES GLOBALES --- */
:root {
    --color-fondo-oscuro: #111111;
    --color-texto-principal: #ffffff;
    --color-dorado: #C5B397;
    --fuente-titulos: 'Playfair Display', serif;
    --fuente-cuerpo: 'Inter', sans-serif;
    --ancho-menu-movil: 280px;
    /* Nuevo ancho premium para el menú */
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fuente-cuerpo);
    background-color: var(--color-fondo-oscuro);
    color: var(--color-texto-principal);
    line-height: 1.6;
    overflow-x: hidden;
    /* Evita scroll lateral */
}

/* --- BARRA DE NAVEGACIÓN PC (EFECTO FANTASMA) --- */
.navbar {
    position: fixed;
    top: -100px;
    /* Oculto arriba por defecto */
    left: 0;
    width: 100%;
    background-color: #000;
    padding: 15px 0;
    z-index: 1000;
    transition: all 0.4s ease;
    opacity: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Clase que añade JS al bajar el scroll */
.navbar.scrolled {
    top: 0;
    opacity: 1;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-family: var(--fuente-titulos);
    color: var(--color-dorado);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-dorado);
}

/* Banderas de Idioma */
.flag-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    /* Bandera redonda */
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s;
    vertical-align: middle;
}

.flag-icon:hover {
    transform: scale(1.1);
    border-color: var(--color-dorado);
}

/* Icono Hamburguesa (Oculto en PC) */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--color-dorado);
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- SECCIÓN HERO --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background-image: url('fondo-hero.jpg');
    background-size: cover;
    background-position: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

/* Badge, Títulos y Botones Hero */
.badge-premium {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

h1 {
    font-family: var(--fuente-titulos);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.subtitulo-dorado {
    font-family: var(--fuente-titulos);
    color: var(--color-dorado);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.descripcion-hero {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.botones-hero {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--color-dorado);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 179, 151, 0.3);
}

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: #000;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 0.9rem;
    opacity: 0.8;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--color-dorado);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll-ani 2s infinite;
}

@keyframes scroll-ani {
    0% {
        opacity: 1;
        top: 8px;
    }

    50% {
        opacity: 0;
        top: 20px;
    }

    100% {
        opacity: 1;
        top: 8px;
    }
}

/* --- SECCIONES GENERALES --- */
.about-section {
    background-color: #fff;
    color: #333;
    padding: 100px 20px;
}

.services-section {
    padding: 100px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.faq-section {
    padding: 100px 20px;
    background-color: #fff;
    text-align: center;
}

/* --- MEJORAS SECCIÓN SOBRE MÍ --- */

/* Las palabras clave en negrita tendrán un color sutilmente más oscuro/fuerte */
.about-text p strong,
.about-text p b {
    color: #000;
    /* Negro puro para destacar sobre el gris del texto */
    font-weight: 600;
}

/* El bloque final destacado (La recomendación de tu amigo llevada al nivel Pro) */
.cta-box-premium {
    border-left: 4px solid var(--color-dorado);
    /* Línea dorada a la izquierda */
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    /* Letra itálica para que parezca una cita */
    background: linear-gradient(90deg, rgba(197, 179, 151, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    /* Degradado muy sutil */
    border-radius: 0 10px 10px 0;
}

.cta-box-premium p {
    color: #333;
    font-size: 1.1rem;
    /* Un pelín más grande */
    margin: 0;
}

/* Firma decorativa */
.signature {
    font-family: var(--fuente-titulos);
    /* Usamos la fuente elegante */
    font-size: 1.8rem;
    color: var(--color-dorado);
    margin-bottom: 30px;
    font-style: italic;
    opacity: 0.8;
}

/* Grid y Layouts */
.container-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-family: var(--fuente-titulos);
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 30px;
    color: #000;
}

.texto-dorado {
    color: var(--color-dorado);
}

.about-badges {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.badge-item {
    display: flex;
    gap: 15px;
    align-items: center;
    /* Alinea el icono con el centro del texto */
}

/* ESTO ES LO QUE ARREGLA EL TEXTO: */
.badge-item div {
    display: flex;
    flex-direction: column;
    /* Obliga a que el subtítulo vaya DEBAJO */
    line-height: 1.3;
    /* Un poco de aire entre líneas */
}

.badge-item strong {
    font-size: 1rem;
    color: #000;
}

.badge-item small {
    font-size: 0.9rem;
    color: #666;
    margin-top: 2px;
}

/* Estilo para los nuevos iconos SVG (Medalla y Copa) */
.badge-item svg {
    width: 45px;
    height: 45px;
    color: var(--color-dorado);
    /* Se pintan de dorado automáticamente */
    flex-shrink: 0;
    /* Evita que se aplasten */
}

/* --- CORRECCIÓN TARJETA FLOTANTE (Ancla y Posición) --- */

/* 1. El Ancla (La caja de la foto) */
.about-image {
    position: relative; /* <--- ¡ESTO ES LO VITAL! Sin esto, la tarjeta se va */
    z-index: 1;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: block;
}

/* 2. La Tarjeta (Flotando sobre el ancla) */
.floating-card {
    position: absolute;
    bottom: 30px;       /* Separación desde abajo */
    left: -30px;        /* Separación desde la izquierda (sobresale un poco) */
    background: white;
    padding: 20px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    text-align: center;
    z-index: 2;         /* Para que esté ENCIMA de la foto */
}

/* Estilos internos de la tarjeta */
.floating-card h3 {
    color: var(--color-dorado);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin: 0;
}

.floating-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    font-weight: 500;
}

/* Servicios */
.services-header {
    margin-bottom: 60px;
}

.pill-label {
    background: #f4f4f4;
    color: #666;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 20px;
}

.services-header h2 {
    font-family: var(--fuente-titulos);
    font-size: 2.8rem;
    color: #000;
    line-height: 1.2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--color-dorado);
}

.card-badge {
    position: absolute;
    top: -12px;
    left: 30px;
    background: var(--color-dorado);
    color: #000;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.card-badge.elite {
    background-color: #998a72;
    color: #fff;
}

.icon-box {
    background: #edebe6;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 25px;
    color: #8c7b62;
}

.service-card h3 {
    font-family: var(--fuente-titulos);
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #000;
}

.service-subtitle {
    display: block;
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 30px;
    flex-grow: 1;
}

.btn-reservar {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.btn-reservar:hover .arrow {
    transform: translateX(5px);
}

.arrow {
    transition: transform 0.2s;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 25px 0;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--fuente-cuerpo);
    color: #000;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--color-dorado);
}

.icon-plus {
    font-size: 1.5rem;
    color: var(--color-dorado);
    transition: transform 0.3s ease;
}

.faq-item.active .icon-plus {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer p {
    color: #666;
    padding-bottom: 25px;
    font-size: 1rem;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* CONTACTO (Verde Wimbledon) */
.contact-section {
    position: relative;
    padding: 100px 20px 40px;
    background-color: #0f1c19;
    color: #ffffff;
}

.contact-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.contact-header h2 {
    color: #fff;
    font-family: var(--fuente-titulos);
    font-size: 3rem;
    margin: 20px 0;
}

.contact-header p {
    color: #aebdb5;
    font-size: 1.1rem;
}

.contact-header h2 .texto-dorado {
    color: var(--color-dorado);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto 80px;
    align-items: start;
}

.contact-form-card {
    background: #fff;
    color: #000;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.contact-form-card h3 {
    font-family: var(--fuente-titulos);
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
    font-family: var(--fuente-cuerpo);
}

.form-group textarea {
    height: 120px;
    resize: none;
}

.btn-submit {
    width: 100%;
    background-color: var(--color-dorado);
    color: #000;
    border: none;
    padding: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: #b39f82;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.info-item h4 {
    color: var(--color-dorado);
    margin-bottom: 5px;
    font-weight: 600;
}

.info-item p {
    color: #fff;
    font-weight: 400;
}

.icon-circle {
    width: 50px;
    height: 50px;
    background: rgba(197, 179, 151, 0.15);
    border: 1px solid rgba(197, 179, 151, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dorado);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.info-item:hover .icon-circle {
    background: var(--color-dorado);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(197, 179, 151, 0.4);
}

.whatsapp-btn {
    display: inline-block;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-top: 10px;
    font-weight: 600;
}

.main-footer {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #7a8a83;
    margin-top: 60px;
    padding-top: 30px;
    font-size: 0.9rem;
}

/* Botón Flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 10px #666;
}

/* --- VERSIÓN MÓVIL (Menú Premium Corregido) --- */
@media (max-width: 768px) {

    /* Barra Superior MÓVIL */
    .navbar {
        background-color: transparent !important;
        /* <--- ESTA LÍNEA ES LA CLAVE */
        top: 0;
        opacity: 1;
        padding: 15px 0;
        transition: background-color 0.3s ease;
    }

    /* Cuando el JS detecta scroll, se pone negra */
    .navbar.scrolled {
        background-color: #000 !important;
    }

    .nav-container {
        justify-content: space-between;
        padding: 0 20px;
    }

    .burger {
        display: block;
        z-index: 1001;
    }

    /* Ocultar el ratón en móvil para que no moleste */
    .scroll-indicator {
        display: none;
    }

    /* SOLUCIÓN AL SOLAPAMIENTO: */
    /* Añadimos mucho espacio arriba (130px) para librar el logo "Tennis Coach" */
    .hero-content {
        padding-top: 130px;
        padding-bottom: 40px;
    }

    /* EL MENÚ DRAWER (Panel lateral elegante) */
    .nav-links {
        position: fixed;
        right: -100%;
        /* Oculto a la derecha */
        top: 0;
        height: 100vh;
        /* Altura completa */
        width: 75%;
        /* Ocupa el 75% para ver el fondo */
        max-width: 300px;
        background: rgba(15, 28, 25, 0.95);
        /* Fondo oscuro semitransparente */
        backdrop-filter: blur(10px);
        /* Efecto borroso */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding-top: 60px;
    }

    .nav-links.nav-active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
        opacity: 1;
    }

    .nav-links a {
        font-size: 1.3rem;
        color: #fff;
    }

    /* Animación icono hamburguesa */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Ajustes generales móvil */
    h1 {
        font-size: 2.5rem;
    }

    .subtitulo-dorado {
        font-size: 1.5rem;
    }

    .hero-section,
    .contact-section,
    .services-section,
    .faq-section,
    .about-section {
        padding: 60px 20px;
    }

    .container-grid,
    .contact-grid,
    .form-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
        margin-bottom: 20px;
    }

    .floating-card {
        right: 10px;
        left: auto;
        bottom: -20px;
    }
}

/* ¡OJO! Asegúrate de que esto siga al final de tu archivo 
   (después de cerrar la llave } del @media) 
*/
.hidden {
    display: none !important;
}

/* ========================================= */
/* CLASE VITAL PARA EL CAMBIO DE IDIOMA */
/* ========================================= */
.hidden {
    display: none !important;
}