/* --- VARIABLES --- */
:root {
    --color-primary: #ffae00;
    --color-primary-dark: #cc8b00;
    --color-bg: #0a0a0a;
    --color-card: #141414;
    --color-text: #ffffff;
    --color-text-muted: #a0a0a0;
    --nav-height: 70px;
    --radius: 12px;
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    padding-top: var(--nav-height);
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Montserrat', sans-serif; font-weight: 800; text-transform: uppercase; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; border-radius: var(--radius); }

/* --- UTILIDADES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-highlight { color: var(--color-primary); }
.text-gradient {
    background: linear-gradient(45deg, var(--color-primary), #ffd700);
    -webkit-background-clip: text;  /* Versión para Chrome/Safari */
    background-clip: text;          /* <--- AGREGA ESTA LÍNEA (Estándar) */
    -webkit-text-fill-color: transparent;
}
.text-center { text-align: center; }
.full-width { width: 100%; }
.bg-darker { background-color: #050505; }

/* --- ANIMACIONES (Scroll Reveal) --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- COMPONENTES: BOTONES --- */
.btn {
    padding: 0.8rem 2rem;
    font-weight: 700;
    border-radius: 50px; /* Botones redondos más modernos */
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
    display: inline-block;
}
.btn--primary {
    background: var(--color-primary);
    color: #000;
}
.btn--primary:hover {
    background: var(--color-primary-dark);
    transform: scale(1.05);
}
.btn--outline {
    border-color: var(--color-text);
    color: var(--color-text);
}
.btn--outline:hover {
    background: var(--color-text);
    color: #000;
}

/* --- HEADER --- */
.header {
    position: fixed; top: 0; width: 100%; height: var(--nav-height);
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px); /* Efecto vidrio */
    z-index: 1000;
    display: flex; align-items: center; border-bottom: 1px solid #222;
}
.header__wrapper { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 1.4rem; font-weight: 900; }
.nav__list { display: flex; gap: 2rem; align-items: center; }
.nav__link:hover { color: var(--color-primary); }
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- HERO --- */
.hero {
    height: 90vh;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), var(--color-bg)), 
                url('gym.jpg');
    background-size: cover; background-position: center; background-attachment: fixed; /* Parallax */
    display: flex; align-items: center;
}
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.2rem; color: #ddd; margin-bottom: 2rem; max-width: 600px; }
.btn-group { display: flex; gap: 1rem; }

/* --- CARDS (Grid) --- */
.section { padding: 5rem 0; }
.grid-disciplines {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem; margin-top: 2rem;
}
.card {
    background: var(--color-card);
    padding: 2rem;
    border-radius: var(--radius);
    transition: 0.3s;
    border: 1px solid #222;
    cursor: pointer;
}
.card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 174, 0, 0.1);
}
.card__icon { font-size: 2.5rem; color: var(--color-primary); margin-bottom: 1rem; }

/* --- PRECIOS --- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 3rem; }
.price-card {
    background: var(--color-card); padding: 2.5rem; border-radius: var(--radius);
    text-align: center; border: 1px solid #333; position: relative;
    display: flex; flex-direction: column;
}
.price-card.featured { border: 2px solid var(--color-primary); transform: scale(1.05); z-index: 2; background: #1a1a1a; }
.price-amount { font-size: 3rem; font-weight: 800; display: block; margin: 1rem 0; color: var(--color-primary); }
.price-features li { margin-bottom: 0.8rem; color: #ccc; display: flex; align-items: center; justify-content: center; gap: 10px; }
.popular-badge {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--color-primary); color: #000; padding: 0.3rem 1rem;
    font-weight: 700; border-radius: 20px; font-size: 0.8rem;
}

/* --- MODAL --- */
.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 2000; align-items: center; justify-content: center;
}
.modal.active { display: flex; animation: fadeIn 0.3s; }
.modal-content {
    background: var(--color-card); padding: 2rem; border-radius: var(--radius);
    max-width: 500px; width: 90%; position: relative; border: 1px solid var(--color-primary);
}
.close-modal {
    position: absolute; top: 10px; right: 20px; font-size: 2rem; cursor: pointer;
}
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hamburger { display: block; color: var(--color-primary); }
    .nav__list {
        position: fixed; top: var(--nav-height); right: -100%;
        width: 80%; height: 100vh; background: #111;
        flex-direction: column; padding-top: 4rem; transition: 0.4s;
    }
    .nav__list.active { right: 0; box-shadow: -5px 0 15px rgba(0,0,0,0.5); }
    .hero h1 { font-size: 2.5rem; }
    .price-card.featured { transform: scale(1); }
}
/* --- GALERÍA EN MODAL (NUEVO) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); /* Se adapta al espacio */
    gap: 10px;
    margin-top: 1.5rem;
}

.gallery-img {
    width: 100%;
    height: 120px; /* Altura fija para uniformidad */
    object-fit: cover; /* Recorta la imagen sin deformarla */
    border-radius: 8px;
    border: 1px solid #333;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.05);
    border-color: var(--color-primary);
    z-index: 2;
}
/* --- HORARIOS (TABS) --- */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap; /* Para que baje en celulares */
}

.tab-btn {
    background: transparent;
    border: 1px solid #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.tab-btn:hover, .tab-btn.active {
    background: var(--color-primary);
    color: #000;
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(255, 174, 0, 0.3);
}

/* Contenedor de las filas */
.schedule-container {
    background: #111;
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid #222;
    min-height: 200px;
}

.day-content { display: none; animation: fadeIn 0.4s ease; }
.day-content.active { display: block; }

/* Fila de Clase Individual */
.class-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #222;
}

.class-row:last-child { border-bottom: none; }

.class-time {
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--color-primary);
    width: 120px; /* Ancho fijo para alinear */
}

.class-info h4 { margin-bottom: 0.2rem; font-size: 1.1rem; }
.class-category { font-size: 0.85rem; color: #888; text-transform: uppercase; letter-spacing: 1px; }

/* Botón de WhatsApp Coach */
.coach-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.coach-btn i { color: #25D366; font-size: 1.2rem; } /* Verde WhatsApp */

.coach-btn:hover {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.1);
    transform: translateX(5px);
}

/* Ajuste Móvil */
@media (max-width: 768px) {
    .class-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .class-time { width: 100%; color: #fff; background: #222; padding: 5px 10px; border-radius: 4px; display: inline-block; }
    .coach-btn { width: 100%; justify-content: center; }
}
/* --- SECCIÓN COACHES --- */
.coaches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.coach-card {
    background: #1a1a1a;
    border-radius: var(--radius);
    overflow: hidden; /* Para que la imagen no se salga */
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coach-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: var(--color-primary);
}

/* Imagen y Overlay */
.coach-img-wrapper {
    position: relative;
    height: 400px; /* Altura fija para uniformidad */
    width: 100%;
    overflow: hidden;
}

.coach-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Enfoca la cara/torso */
    transition: transform 0.5s ease;
    border-radius: 0; /* Quitamos borde redondeado interno */
}

.coach-card:hover .coach-img-wrapper img {
    transform: scale(1.1); /* Zoom suave al pasar mouse */
}

.coach-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.coach-card:hover .coach-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Información del Coach */
.coach-info { padding: 1.5rem; text-align: center; }

.coach-info h3 { 
    margin-bottom: 0.2rem; 
    font-size: 1.4rem; 
    color: #fff;
}

.coach-specialty {
    display: block;
    font-size: 0.85rem;
    color: var(--color-primary);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.coach-bio {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Precios */
.coach-pricing {
    background: #111;
    padding: 1rem;
    border-radius: 8px;
    border: 1px dashed #444;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.price-item:last-child { margin-bottom: 0; }

.price-item .label { color: #888; }
.price-item .value { font-weight: 700; color: #fff; }

.btn-sm { padding: 0.5rem 1.5rem; font-size: 0.85rem; }

/* Ajuste Responsive para móviles */
@media (max-width: 768px) {
    .coach-img-wrapper { height: 350px; }
    .coach-overlay { opacity: 1; transform: translateY(0); background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); }
}
/* --- TIENDA SNACK BAR --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: #1a1a1a;
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    border: 1px solid #333;
    transition: 0.3s;
    display: flex; flex-direction: column; justify-content: space-between;
}

.product-card:hover { border-color: var(--color-primary); transform: translateY(-5px); }

.product-img {
    width: 100%; height: 180px; object-fit: contain;
    margin-bottom: 1rem; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
}

.product-price {
    font-size: 1.2rem; font-weight: 800; color: var(--color-primary);
    display: block; margin: 0.5rem 0;
}

/* Botón Flotante Carrito */
.cart-float {
    position: fixed; bottom: 30px; right: 30px;
    background: var(--color-primary); color: #000;
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 174, 0, 0.4);
    z-index: 900; transition: 0.3s;
}

.cart-float:hover { transform: scale(1.1); }

.cart-count {
    position: absolute; top: -5px; right: -5px;
    background: red; color: white;
    font-size: 0.8rem; font-weight: bold;
    width: 25px; height: 25px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #1a1a1a;
}

/* Modal Carrito y Checkout */
.cart-items-container {
    max-height: 200px; overflow-y: auto;
    border-bottom: 1px solid #333; margin-bottom: 1rem;
}

.cart-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid #222; font-size: 0.9rem;
}

.cart-total {
    display: flex; justify-content: space-between;
    font-size: 1.2rem; font-weight: bold; margin-bottom: 1.5rem;
}

.qr-container { text-align: center; margin-bottom: 1rem; background: #fff; padding: 10px; border-radius: 8px; }
.qr-img { width: 120px; height: 120px; }

.upload-label {
    display: block; background: #333; color: #fff;
    padding: 10px; text-align: center; border-radius: 8px;
    cursor: pointer; border: 1px dashed #666; transition: 0.3s;
}
.upload-label:hover { background: #444; border-color: var(--color-primary); }
.hidden { display: none; }
/* =========================================
   ESTILOS DEL FOOTER (4 COLUMNAS)
========================================= */
.footer {
    background-color: #050505;
    padding: 4rem 0 1rem;
    border-top: 3px solid #ffae00; 
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: left;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 2px;
    background-color: #ffae00;
}

.footer-links li, .footer-contact li {
    margin-bottom: 0.8rem;
    list-style: none;
}

.footer-links a {
    color: #aaaaaa;
    font-size: 0.95rem;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #ffae00;
    padding-left: 5px;
}

.link-trabajo {
    color: #fff !important;
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #aaa;
    font-size: 0.9rem;
}

/* REDES SOCIALES BOTONES REDONDOS */
.social-icons-footer {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    font-size: 1.1rem;
}

.social-btn:hover {
    background: #ffae00;
    color: #000;
    transform: translateY(-3px);
    border-color: #ffae00;
}

.footer-copyright {
    border-top: 1px solid #1a1a1a;
    padding-top: 2rem;
    color: #555;
    font-size: 0.8rem;
}

/* Para celulares */
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col h3::after { left: 50%; transform: translateX(-50%); }
    .footer-contact li { justify-content: center; }
    .social-icons-footer { justify-content: center; }
}