/* Variables y Reseteo */
:root {
    --bg-dark: #0d0d0d;      /* Negro exterior */
    --bg-container: #1e1e1e; /* Gris interior */
    --bg-card: #282828;      /* Tarjetas */
    --focus-gold: #d4af37;   /* Dorado */
    --text-light: #ffffff;
    --text-muted: #cccccc;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
}

/* Header & Nav */
header {
    background-color: #000000;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px; /* Ajuste para el logo horizontal */
    width: auto;
    max-width: 100%;
}

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

.nav-menu > a, .dropdown > a {
    color: var(--focus-gold);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 14px;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-menu > a:hover, .dropdown > a:hover {
    color: #fff;
}

.nav-social i {
    color: var(--focus-gold);
    font-size: 22px;
}

/* Dropdowns */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-card);
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.8);
    z-index: 1;
    top: 100%;
    border-top: 2px solid var(--focus-gold);
}

.dropdown-content a {
    color: var(--text-light);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: normal;
}

.dropdown-content a:hover {
    background-color: #333;
    color: var(--focus-gold);
}

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

.mobile-menu-btn {
    display: none;
    color: var(--focus-gold);
    font-size: 26px;
    cursor: pointer;
}

/* Caja Contenedora Flotante */
.content-wrapper {
    background-color: var(--bg-container);
    max-width: 1200px;
    margin: 80px auto 0 auto; /* Deja espacio para el nav fijo */
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    min-height: 100vh;
}

/* Hero Section */
.hero {
    position: relative;
    height: 75vh;
    background: url('assets/pa-gym1.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 800px;
}

.hero h1 {
    font-family: var(--font-heading);
    color: var(--focus-gold);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Botones */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s;
    margin: 5px;
}

.btn-primary {
    background-color: var(--focus-gold);
    color: #000;
}
.btn-primary:hover {
    background-color: #b5952f;
}

.btn-secondary {
    border: 2px solid var(--focus-gold);
    color: var(--focus-gold);
}
.btn-secondary:hover {
    background-color: var(--focus-gold);
    color: #000;
}

/* Secciones Generales */
section {
    padding: 60px 40px;
    scroll-margin-top: 90px; /* Evita que el header tape el título al scrollear */
}

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

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--focus-gold);
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--focus-gold);
    margin: 10px auto 0;
}

/* Nosotros & Pilares */
.nosotros-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto 50px;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    opacity: 0.6;
}

.slide-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    padding: 15px;
    border-left: 4px solid var(--focus-gold);
}

.slide-caption h3 {
    color: var(--focus-gold);
    font-family: var(--font-heading);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: var(--focus-gold);
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 20px;
}
.prev-btn { left: 0; }
.next-btn { right: 0; }

.pilares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.pilar-card {
    background: var(--bg-card);
    padding: 25px;
    text-align: center;
    border-radius: 5px;
    border-bottom: 3px solid var(--focus-gold);
}

.pilar-card i {
    font-size: 30px;
    color: var(--focus-gold);
    margin-bottom: 15px;
}

/* Servicios Grid */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.servicio-card {
    background: var(--bg-card);
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.servicio-card h3 {
    font-family: var(--font-heading);
    color: var(--focus-gold);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.servicio-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.cta-whatsapp {
    display: inline-block;
    background: var(--focus-gold);
    color: #000;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    padding: 10px 15px;
    transition: background 0.3s;
}

.cta-whatsapp:hover { background: #b5952f; }

.servicio-card.clinic {
    border-top: 3px solid var(--focus-gold);
}

/* Equipo */
.prof-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--focus-gold) var(--bg-card);
}

.prof-card {
    min-width: 250px;
    background: var(--bg-card);
    padding: 20px;
    text-align: center;
}

.prof-img {
    width: 100px;
    height: 100px;
    background: #444; /* Placeholder foto */
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 2px solid var(--focus-gold);
}

.prof-rol {
    display: block;
    color: var(--focus-gold);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

/* Horarios & App */
.turnos-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.app-info {
    text-align: center;
    background: var(--bg-card);
    padding: 30px;
}

.siguefit-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.app-buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-store, .btn-modal {
    padding: 10px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    border: none;
}

.btn-store {
    background: #fff;
    color: #000;
}
.btn-modal {
    background: transparent;
    color: var(--focus-gold);
    border: 1px solid var(--focus-gold);
}

/* Tabs */
.tab-buttons {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
}

.tab-btn {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
}

.tab-btn.active {
    color: var(--focus-gold);
    border-bottom: 3px solid var(--focus-gold);
}

.tab-content {
    display: none;
    background: var(--bg-card);
    padding: 20px;
}
.tab-content.active {
    display: block;
}
.tab-content ul {
    list-style-type: none;
    margin-top: 15px;
}
.tab-content li {
    padding: 10px 0;
    border-bottom: 1px solid #333;
}
.tab-content li strong {
    color: var(--focus-gold);
}

/* Galería */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}
.galeria-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}
.galeria-grid img:hover {
    transform: scale(1.02);
}

/* Footer */
footer {
    background-color: #000000;
    padding: 40px 20px 20px;
    text-align: center;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: left;
}
.footer-logo {
    max-width: 150px;
}
.footer-col h4 {
    color: var(--focus-gold);
    margin-bottom: 15px;
    font-family: var(--font-heading);
}
.footer-social {
    color: #fff;
    text-decoration: none;
}
.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #666;
}

/* Links interactivos del footer */
.footer-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-link:hover {
    color: var(--focus-gold);
}

/* Whatsapp Flotante */
.float-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
}
.modal-content {
    background-color: var(--bg-container);
    margin: 10% auto;
    padding: 30px;
    border: 1px solid var(--focus-gold);
    width: 90%;
    max-width: 500px;
}
.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-modal:hover { color: var(--focus-gold); }
.modal-content h3 { color: var(--focus-gold); margin-bottom: 20px;}
.modal-content li { margin-bottom: 10px; }

/* Responsive / Menú Mobile */
@media (max-width: 850px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #000000;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.8);
        gap: 15px;
        border-top: 1px solid #222;
    }
    
    .nav-menu.active {
        display: flex;
    }

    .nav-menu > a, .dropdown > a {
        padding: 10px 20px;
        width: 100%;
        text-align: center;
    }

    .dropdown {
        width: 100%;
        text-align: center;
    }

    .dropdown-content {
        position: static;
        display: none;
        background-color: #111;
        border: none;
        box-shadow: none;
    }
    
    /* El JS le va a agregar una clase "active" al dropdown al hacer click */
    .dropdown.active .dropdown-content {
        display: block;
    }

    .mobile-menu-btn {
        display: block;
    }
    
    .nav-social {
        display: none; /* Oculta Instagram en celular para ahorrar espacio arriba */
    }
    
    section { padding: 40px 20px; }
    .hero h1 { font-size: 2.2rem; }
    .turnos-container { grid-template-columns: 1fr; }
    .footer-container { text-align: center; }
    .float-whatsapp { bottom: 20px; right: 20px; }
}