
/* =========================================================
   FORMA — BASE Y CONFIGURACIÓN GENERAL
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: #111111;
    color: #f3f3f3;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

:root {
    --forma-black: #111111;
    --forma-dark: #191919;
    --forma-card: #202020;
    --forma-acid: #D9F23F; /* ácido hi-vis: identidad industrial del entrenamiento funcional */
    --forma-white: #f3f3f3;
    --forma-gray: #a5a5a5;
    --forma-line: #353535;
}


/* =========================================================
   NAVEGACIÓN
========================================================= */

.forma-navbar {
    width: 100%;
    padding: 24px 7%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;

    background: rgba(17, 17, 17, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.forma-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2px;
}

.forma-logo span {
    color: var(--forma-acid);
}

.forma-navbar nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.forma-navbar nav a {
    font-size: 11px;
    color: #d0d0d0;
    transition: color 0.2s ease;
}

.forma-navbar nav a:hover {
    color: var(--forma-acid);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;

    padding: 13px 17px;

    background-color: var(--forma-acid);
    color: #111111;

    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.nav-cta span {
    font-size: 15px;
}

.nav-cta:hover {
    background-color: #C2DE2E;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;

    width: 43px;
    height: 43px;

    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 0;

    background: transparent;
    border: 1px solid var(--forma-line);
    cursor: pointer;
}

.menu-toggle span {
    width: 19px;
    height: 2px;

    display: block;

    background: var(--forma-white);

    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}


/* =========================================================
   HERO / INICIO
========================================================= */

.forma-hero {
    min-height: 760px;
    height: 100vh;

    position: relative;

    display: flex;
    align-items: center;

    overflow: hidden;

    background-color: var(--forma-black);
}

.hero-image {
    position: absolute;
    inset: 0;

    z-index: 1;

    background-image:
             linear-gradient(
                  90deg,
                  rgba(17, 17, 17, 0.98) 0%,
                  rgba(17, 17, 17, 0.88) 35%,
                  rgba(17, 17, 17, 0.40) 72%,
                  rgba(17, 17, 17, 0.30) 100%
            ),
            linear-gradient(
                 0deg,
                 rgba(17, 17, 17, 0.8),
                 transparent 40%
            ),
    url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?auto=format&fit=crop&w=2000&q=90');

   background-size: cover;
   background-position: center;
}

.hero-content {
    width: 100%;
    max-width: 1250px;

    position: relative;
    z-index: 2;

    margin: 0 auto;
    padding: 150px 7% 110px;
}

.hero-label,
.section-label {
    display: block;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;

    color: var(--forma-acid);
}

.hero-label {
    margin-bottom: 27px;
}

.hero-content h1 {
    max-width: 1000px;

    font-size: clamp(70px, 9.5vw, 145px);
    line-height: 0.86;
    letter-spacing: -2.5px;

    text-wrap: balance;
}

.hero-content h1 span {
    display: block;
    color: var(--forma-acid);
}

.hero-content > p {
    max-width: 470px;

    margin-top: 34px;

    font-size: 14px;
    line-height: 1.9;
    color: #c1c1c1;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;

    margin-top: 35px;
}

.primary-button {
    width: fit-content;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    padding: 16px 22px;

    background-color: var(--forma-acid);
    color: #111111;

    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.primary-button span {
    font-size: 16px;
}

.primary-button:hover {
    background-color: #C2DE2E;
    transform: translateY(-3px);
}

.secondary-link {
    display: inline-flex;
    align-items: center;
    gap: 13px;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;

    color: #e5e5e5;
}

.secondary-link span {
    color: var(--forma-acid);
    font-size: 17px;
}

.hero-index {
    position: absolute;
    z-index: 2;

    left: 7%;
    right: 7%;
    bottom: 28px;

    display: flex;
    justify-content: space-between;

    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #b5b5b5;
}


/* =========================================================
   ENCABEZADOS DE SECCIÓN
========================================================= */

.training,
.plans {
    padding: 125px 7% 135px;
}

.training {
    background-color: var(--forma-black);
}

.section-heading {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
    gap: 60px;

    margin-bottom: 65px;
}

.section-heading .section-label {
    margin-bottom: 20px;
}

.section-heading h2,
.gym-content h2,
.contact h2 {
    font-size: clamp(52px, 6.5vw, 90px);
    line-height: 0.9;
    letter-spacing: -1px;
}

.section-heading h2 span,
.gym-content h2 span,
.contact h2 span {
    display: block;
    color: var(--forma-acid);
}

.section-heading > p {
    max-width: 390px;

    margin-bottom: 5px;

    font-size: 13px;
    line-height: 1.9;
    color: var(--forma-gray);
}


/* =========================================================
   TARJETAS DE ENTRENAMIENTO
========================================================= */

.training-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.training-card {
    min-width: 0;

    background-color: var(--forma-card);

    border-bottom: 2px solid transparent;

    transition:
        border-color 0.25s ease,
        transform 0.25s ease;
}

.training-card:hover {
    border-bottom-color: var(--forma-acid);
    transform: translateY(-5px);
}

.training-image {
    height: 300px;

    background-size: cover;
    background-position: center;

    transition: background-size 0.3s ease;
}

.strength-image {
    background-image:
        linear-gradient(
            to top,
            rgba(17, 17, 17, 0.3),
            transparent 50%
        ),
        url('https://images.unsplash.com/photo-1583454110551-21f2fa2afe61?auto=format&fit=crop&w=900&q=85');
}

.cardio-image {
    background-image:
        linear-gradient(
            to top,
            rgba(17, 17, 17, 0.3),
            transparent 50%
        ),
        url('https://images.unsplash.com/photo-1538805060514-97d9cc17730c?auto=format&fit=crop&w=900&q=85');
}

.functional-image {
    background-image:
        linear-gradient(
            to top,
            rgba(17, 17, 17, 0.3),
            transparent 50%
        ),
        url('https://images.unsplash.com/photo-1517963879433-6ad2b056d712?auto=format&fit=crop&w=900&q=85');
}

.training-card-content {
    padding: 27px 25px 30px;
}

.training-card-content > span {
    display: block;

    margin-bottom: 15px;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--forma-acid);
}

.training-card-content h3 {
    margin-bottom: 13px;

    font-size: 35px;
    line-height: 1;
}

.training-card-content p {
    min-height: 66px;

    font-size: 12px;
    line-height: 1.8;
    color: var(--forma-gray);
}

.training-card-content > a {
    display: inline-flex;
    align-items: center;
    gap: 14px;

    margin-top: 25px;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.training-card-content > a span {
    color: var(--forma-acid);
    font-size: 15px;
}


/* =========================================================
   PLANES Y MEMBRESÍAS
========================================================= */

.plans {
    background-color: #191919;
    border-top: 1px solid var(--forma-line);
}

.plans-heading {
    margin-bottom: 60px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}


.plan-card {
    position: relative;

    display: flex;
    flex-direction: column;

    padding: 35px 28px 30px;

    background-color: #222222;
    border: 1px solid #383838;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: var(--forma-acid);
    box-shadow: 0 12px 30px rgba(217, 242, 63, 0.10);
}

.featured-plan {
    background-color: #23261D;
    border-color: var(--forma-acid);
}

.plan-number {
    display: block;

    margin-bottom: 25px;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--forma-gray);
}

.plan-badge {
    position: absolute;
    top: 0;
    right: 0;

    padding: 9px 12px;

    background-color: var(--forma-acid);
    color: #111111;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.plan-card h3 {
    font-size: 37px;
    line-height: 1;
}

.plan-description {
    min-height: 48px;

    margin-top: 14px;

    font-size: 12px;
    line-height: 1.8;
    color: var(--forma-gray);
}

.plan-price {
    margin-top: 27px;
    padding-bottom: 25px;

    border-bottom: 1px solid #414141;

    font-family: 'Barlow Condensed', sans-serif;
    font-size: 42px;
    font-weight: 700;
    white-space: nowrap;
}

.plan-price > span {
    color: var(--forma-acid);
}

.plan-price small {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 400;
    color: var(--forma-gray);
}

.plan-card ul {
    display: grid;
    gap: 15px;

    margin: 25px 0 30px;
    padding: 0;

    list-style: none;
}

.plan-card li {
    position: relative;

    padding-left: 20px;

    font-size: 11px;
    line-height: 1.6;
    color: #d0d0d0;
}

.plan-card li::before {
    content: "✓";

    position: absolute;
    left: 0;

    color: var(--forma-acid);
    font-weight: 700;
}

.plan-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-top: auto;
    padding: 15px 16px;

    border: 1px solid #555555;

    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.plan-button span {
    color: var(--forma-acid);
    font-size: 15px;
}

.plan-button:hover {
    background-color: var(--forma-acid);
    border-color: var(--forma-acid);
    color: #111111;
}

.plan-button:hover span {
    color: #111111;
}

.plans-note {
    margin-top: 25px;

    font-size: 10px;
    letter-spacing: 1px;
    text-align: center;
    color: #858585;
}


/* =========================================================
   EL GIMNASIO
========================================================= */

.gym {
    display: grid;
    grid-template-columns: 1fr 1fr;

    background-color: var(--forma-black);
}

.gym-image {
    min-height: 700px;

    background-image:
        linear-gradient(
            to right,
            transparent 65%,
            rgba(17, 17, 17, 0.45)
        ),
        url('https://images.unsplash.com/photo-1571902943202-507ec2618e8f?auto=format&fit=crop&w=1200&q=90');

    background-size: cover;
    background-position: center;
}

.gym-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    padding: 100px 10%;
}

.gym-content .section-label {
    margin-bottom: 22px;
}

.gym-content h2 {
    max-width: 650px;
}

.gym-content > p {
    max-width: 440px;

    margin-top: 28px;

    font-size: 13px;
    line-height: 1.9;
    color: var(--forma-gray);
}

.gym-details {
    display: grid;
    gap: 0;

    width: 100%;
    max-width: 470px;

    margin: 32px 0;
    border-top: 1px solid var(--forma-line);
}

.gym-details > div {
    display: flex;
    align-items: center;
    gap: 18px;

    padding: 18px 0;

    border-bottom: 1px solid var(--forma-line);
}

.gym-details span {
    font-size: 10px;
    font-weight: 700;
    color: var(--forma-acid);
}

.gym-details p {
    font-size: 11px;
    color: #dedede;
}


/* =========================================================
   CONTACTO / LLAMADA A LA ACCIÓN
========================================================= */

.contact {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 125px 7% 120px;

    overflow: hidden;

    background:
        radial-gradient(
            ellipse at center,
            rgba(217, 242, 63, 0.10),
            transparent 65%
        ),
        #191919;

    border-top: 1px solid var(--forma-line);

    text-align: center;
}

.contact .section-label {
    margin-bottom: 25px;
}

.contact h2 {
    max-width: 1000px;
    font-size: clamp(60px, 8vw, 112px);
}

.contact > p {
    max-width: 470px;

    margin-top: 25px;

    font-size: 13px;
    line-height: 1.9;
    color: var(--forma-gray);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;

    margin-top: 32px;
}

.primary-button--ghost {
    background-color: transparent;
    border: 1px solid var(--forma-acid);
    color: var(--forma-acid);
}

.primary-button--ghost:hover {
    background-color: var(--forma-acid);
    border-color: var(--forma-acid);
    color: #111111;
}

.contact-note {
    margin-top: 65px;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #858585;
}


/* =========================================================
   FOOTER
========================================================= */

.forma-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 25px;

    padding: 32px 7%;

    background-color: var(--forma-black);
    border-top: 1px solid var(--forma-line);
}

.footer-copy {
    justify-self: end;

    font-size: 10px;
    letter-spacing: 0.5px;
    color: #858585;
}

.forma-footer > p {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #b5b5b5;
}

.back-top {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #dedede;
}


/* =========================================================
   RESPONSIVE — TABLETS
========================================================= */

@media (max-width: 1000px) {

    /* NAVEGACIÓN */

    .forma-navbar {
        padding: 22px 5%;
    }

    .forma-navbar nav {
        gap: 18px;
    }

    .nav-cta {
        padding: 12px;
    }


    /* HERO */

    .hero-content {
        padding-left: 6%;
        padding-right: 6%;
    }

    .hero-content h1 {
        font-size: clamp(68px, 10vw, 105px);
    }


    /* ENTRENAMIENTO */

    .training,
    .plans {
        padding: 100px 5%;
    }

    .section-heading {
        gap: 35px;
    }

    .training-grid,
    .plans-grid {
        gap: 12px;
    }

    .training-image {
        height: 240px;
    }

    .training-card-content {
        padding: 23px 18px 25px;
    }

    .plan-card {
        padding: 30px 20px 25px;
    }

    .plan-price {
        font-size: 34px;
    }


    /* GIMNASIO */

    .gym-content {
        padding: 80px 8%;
    }

    .gym-image {
        min-height: 620px;
    }


    /* FOOTER */

    .forma-footer {
        padding-left: 5%;
        padding-right: 5%;
    }
}


/* =========================================================
   RESPONSIVE — CELULARES
========================================================= */

@media (max-width: 700px) {

    /* NAVEGACIÓN */

    .forma-navbar {
        padding: 20px 6%;

        flex-wrap: wrap;
        gap: 14px;
    }

    .forma-logo {
        font-size: 29px;
    }

    .forma-navbar nav {
        display: none;

        order: 4;
        width: 100%;

        flex-direction: column;
        align-items: stretch;
        gap: 0;

        border-top: 1px solid var(--forma-line);
    }

    .forma-navbar nav.is-open {
        display: flex;
    }

    .forma-navbar nav a {
        padding: 14px 2px;

        border-bottom: 1px solid var(--forma-line);

        font-size: 12px;
        letter-spacing: 0.4px;
    }

    .nav-cta {
        margin-left: auto;

        font-size: 10px;
    }

    .menu-toggle {
        display: inline-flex;
    }


    /* HERO */

    .forma-hero {
        min-height: 750px;
        height: auto;
    }

    .hero-image {
        background-image:
            linear-gradient(
                90deg,
                rgba(17, 17, 17, 0.92),
                rgba(17, 17, 17, 0.55)
            ),
            linear-gradient(
                0deg,
                rgba(17, 17, 17, 0.8),
                transparent 65%
            ),
            url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?auto=format&fit=crop&w=1200&q=85');

        background-position: 58% center;
    }

    .hero-content {
        padding: 175px 6% 125px;
    }

    .hero-label {
        max-width: 300px;

        font-size: 10px;
        line-height: 1.8;
        letter-spacing: 1.8px;
    }

    .hero-content h1 {
        font-size: clamp(57px, 13.5vw, 88px);
        letter-spacing: -1px;
        line-height: 0.88;
    }

    .hero-content > p {
        max-width: 360px;

        margin-top: 25px;

        font-size: 12px;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 23px;

        margin-top: 28px;
    }

    .hero-index {
        left: 6%;
        right: 6%;
        bottom: 22px;

        font-size: 10px;
        letter-spacing: 1px;
    }


    /* ENCABEZADOS */

    .training,
    .plans {
        padding: 85px 6% 95px;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 22px;

        margin-bottom: 42px;
    }

    .section-heading .section-label {
        margin-bottom: 17px;

        font-size: 10px;
    }

    .section-heading h2,
    .gym-content h2 {
        font-size: clamp(49px, 12vw, 70px);
    }

    .section-heading > p {
        max-width: 380px;

        font-size: 12px;
    }


    /* TARJETAS DE ENTRENAMIENTO */

    .training-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .training-image {
        height: 300px;
    }

    .training-card-content {
        padding: 25px 23px 28px;
    }

    .training-card-content h3 {
        font-size: 33px;
    }

    .training-card-content p {
        min-height: auto;
        max-width: 400px;
    }


    /* PLANES */

    .plans-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .plan-card {
        padding: 30px 25px 25px;
    }

    .plan-price {
        font-size: 42px;
    }

    .plan-description {
        min-height: auto;
    }

    .plans-note {
        line-height: 1.8;
    }


    /* GIMNASIO */

    .gym {
        grid-template-columns: 1fr;
    }

    .gym-image {
        min-height: 420px;

        background-image:
            linear-gradient(
                to bottom,
                transparent 60%,
                rgba(17, 17, 17, 0.4)
            ),
            url('https://images.unsplash.com/photo-1571902943202-507ec2618e8f?auto=format&fit=crop&w=1000&q=85');
    }

    .gym-content {
        padding: 80px 6% 90px;
    }

    .gym-content h2 {
        font-size: clamp(48px, 12vw, 68px);
    }

    .gym-content > p {
        margin-top: 23px;
        font-size: 12px;
    }


    /* CONTACTO */

    .contact {
        padding: 90px 6%;
    }

    .contact h2 {
        font-size: clamp(52px, 13vw, 78px);
        letter-spacing: -1px;
    }

    .contact > p {
        font-size: 12px;
    }

    .contact-note {
        margin-top: 50px;

        font-size: 10px;
        line-height: 1.8;
        letter-spacing: 1.3px;
    }


    /* FOOTER */

    .forma-footer {
        grid-template-columns: 1fr auto;
        gap: 22px;

        padding: 30px 6%;
    }

    .forma-footer > p {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .back-top {
        justify-self: end;
    }

    .footer-copy {
        grid-column: 1 / -1;
        grid-row: 3;

        justify-self: start;

        font-size: 10px;
    }
}


/* =========================================================
   RESPONSIVE — CELULARES PEQUEÑOS
========================================================= */

@media (max-width: 380px) {

    .nav-cta {
        padding: 10px;
    }

    .hero-content h1 {
        font-size: 54px;
    }

    .hero-index {
        font-size: 10px;
    }

    .training-image {
        height: 240px;
    }

    .plan-price {
        font-size: 36px;
    }
}

/* ========================================
   ANIMACIONES DE LAS TARJETAS
======================================== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
    transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPETAR LA PREFERENCIA DE MOVIMIENTO REDUCIDO */

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ACCESIBILIDAD — FOCO VISIBLE */

a:focus-visible {
    outline: 2px solid var(--forma-acid);
    outline-offset: 5px;
}

/* INTERACCIONES — BOTONES */

.primary-button:active,
.nav-cta:active,
.plan-button:active {
    transform: translateY(1px) scale(0.98);
}

.primary-button:focus-visible,
.nav-cta:focus-visible,
.plan-button:focus-visible,
.secondary-link:focus-visible,
.menu-toggle:focus-visible {
    outline: 2px solid var(--forma-acid);
    outline-offset: 5px;
}