/* Landing FitPower — estilo original + pulido profesional. */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body.landing-page {
    --bs-primary: #0D4784;
    --bs-primary-rgb: 13, 71, 132;
    --bs-link-color: #0D4784;
    --bs-link-hover-color: #0a3a6c;
    font-family: "DM Sans", "Segoe UI", sans-serif;
}

.landing-page .btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #0D4784;
    --bs-btn-border-color: #0D4784;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0a3a6c;
    --bs-btn-hover-border-color: #0a3a6c;
    --bs-btn-focus-shadow-rgb: 13, 71, 132;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #09305c;
    --bs-btn-active-border-color: #09305c;
    --bs-btn-disabled-bg: #0D4784;
    --bs-btn-disabled-border-color: #0D4784;
}

.landing-page .text-primary {
    color: #0D4784 !important;
}

.landing-page .bg-primary,
.landing-page .text-bg-primary {
    background-color: #0D4784 !important;
}

.landing-page .btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.landing-page .btn-primary:hover,
.landing-page .btn-primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(13, 71, 132, 0.32);
}

.landing-page .btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.landing-page .btn:focus-visible {
    outline: 3px solid rgba(24, 52, 224, 0.45);
    outline-offset: 3px;
}

/* Header */

.navbar {
    background-color: #0D4784;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.fs-4 {
    color: #ffffff;
}

.landing-page .navbar-brand {
    transition: opacity 0.2s ease;
}

.landing-page .navbar-brand:hover {
    opacity: 0.88;
}

.nav-link {
    color: #ffffff;
}

.landing-page .navbar .nav-link {
    position: relative;
    font-weight: 600;
    padding-inline: 12px;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.landing-page .navbar .nav-link:not(.btn-ingresar)::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}

.landing-page .navbar .nav-link:not(.btn-ingresar):hover::after,
.landing-page .navbar .nav-link:not(.btn-ingresar):focus-visible::after {
    transform: scaleX(1);
}

.nav-link:hover,
.nav-link:focus {
    color: #ffffff;
}

.logo-header {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.fp-loader {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: grid;
    place-items: center;
    background: #ffffff;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.fp-loader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.fp-loader-img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    animation: fp-spin 1.2s linear infinite;
}
@keyframes fp-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .fp-loader-img { animation: fp-pulse 1.2s ease-in-out infinite; }
    @keyframes fp-pulse {
        50% { opacity: 0.45; transform: scale(0.94); }
    }
}

.btn-ingresar {
    background: #fff;
    color: #0D4784 !important;
    border-radius: 999px;
    padding: 8px 18px !important;
    font-weight: 700;
    margin-left: 6px;
}

.btn-ingresar::after {
    display: none !important;
}

.btn-ingresar:hover,
.btn-ingresar:focus-visible {
    background: #e8f0fb;
    color: #0D4784 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

.btn-lang {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: transparent;
    color: #fff;
    border-radius: 999px;
    padding: 4px;
    margin-left: 8px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.04em;
    cursor: pointer;
    line-height: 1;
}
.btn-lang span {
    padding: 6px 10px;
    border-radius: 999px;
    opacity: 0.72;
}
.btn-lang span.is-active {
    background: #fff;
    color: #0D4784;
    opacity: 1;
}
.btn-lang:hover {
    border-color: #fff;
}
.btn-lang:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.45);
    outline-offset: 3px;
}

.landing-page .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.45);
}

.landing-page .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero */

.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../imagenes/gym.png");
    background-size: cover;
    background-position: center;
    min-height: 90vh;
    padding-top: 60px;
    padding-bottom: 60px;
}

.hero h1 {
    letter-spacing: -0.03em;
    animation: fade-up 0.7s ease both;
}

.hero p {
    animation: fade-up 0.7s 0.12s ease both;
}

.hero > .container > .btn {
    animation: fade-up 0.7s 0.22s ease both;
}

.hero .row {
    animation: fade-up 0.75s 0.32s ease both;
}

.hero .card {
    border: 0;
    border-radius: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.hero .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
    filter: brightness(1.08);
}

.hero-card-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.25s ease;
}

.hero .card:hover .hero-card-icon {
    transform: scale(1.08);
}

/* ¿Por qué elegir FitPower? */

.why-us {
    background-color: #DDDEDF;
}

.divider {
    width: 80px;
    height: 3px;
    background-color: #0D4784;
    border: none;
    opacity: 1;
}

.icon-circle {
    background-color: #0D4784;
    width: 60px;
    height: 60px;
    min-width: 60px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.why-item:hover .icon-circle,
.plans .card:hover .icon-circle {
    transform: scale(1.08);
    box-shadow: 0 8px 16px rgba(13, 71, 132, 0.28);
}

.icon-circle img,
.icon-circle svg {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

/* Conoce a nuestros entrenadores */

.trainers {
    background-color: #DDDEDF;
}

.trainer-img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border: 4px solid #0D4784;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trainer-card:hover .trainer-img {
    transform: scale(1.04);
    box-shadow: 0 12px 24px rgba(13, 71, 132, 0.28);
}

.divider-sm {
    width: 150px;
    height: 2px;
    background-color: #0D4784;
    border: none;
    opacity: 1;
}

.trainer-tag {
    display: inline-block;
    background: #0D4784;
    color: #fff;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0 4px 6px 0;
    cursor: default;
}

/* Planes */

.plans {
    background-color: #DDDEDF;
}

.plans .card {
    border-radius: 20px;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    height: 480px;
    overflow: visible;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.plans .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(13, 71, 132, 0.16);
}

.plans .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-bottom: 56px;
}

.plans .card-body .btn {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    margin-top: 0;
    align-self: center;
    min-width: 160px;
}

.plans .card ul {
    margin-bottom: 0;
}

.plans .card li.mb-2 {
    margin-bottom: 0.35rem !important;
}

.plans .plan-popular {
    border: 2px solid #0D4784;
    position: relative;
    height: 540px;
}

.plans .plan-popular:hover {
    box-shadow: 0 18px 36px rgba(13, 71, 132, 0.22);
}

.popular-tag {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    padding: 6px 20px;
    font-size: 0.85rem;
    border: none;
    letter-spacing: 0.04em;
}

.plans .icon-circle {
    font-size: 1.8rem;
}

.plan-check {
    color: #16a34a;
    font-weight: 800;
    margin-right: 4px;
}

/* FAQ + legal */

.faq-section {
    background-color: #DDDEDF;
}

.faq-section .accordion {
    max-width: 820px;
    margin: 0 auto;
}

.faq-section .accordion-item {
    border: none;
    border-radius: 16px !important;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.faq-section .accordion-button {
    font-weight: 700;
    color: #0D4784;
    background: #fff;
    box-shadow: none;
}

.faq-section .accordion-button:not(.collapsed) {
    color: #0D4784;
    background: #e8f0fb;
}

.faq-section .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.faq-section .accordion-body {
    background: #fff;
    font-weight: 600;
    color: #1834E0;
}

.legal-section {
    background-color: #DDDEDF;
    padding-top: 0 !important;
}

.legal-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px 24px;
    height: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.legal-card h3 {
    font-size: 1.2rem;
    color: #0D4784;
    margin-bottom: 12px;
}

.legal-card p {
    font-weight: 600;
    color: #1834E0;
}

/* Banner */

.cta-banner {
    background-color: #1834E0;
}

.cta-icon {
    font-size: 2.2rem;
}

.landing-page .cta-banner .btn-light {
    color: #0D4784 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.landing-page .cta-banner .btn-light:hover,
.landing-page .cta-banner .btn-light:focus-visible {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

/* Footer */

.container2,
.landing-footer {
    background-color: #0D4784;
}

footer .text-body-secondary,
.landing-footer .text-body-secondary,
.landing-footer .footer-text,
.landing-footer a,
.landing-footer .nav-link {
    color: #ffffff !important;
}

.container2 .nav-link {
    width: fit-content;
    opacity: 0.86;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.container2 .nav-link:hover,
.container2 .nav-link:focus-visible {
    opacity: 1;
    transform: translateX(3px);
}

.ftxt {
    color: #ffffff;
}

.footer-title {
    font-size: 1.5rem;
    color: #ffffff;
}

.footer-text {
    font-size: 1rem;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767.98px) {
    .hero {
        min-height: auto;
        text-align: center;
    }

    .plans .card,
    .plans .plan-popular {
        height: auto;
    }

    .btn-ingresar {
        margin: 8px 0 0;
        display: inline-block;
        width: fit-content;
    }

    .btn-lang {
        margin: 12px 0 0;
        width: fit-content;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .landing-page *,
    .landing-page *::before,
    .landing-page *::after {
        animation: none !important;
        transition: none !important;
    }
}
