/* ==========================================================================\n   IRON FORCE FITNESS - ESTILOS PRINCIPALES\n   Demo web para catálogo Gufo Tech\n   --------------------------------------------------------------------------\n   Estructura:\n   1. Variables y base\n   2. Header / navegación\n   3. Hero\n   4. Secciones de contenido\n   5. Parallax\n   6. Footer / botones flotantes\n   7. Responsive\n   ========================================================================== */

:root {
    --bg: #0b0c0d;
    --panel: #151719;
    --text: #f5f5f3;
    --muted: #9a9c9e;
    --line: rgba(255, 255, 255, .10);
    --accent: #e85d2a;
    --light: #ececea;
    --header: 82px;
    --max: 1380px;
}

/* ============================== 1. BASE ================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-user-select: none;
    user-select: none;
}
body.menu-open { overflow: hidden; }
img, video { display: block; width: 100%; -webkit-user-drag: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
input, textarea, select {
    -webkit-user-select: text;
    user-select: text;
}

/* ======================== 2. HEADER / NAVEGACIÓN ========================= */
.site-header {
    height: var(--header);
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 4vw, 64px);
    transition: .3s;
    background: linear-gradient(to bottom, rgba(0,0,0,.65), transparent);
}
.site-header.scrolled,
.site-header.solid {
    background: rgba(9,10,11,.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; z-index: 1002; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--accent);
    font: 800 20px 'Barlow Condensed';
    letter-spacing: 1px;
}
.brand-copy { display: flex; flex-direction: column; line-height: .95; }
.brand-copy strong { font: 800 20px 'Barlow Condensed'; letter-spacing: 1.4px; }
.brand-copy small { font-size: 9px; letter-spacing: 4px; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a {
    position: relative;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    font-weight: 700;
}
.main-nav a:not(.nav-webdesign)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: .25s;
}
.main-nav a:hover::after,
.main-nav a.current::after { width: 100%; }
.nav-webdesign { padding: 10px 14px; border: 1px solid var(--accent); color: #fff; }
.nav-webdesign:hover { background: var(--accent); }
.menu-toggle { display: none; background: none; border: 0; width: 42px; padding: 8px; z-index: 1002; }
.menu-toggle span { display: block; height: 2px; background: #fff; margin: 6px 0; transition: .25s; }

/* ============================== 3. HERO ================================== */
.hero {
    min-height: 100vh;
    max-width: var(--max);
    margin: auto;
    padding: calc(var(--header) + 55px) 28px 60px;
    display: grid;
    grid-template-columns: .88fr 1.12fr;
    align-items: center;
    gap: 50px;
    position: relative;
}
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 3px; color: var(--accent); margin: 0 0 14px; }
.hero h1,
.section h2,
.parallax-content h2,
.cinema-copy h2,
.final-cta h2 {
    font-family: 'Barlow Condensed';
    font-weight: 800;
    line-height: .82;
    letter-spacing: -2px;
    margin: 0;
    text-transform: uppercase;
}
.hero-logo {
    width: clamp(190px, 28vw, 360px);
    height: auto;
    object-fit: contain;
    margin: 8px 0 18px;
    filter: drop-shadow(0 18px 34px rgba(0,0,0,.38));
}
.hero-slogan {
    max-width: 620px;
    font-size: clamp(46px, 5.5vw, 88px) !important;
    line-height: .88 !important;
}
.hero-text { max-width: 590px; color: #c8c8c6; font-size: 16px; margin: 28px 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    border: 1px solid transparent;
    transition: .25s;
    cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.12); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: #fff; background: #fff; color: #111; }
.hero-visual { position: relative; }
.hero-visual img {
    height: min(72vh, 760px);
    object-fit: cover;
    background: #151719;
    clip-path: polygon(8% 0,100% 0,100% 92%,92% 100%,0 100%,0 8%);
}
.hero-badge {
    position: absolute;
    left: -34px;
    bottom: 38px;
    background: var(--accent);
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.hero-badge strong { font: 800 20px 'Barlow Condensed'; }
.hero-badge span { font-size: 11px; }
.scroll-cue { position: absolute; right: 28px; bottom: 22px; font-size: 9px; letter-spacing: 3px; color: #777; writing-mode: vertical-rl; }
.scroll-cue span { margin-top: 8px; }

/* ========================== 4. CONTENIDO ================================= */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    background: #111315;
    border-block: 1px solid var(--line);
    padding: 25px max(25px, calc((100vw - var(--max))/2));
}
.stats-strip div { padding: 8px 30px; border-right: 1px solid var(--line); }
.stats-strip div:last-child { border: 0; }
.stats-strip strong { font: 800 36px 'Barlow Condensed'; color: #fff; }
.stats-strip span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.section { max-width: var(--max); margin: auto; padding: 110px 28px; }
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.video-frame { position: relative; background: #17191b; overflow: hidden; }
.video-frame video { aspect-ratio: 4/3; object-fit: cover; min-height: 430px; }
.video-label { position: absolute; left: 18px; bottom: 16px; background: rgba(0,0,0,.62); padding: 7px 10px; font-size: 9px; letter-spacing: 2px; }
.section-copy h2, .section-heading h2 { font-size: clamp(48px,6vw,86px); }
.section-copy > p { color: var(--muted); max-width: 560px; }
.feature-list { margin-top: 35px; }
.feature-list article { display: flex; gap: 20px; border-top: 1px solid var(--line); padding: 19px 0; }
.feature-list article > span { color: var(--accent); font: 700 16px 'Barlow Condensed'; }
.feature-list h3 { margin: 0 0 4px; font: 700 22px 'Barlow Condensed'; text-transform: uppercase; }
.feature-list p { margin: 0; color: var(--muted); font-size: 13px; }
.section-heading { max-width: 830px; margin-bottom: 38px; }
.section-heading > p:last-child { color: var(--muted); }
.training-section { padding-top: 90px; }
.training-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-btn { background: transparent; border: 1px solid var(--line); color: #aaa; padding: 8px 12px; text-transform: uppercase; font-size: 10px; letter-spacing: 1px; cursor: pointer; }
.filter-btn:hover, .filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.training-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.training-card { position: relative; min-height: 440px; overflow: hidden; background: #17191b; }
.training-card.hidden { display: none; }
.training-card img { position: absolute; inset: 0; height: 100%; object-fit: cover; transition: .55s transform,.4s filter; }
.training-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top,rgba(0,0,0,.94),rgba(0,0,0,.05) 66%); transition: .35s; }
.training-card:hover img { transform: scale(1.07); filter: brightness(.75); }
.card-top { position: absolute; z-index: 2; top: 15px; left: 15px; right: 15px; display: flex; justify-content: space-between; font-size: 9px; letter-spacing: 1.3px; }
.card-top span { background: rgba(0,0,0,.64); padding: 6px 8px; }
.card-content { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 22px; transform: translateY(42px); transition: .35s; }
.training-card:hover .card-content { transform: translateY(0); }
.card-content h3 { font: 800 30px 'Barlow Condensed'; text-transform: uppercase; margin: 0 0 6px; }
.card-content p { font-size: 13px; color: #ccc; opacity: 0; transition: .35s; }
.training-card:hover .card-content p { opacity: 1; }
.card-content small { font-size: 9px; letter-spacing: 1.5px; color: var(--accent); }
.classes-section { padding-bottom: 120px; }
.class-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.class-card { padding: 30px; background: var(--panel); border: 1px solid var(--line); min-height: 260px; display: flex; flex-direction: column; transition: .3s; }
.class-card:hover { transform: translateY(-8px); border-color: rgba(232,93,42,.65); }
.class-number { font: 700 14px 'Barlow Condensed'; color: var(--accent); }
.class-card h3 { font: 800 28px 'Barlow Condensed'; text-transform: uppercase; margin: 36px 0 8px; }
.class-card p { font-size: 11px; color: var(--muted); letter-spacing: 1px; margin: 0; }
.class-card strong { font: 700 22px 'Barlow Condensed'; margin-top: 4px; }
.class-card small { margin-top: auto; color: #aaa; font-size: 10px; }
.cinema-section { position: relative; min-height: 72vh; margin: 0 auto; max-width: 1480px; overflow: hidden; }
.cinema-section video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cinema-shade { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(0,0,0,.7),rgba(0,0,0,.14),rgba(0,0,0,.45)); }
.cinema-copy { position: absolute; z-index: 2; left: 7%; bottom: 10%; max-width: 600px; }
.cinema-copy > span { font-size: 10px; letter-spacing: 4px; color: var(--accent); }
.cinema-copy h2 { font-size: clamp(62px,9vw,125px); }
.cinema-copy p { color: #ddd; }
.trainer-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.trainer-card { background: var(--panel); overflow: hidden; }
.trainer-card img { aspect-ratio: 4/5; object-fit: cover; filter: grayscale(1); transition: .4s; }
.trainer-card:hover img { filter: grayscale(0); transform: scale(1.03); }
.trainer-card div { padding: 22px; }
.trainer-card h3 { font: 800 30px 'Barlow Condensed'; text-transform: uppercase; margin: 0; }
.trainer-card p { color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.trainer-card span { font-size: 13px; color: var(--muted); }
.mosaic { display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 12px; }
.mosaic img { height: 100%; object-fit: cover; filter: grayscale(.22); transition: .3s; }
.mosaic img:hover { filter: grayscale(0); transform: scale(.985); }
.mosaic-large { grid-row: 1/3; }
.mosaic img:nth-child(4) { grid-column: 2; }
.center-action { text-align: center; margin-top: 30px; }
.testimonials-section { padding-top: 70px; }
.testimonial-slider { max-width: 900px; margin: auto; text-align: center; min-height: 300px; position: relative; }
.testimonial { display: none; margin: 0; }
.testimonial.active { display: block; animation: fadeIn .5s; }
.stars { color: var(--accent); letter-spacing: 5px; }
.testimonial p { font: 600 clamp(24px,3vw,42px) 'Barlow Condensed'; line-height: 1.2; text-transform: uppercase; }
.testimonial footer { color: var(--muted); font-size: 12px; }
.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.testimonial-dots button { width: 26px; height: 3px; border: 0; background: #444; }
.testimonial-dots button.active { background: var(--accent); }
.final-cta { min-height: 540px; background: linear-gradient(rgba(0,0,0,.5),rgba(0,0,0,.78)),url('../images/final-cta.svg') center/cover; display: flex; align-items: end; padding: 70px max(28px,calc((100vw - var(--max))/2 + 28px)); }
.final-cta-copy { max-width: 850px; }
.final-cta h2 { font-size: clamp(60px,8vw,110px); margin-bottom: 30px; }

/* ============================== 5. PARALLAX =============================== */
.parallax-cta {
    min-height: 680px;
    background: url('../images/parallax-gym.png') center / cover fixed;
    display: grid;
    place-items: center;
    text-align: center;
    position: relative;
    padding: 60px 24px;
}
.parallax-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.62); }
.parallax-content { position: relative; z-index: 2; max-width: 800px; }
.parallax-content h2 { font-size: clamp(68px,9vw,130px); }
.parallax-content p:not(.eyebrow) { color: #d0d0cf; max-width: 560px; margin: 24px auto; }

/* Segundo parallax: sección EVERYTHING YOU NEED... */
.benefits-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    padding: 110px max(28px,calc((100vw - var(--max))/2 + 28px));
    background: url('../images/parallax-gym-2.png') center 38% / cover fixed;
}
.benefits-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg,rgba(0,0,0,.82),rgba(0,0,0,.62),rgba(0,0,0,.76));
}
.benefits-content { position: relative; z-index: 1; }
.dark-text .eyebrow { color: var(--accent); }
.dark-text h2 { color: #fff; font-size: clamp(48px,6vw,86px); font-family: 'Barlow Condensed'; line-height: .9; margin: 0; }
.benefit-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; margin-top: 55px; }
.benefit-grid article { border-top: 2px solid rgba(255,255,255,.72); padding-top: 18px; }
.benefit-grid strong { color: var(--accent); font: 700 14px 'Barlow Condensed'; }
.benefit-grid h3 { color: #fff; font: 800 25px 'Barlow Condensed'; text-transform: uppercase; }
.benefit-grid p { font-size: 13px; color: #dadada; }

/* ======================= 6. FOOTER / FLOTANTES =========================== */
.site-footer { display: grid; grid-template-columns: 1.3fr repeat(3,1fr); gap: 40px; padding: 70px max(28px,calc((100vw - var(--max))/2 + 28px)) 25px; background: #070809; border-top: 1px solid var(--line); font-size: 12px; color: #aaa; }
.site-footer h3 { color: #fff; font: 700 19px 'Barlow Condensed'; text-transform: uppercase; margin-top: 0; }
.site-footer a, .site-footer p { display: block; margin: 7px 0; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; gap: 15px; align-items: flex-start; }
.footer-brand strong { font: 700 22px 'Barlow Condensed'; color: #fff; }
.footer-brand p { margin: 2px 0; }
.footer-bottom { grid-column: 1/-1; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 15px; text-align: center; }
.footer-bottom a { display: inline; color: #fff; }
.site-footer.compact { display: block; padding-top: 28px; }
.site-footer.compact .footer-bottom { margin: 0; }

/* Contacto Gufo Tech: visible pero sin invadir el contenido. */
.gufo-float {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 950;
    min-width: 158px;
    background: rgba(232,93,42,.97);
    color: #fff;
    padding: 14px 16px;
    text-align: left;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    box-shadow: 0 14px 36px rgba(0,0,0,.34);
    transition: .25s;
    line-height: 1.15;
}
.gufo-float:hover { transform: translateY(-50%) translateX(-4px); filter: brightness(1.05); }
.gufo-float strong { display: block; font-size: 12px; letter-spacing: 1.25px; }
.gufo-float span { display: block; font-size: 9px; margin-top: 5px; opacity: .92; }
.back-top { position: fixed; right: 18px; bottom: 18px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(14,15,16,.88); color: #fff; z-index: 951; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .25s; cursor: pointer; }
.back-top.show { opacity: 1; pointer-events: auto; transform: none; }
.reveal { opacity: 0; transform: translateY(28px); transition: .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.text-link { display: inline-block; margin-top: 24px; color: #ccc; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============================== 7. RESPONSIVE ============================= */
@media (max-width: 980px) {
    .main-nav { position: fixed; inset: 0; background: #090a0b; display: flex; flex-direction: column; justify-content: center; gap: 25px; transform: translateX(100%); transition: .35s; }
    .main-nav.open { transform: none; }
    .main-nav a { font-size: 18px; }
    .menu-toggle { display: block; }
    .hero { grid-template-columns: 1fr; padding-top: 120px; }
    .hero-copy { padding-top: 30px; }
    .hero-logo { width: clamp(190px,42vw,330px); }
    .hero-visual img { height: 58vh; }
    .hero-badge { left: 12px; }
    .about { grid-template-columns: 1fr; }
    .training-grid { grid-template-columns: repeat(2,1fr); }
    .class-grid, .benefit-grid { grid-template-columns: repeat(2,1fr); }
    .trainer-grid { grid-template-columns: repeat(2,1fr); }
    .site-footer { grid-template-columns: 1fr 1fr; }
    .footer-bottom { grid-column: 1/-1; }
}

@media (max-width: 640px) {
    :root { --header: 68px; }
    .site-header { padding: 0 16px; }
    .brand-mark { width: 38px; height: 38px; }
    .brand-copy strong { font-size: 17px; }
    .hero { display: block; padding: 100px 18px 55px; }
    .hero-copy { text-align: center; }
    .hero-logo { width: min(72vw,275px); margin: 8px auto 16px; }
    .hero-slogan { font-size: clamp(43px,14vw,68px) !important; }
    .hero-text { font-size: 14px; margin: 20px auto 24px; }
    .hero-actions { justify-content: center; }
    .hero-visual { margin-top: 45px; }
    .hero-visual img { height: 52vh; }
    .hero-badge { left: 10px; bottom: 12px; padding: 11px 14px; }
    .scroll-cue { display: none; }
    .stats-strip { grid-template-columns: 1fr 1fr; padding: 12px; }
    .stats-strip div { padding: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .stats-strip div:nth-child(2n) { border-right: 0; }
    .stats-strip div:nth-last-child(-n+2) { border-bottom: 0; }
    .stats-strip strong { font-size: 29px; }
    .stats-strip span { font-size: 8px; }
    .section { padding: 78px 18px; }
    .about { gap: 35px; }
    .video-frame video { min-height: 300px; }
    .training-grid { grid-template-columns: 1fr; }
    .training-card { min-height: 410px; }
    .card-content { transform: none; }
    .card-content p { opacity: 1; }
    .parallax-cta,
    .benefits-section { background-attachment: scroll; }
    .parallax-cta { min-height: 580px; }
    .benefits-section { padding: 82px 18px; background-position: 62% center; }
    .benefits-overlay { background: rgba(0,0,0,.72); }
    .class-grid, .trainer-grid, .benefit-grid { grid-template-columns: 1fr; }
    .cinema-section { min-height: 62vh; }
    .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 160px 160px; }
    .mosaic-large { grid-column: 1/3; grid-row: auto; }
    .mosaic img:nth-child(4) { grid-column: auto; }
    .site-footer { grid-template-columns: 1fr; padding: 50px 18px 22px; }
    .gufo-float {
        top: auto;
        right: 14px;
        bottom: 72px;
        transform: none;
        min-width: 145px;
        max-width: 170px;
        border-radius: 9px;
        padding: 12px 14px;
    }
    .gufo-float:hover { transform: none; }
    .gufo-float strong { font-size: 11px; }
    .gufo-float span { font-size: 8px; }
    .back-top { right: 14px; bottom: 14px; }
    .final-cta { padding: 60px 18px; min-height: 500px; }
    .hero-actions .btn { flex: 1 1 180px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation: none !important; transition: none !important; }
    .parallax-cta, .benefits-section { background-attachment: scroll; }
}
