/* ================================================================
   INVICTURI TRAINING — CSS
   Estructura: Header → Banner → Secciones (mobile-first) → desktop
   ================================================================ */

/* ----------------------------------------------------------------
   1. HEADER
   ---------------------------------------------------------------- */
.header { background-color: rgba(0,0,0,0.95); }

.header-container {
    max-width: none;
    margin: 0;
    padding: 0 24px;
    position: relative;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.logo img { height: 50px; }

.desktop-nav { gap: 12px; align-items: center; }
.mobile-menu-btn { padding: 8px; z-index: 10; }

.desktop-nav .nav-link { position: relative; }

.nav-link.active { color: var(--primary-blue); }

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 2px;
    background: var(--primary-blue);
    border-radius: 2px;
}

/* ----------------------------------------------------------------
   2. FORMS BANNER
   ---------------------------------------------------------------- */
.forms-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 2000;
    background: linear-gradient(90deg,#0044cc,#0066ff,#0099ff);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    gap: 12px;
    box-shadow: 0 3px 16px rgba(0,102,255,.5);
    transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .35s ease;
}

.forms-banner.hidden { transform: translateY(-110%); opacity: 0; pointer-events: none; }

.forms-banner-content {
    display: flex; align-items: center; gap: 10px;
    flex: 1; justify-content: center; flex-wrap: wrap;
}
.forms-banner-icon { color: #fff; font-size: 18px; flex-shrink: 0; opacity: .9; }

.forms-banner-text {
    color: #fff; font-size: 13px;
    line-height: 1.3; margin: 0; text-align: center;
}
.forms-banner-text strong {
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.forms-banner-btn {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.18);
    color: #fff; text-decoration: none;
    padding: 6px 16px; border-radius: 20px;
    font-weight: 700; font-size: 12px; white-space: nowrap;
    border: 1.5px solid rgba(255,255,255,.55);
    flex-shrink: 0;
    transition: background .2s, transform .2s;
}
.forms-banner-btn:hover { background: rgba(255,255,255,.32); transform: scale(1.04); }

.forms-banner-close {
    background: none; border: none;
    color: rgba(255,255,255,.75);
    cursor: pointer; padding: 4px 6px;
    font-size: 15px; flex-shrink: 0; line-height: 1;
    transition: color .2s, transform .2s;
}
.forms-banner-close:hover { color: #fff; transform: scale(1.15); }

body.banner-visible .header { top: var(--banner-h,44px); }
body.banner-visible .mobile-drawer { top: calc(64px + var(--banner-h,44px)); }

/* ----------------------------------------------------------------
   3. SECTION BASE
   ---------------------------------------------------------------- */
.section-bg { z-index: -2; }

.section-overlay {
    z-index: -1;
    background: linear-gradient(to top,rgba(0,0,0,.55),rgba(0,0,0,.18));
}

.container { max-width: none; padding: 0; }

.section {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 20px 48px;
    overflow: hidden;
}

/* Sections with heavy content grow on mobile */
.plans-section,
.features-section {
    height: auto;
    min-height: calc(100vh - 64px);
    overflow-x: hidden;
    overflow-y: visible;
    padding-bottom: 80px;
}

.features-section {
    background-color: var(--bg-black);
    padding-top: 90px;
}

[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
[data-animate].anim-visible { opacity: 1; transform: translateY(0); }

/* ----------------------------------------------------------------
   4. SHARED TYPOGRAPHY
   ---------------------------------------------------------------- */
.section-label {
    font-size: 10px; font-weight: 800;
    letter-spacing: 3px; color: var(--primary-blue);
    text-transform: uppercase; margin-bottom: 8px;
}
.section-label.label-white { color: rgba(255,255,255,.5); }
.text-blue { color: var(--primary-blue); }

.section-heading {
    font-size: 26px; font-weight: 900;
    line-height: 1.2; letter-spacing: -.3px; margin-bottom: 8px;
}

.section-description {
    color: rgba(255,255,255,.78);
    line-height: 1.6; font-size: 15px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.section-checklist {
    list-style: none; padding: 0; margin: 14px 0 0;
    display: flex; flex-direction: column; gap: 8px;
}
.section-checklist li {
    display: flex; align-items: flex-start; gap: 10px;
    color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.45;
}
.section-checklist li i {
    color: var(--primary-blue); font-size: 11px;
    margin-top: 3px; flex-shrink: 0;
}

.img-placeholder {
    width: 100%; min-height: 200px;
    border: 2px dashed rgba(0,102,255,.3);
    border-radius: 16px; background: rgba(0,102,255,.05);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px; color: rgba(0,102,255,.5);
}
.img-placeholder i { font-size: 32px; }
.img-placeholder span {
    font-size: 11px; font-family: monospace;
    opacity: .7; text-align: center; padding: 0 12px;
}

/* ----------------------------------------------------------------
   5. SCROLL ARROWS
   ---------------------------------------------------------------- */
.scroll-arrow {
    position: fixed; left: 50%; transform: translateX(-50%);
    width: 40px; height: 40px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: none;
    align-items: center; justify-content: center;
    color: #fff; cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,102,255,.25);
    transition: opacity .25s ease, transform .25s ease;
    z-index: 100; opacity: 0; pointer-events: none;
    will-change: opacity, transform;
}
.scroll-arrow.visible { opacity: 1; pointer-events: auto; }
.scroll-arrow.down { bottom: 28px; }
.scroll-arrow.up   { top: 76px; }
.scroll-arrow:hover { transform: translateX(-50%) scale(1.1); }

/* ----------------------------------------------------------------
   6. HERO — MOBILE
   ---------------------------------------------------------------- */
.hero-content {
    display: flex; flex-direction: column;
    align-items: center; gap: 0; width: 100%;
}
.hero-image { display: none; }

.hero-phones-mobile {
    width: 88%; max-width: 320px; margin-bottom: 14px;
}

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

.hero-eyebrow {
    font-size: 10px; font-weight: 800;
    letter-spacing: 2.5px; color: var(--primary-blue);
    text-transform: uppercase; margin-bottom: 8px;
}

.hero-title {
    color: var(--primary-blue);
    font-size: 30px; font-weight: 900;
    line-height: 1.15; letter-spacing: -.5px; margin-bottom: 10px;
    text-shadow: 0 0 40px rgba(0,102,255,.35);
}

.hero-description {
    color: rgba(255,255,255,.78);
    line-height: 1.6; font-size: 14px; margin-bottom: 14px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.hero-pills {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 18px; justify-content: center;
}

.hero-pill {
    display: flex; align-items: center; gap: 5px;
    background: rgba(0,102,255,.12);
    border: 1px solid rgba(0,102,255,.28);
    color: rgba(255,255,255,.82);
    font-size: 11px; font-weight: 600;
    padding: 4px 10px; border-radius: 20px;
}
.hero-pill i { color: var(--primary-blue); font-size: 10px; }

.store-badges {
    display: flex; gap: 10px;
    justify-content: center; align-items: center;
}
.store-badge {
    width: 44%; max-width: 160px;
    transition: transform .22s ease, filter .22s ease;
}
.store-badge img { width: 100%; height: auto; }
.store-badge:hover { transform: translateY(-3px) scale(1.04); filter: brightness(1.1); }

/* ----------------------------------------------------------------
   7. CREATE — MOBILE
   ---------------------------------------------------------------- */
.create-content {
    display: flex; flex-direction: column;
    align-items: center; gap: 18px; width: 100%;
}
.create-text  { text-align: center; order: 1; width: 100%; }
.create-image { width: 88%; max-width: 360px; order: 2; }
.create-image img { width: 100%; height: auto; }

/* ----------------------------------------------------------------
   8. SHARE — MOBILE
   ---------------------------------------------------------------- */
.share-overlay {
    background: linear-gradient(to top,rgba(0,0,0,.65),rgba(0,0,0,.22));
}

.share-content {
    display: flex; flex-direction: column;
    align-items: center; gap: 24px; width: 100%;
}
.share-text  { text-align: center; order: 1; width: 100%; }
.share-image { width: 60%; max-width: 260px; order: 2; }
.share-image img {
    width: 100%; border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

/* ----------------------------------------------------------------
   9. STATS — MOBILE
   ---------------------------------------------------------------- */
.stats-content {
    display: flex; flex-direction: column;
    align-items: center; gap: 18px; width: 100%;
}
.stats-text  { text-align: center; order: 1; width: 100%; }
.stats-image { width: 88%; max-width: 360px; order: 2; }
.stats-image img { width: 100%; height: auto; }

/* ----------------------------------------------------------------
   10. TRAINER INTRO — MOBILE
   ---------------------------------------------------------------- */
.trainer-overlay {
    background: linear-gradient(135deg,rgba(0,25,70,.9),rgba(0,0,0,.78));
}

.trainer-intro-content {
    display: flex; flex-direction: column;
    align-items: center; gap: 22px; width: 100%; text-align: center;
}

.trainer-intro-title {
    font-size: 28px; font-weight: 900;
    line-height: 1.15; letter-spacing: -.5px; margin-bottom: 10px;
}
.trainer-intro-desc {
    color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.6;
}

.trainer-intro-stats {
    display: flex; gap: 24px;
    justify-content: center; margin-top: 14px; flex-wrap: wrap;
}
.trainer-stat { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.trainer-stat-num {
    font-size: 30px; font-weight: 900;
    color: var(--primary-blue); line-height: 1;
}
.trainer-stat-label {
    font-size: 10px; color: rgba(255,255,255,.5);
    font-weight: 600; letter-spacing: .3px; text-align: center;
}

.trainer-intro-image { width: 85%; max-width: 300px; }

/* ----------------------------------------------------------------
   11. PROGRAMS — MOBILE
   ---------------------------------------------------------------- */
.programs-content {
    display: flex; flex-direction: column;
    align-items: center; gap: 18px; width: 100%;
}
.programs-text  { text-align: center; order: 1; width: 100%; }
.programs-image { width: 88%; max-width: 360px; order: 2; }

/* ----------------------------------------------------------------
   12. STUDENTS — MOBILE
   ---------------------------------------------------------------- */
.students-content {
    display: flex; flex-direction: column;
    align-items: center; gap: 18px; width: 100%;
}
.students-text  { text-align: center; order: 1; width: 100%; }
.students-image { width: 100%; max-width: 380px; order: 2; }

.students-phones {
    display: flex; gap: 10px;
    align-items: flex-start; justify-content: center;
}
.student-phone {
    width: calc(50% - 5px);
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0,0,0,.55);
}

/* ----------------------------------------------------------------
   13. PLANS — MOBILE
   ---------------------------------------------------------------- */
.plans-overlay {
    background: linear-gradient(to top,rgba(0,0,0,.88),rgba(0,0,0,.55));
}

.plans-content {
    display: flex; flex-direction: column;
    align-items: center; gap: 22px;
    width: 100%; max-width: 1200px; padding: 0 4px;
}
.plans-header { text-align: center; width: 100%; }
.plans-grid   { display: grid; grid-template-columns: 1fr; gap: 14px; width: 100%; }

.plan-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px; padding: 22px 18px;
    display: flex; flex-direction: column; gap: 10px;
    transition: border-color .25s, transform .25s;
}
.plan-card:hover { border-color: rgba(0,102,255,.4); transform: translateY(-3px); }
.plan-card-featured { border-color: var(--primary-blue); background: rgba(0,102,255,.08); }

.plan-badge {
    display: inline-block; padding: 3px 10px;
    border-radius: 20px; font-size: 10px; font-weight: 800;
    letter-spacing: 1.5px; width: fit-content;
}
.plan-badge.free    { background: rgba(255,255,255,.1); color: rgba(255,255,255,.6); }
.plan-badge.premium { background: var(--primary-blue); color: #fff; }
.plan-badge.trainer { background: rgba(0,200,120,.16); color: #00c878; border: 1px solid rgba(0,200,120,.32); }

.plan-name { font-size: 20px; font-weight: 800; color: #fff; margin: 0; }
.plan-desc { font-size: 13px; color: rgba(255,255,255,.48); margin: 0; }

.plan-features {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 6px; flex: 1;
}
.plan-features li {
    font-size: 13px; color: rgba(255,255,255,.75);
    display: flex; align-items: flex-start; gap: 8px; line-height: 1.4;
}
.plan-features li i { font-size: 10px; margin-top: 3px; flex-shrink: 0; color: var(--primary-blue); }

.plan-feature-no   { color: rgba(255,255,255,.32) !important; }
.plan-feature-no i { color: rgba(255,255,255,.22) !important; }

.plan-tag {
    display: inline-block;
    background: rgba(0,102,255,.15); color: var(--primary-blue);
    font-size: 10px; font-weight: 700;
    padding: 1px 7px; border-radius: 10px; margin-left: 4px;
    border: 1px solid rgba(0,102,255,.28); vertical-align: middle;
}

.plan-btn {
    display: block; text-align: center;
    padding: 11px 20px; border-radius: 10px;
    font-weight: 700; font-size: 14px; text-decoration: none;
    transition: all .2s; margin-top: 6px;
}

.plan-btn-primary {
    background: var(--primary-blue); color: #fff;
    box-shadow: 0 4px 16px rgba(0,102,255,.35);
}
.plan-btn-primary:hover { background: #1a7aff; transform: translateY(-2px); }

.plan-btn-outline {
    border: 1.5px solid rgba(255,255,255,.22);
    color: rgba(255,255,255,.78);
}
.plan-btn-outline:hover { border-color: var(--primary-blue); color: var(--primary-blue); }

/* ----------------------------------------------------------------
   14. FEATURES — MOBILE
   ---------------------------------------------------------------- */
.features-content { width: 100%; max-width: 1100px; }

.features-title {
    color: #fff; font-size: 20px; font-weight: 900;
    text-align: center; margin-bottom: 20px; letter-spacing: .5px;
}

.features-accordion {
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px; padding: 12px 16px;
}

.feature-item { border-bottom: 1px solid rgba(255,255,255,.05); padding: 10px 0; }
.feature-item:last-child { border-bottom: none; }

.feature-title {
    color: var(--primary-blue); font-weight: 700; font-size: 15px;
    cursor: pointer; list-style: none; padding: 6px 0;
    user-select: none; display: flex; align-items: center;
}
.feature-title::-webkit-details-marker { display: none; }
.feature-item > .feature-title::after  { content: "▸"; margin-left: auto; color: var(--primary-blue); flex-shrink: 0; }
.feature-item[open] > .feature-title::after { content: "▾"; }
.feature-item:hover > .feature-title { color: #3d8bff; }

.feature-icon {
    color: var(--primary-blue); margin-right: 10px;
    font-size: 13px; width: 16px; text-align: center; flex-shrink: 0;
}

.feature-list { list-style: none; padding: 6px 0 6px 26px; }
.feature-list li {
    color: rgba(255,255,255,.65);
    line-height: 1.5; padding: 3px 0;
    display: flex; gap: 8px;
}
.feature-list li::before {
    content: "•";
    color: var(--primary-blue); font-size: 5px;
    display: inline-block; width: 5px; height: 5px;
    margin-top: 9px; flex-shrink: 0;
}

/* ================================================================
   15. DESKTOP >= 900px
   ================================================================ */
@media (min-width: 900px) {

    .scroll-arrow      { display: flex; width: 44px; height: 44px; }
    .scroll-arrow.down { bottom: 28px; }
    .scroll-arrow.up   { top: 76px; }

    .section { padding: 80px 40px 48px; }

    .section-heading     { font-size: 32px; }
    .section-description { font-size: 17px; }
    .section-checklist li { font-size: 15px; }

    /* Hero */
    .hero-content {
        flex-direction: row; align-items: center;
        justify-content: space-between;
        max-width: 1400px; width: 100%; padding: 0 60px; gap: 40px;
    }
    .hero-text         { flex: 0 0 44%; text-align: left; }
    .hero-phones-mobile { display: none; }
    .hero-image        { display: flex; flex: 0 0 52%; justify-content: flex-end; align-items: center; }
    .hero-image img    { width: 100%; height: auto; transform: scale(0.95); }
    .hero-title        { font-size: 46px; }
    .hero-description  { font-size: 17px; }
    .hero-pills        { justify-content: flex-start; }
    .store-badges      { justify-content: flex-start; }
    .store-badge       { width: auto; min-width: 130px; max-width: 160px; }

    /* Create */
    .create-content {
        flex-direction: row; align-items: center;
        justify-content: space-between;
        max-width: 1400px; width: 100%; padding: 0 60px; gap: 40px;
    }
    .create-text  { flex: 0 0 38%; text-align: left; order: 1; }
    .create-image { flex: 0 0 56%; order: 2; max-width: none; width: auto; }
    .create-image img { max-height: 68vh; width: auto; }

    /* Share */
    .share-content {
        flex-direction: row; align-items: center;
        justify-content: center;
        max-width: 1100px; width: 100%; padding: 0 60px; gap: 80px;
    }
    .share-text  { flex: 0 0 46%; text-align: left; order: 1; }
    .share-image { flex: 0 0 auto; order: 2; width: 240px; max-width: none; }
    .share-image img { border-radius: 24px; }

    /* Stats */
    .stats-content {
        flex-direction: row; align-items: center;
        justify-content: space-between;
        max-width: 1400px; width: 100%; padding: 0 60px; gap: 40px;
    }
    .stats-image { flex: 0 0 56%; order: 1; max-width: none; width: auto; }
    .stats-image img { max-height: 68vh; width: auto; }
    .stats-text  { flex: 0 0 38%; text-align: left; order: 2; }

    /* Trainer Intro */
    .trainer-intro-content {
        flex-direction: row; text-align: left;
        align-items: center; justify-content: space-between;
        max-width: 1200px; width: 100%; padding: 0 60px; gap: 60px;
    }
    .trainer-intro-text  { flex: 0 0 52%; }
    .trainer-intro-title { font-size: 42px; }
    .trainer-intro-desc  { font-size: 17px; margin: 0; }
    .trainer-intro-stats { justify-content: flex-start; }
    .trainer-intro-image { flex: 0 0 38%; width: auto; max-width: none; }
    .trainer-intro-image img { width: 100%; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }

    /* Programs */
    .programs-content {
        flex-direction: row; align-items: center;
        justify-content: space-between;
        max-width: 1400px; width: 100%; padding: 0 60px; gap: 40px;
    }
    .programs-image { flex: 0 0 54%; order: 1; max-width: none; width: auto; }
    .programs-image img { width: 100%; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
    .programs-text  { flex: 0 0 40%; text-align: left; order: 2; }

    /* Students */
    .students-content {
        flex-direction: row; align-items: center;
        justify-content: space-between;
        max-width: 1400px; width: 100%; padding: 0 60px; gap: 40px;
    }
    .students-text  { flex: 0 0 40%; text-align: left; order: 1; }
    .students-image { flex: 0 0 50%; order: 2; max-width: none; width: auto; }
    .students-phones { gap: 16px; }
    .student-phone  { border-radius: 24px; }

    /* Plans */
    .plans-content { padding: 0 40px; }
    .plans-grid { grid-template-columns: repeat(3,1fr); max-width: 1000px; gap: 20px; }
    .plan-card  { padding: 28px 22px; }
    .plan-name  { font-size: 22px; }
    .plan-features li { font-size: 14px; }

    /* Features */
    .features-title  { font-size: 24px; }
    .feature-title   { font-size: 16px; }

    .img-placeholder { min-height: 260px; }
}

/* ================================================================
   16. TABLET 600-899px
   ================================================================ */
@media (min-width: 600px) and (max-width: 899px) {
    .scroll-arrow { display: flex; }
    .hero-title   { font-size: 36px; }
    .section-heading     { font-size: 28px; }
    .section-description { font-size: 16px; }

    .hero-phones-mobile,
    .create-image,
    .share-image,
    .stats-image,
    .programs-image,
    .students-image,
    .trainer-intro-image { max-width: 400px; }

    .vertical-phone { width: 180px; }
    .plans-grid { grid-template-columns: repeat(2,1fr); }
}

/* ================================================================
   17. BANNER SMALL MOBILE
   ================================================================ */
@media (max-width: 520px) {
    .forms-banner      { padding: 8px 12px; }
    .forms-banner-text { font-size: 12px; }
    .forms-banner-btn  { font-size: 11px; padding: 5px 12px; }
    .forms-banner-icon { display: none; }
}
