/* Hipertrofit public home (/home) — SaaS landing with image placeholders */

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700&family=Jost:wght@500;600;700;800&display=swap');

.hf-home-body {
    background: #0f0f0f !important;
    color: #ffffff !important;
    font-family: 'Heebo', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

/* Anula hipertrofit.css (h1–h6/p en negro) dentro del home SaaS */
.hf-home-body h1,
.hf-home-body h2,
.hf-home-body h3,
.hf-home-body h4,
.hf-home-body h5,
.hf-home-body h6,
.hf-home-body .h1,
.hf-home-body .h2,
.hf-home-body .h3,
.hf-home-body .h4,
.hf-home-body .h5,
.hf-home-body .h6 {
    color: #ffffff !important;
    font-family: 'Jost', 'Heebo', system-ui, sans-serif !important;
    letter-spacing: -0.02em !important;
}

.hf-home-body p {
    color: #c4c4c4 !important;
    font-family: 'Heebo', system-ui, sans-serif !important;
    letter-spacing: normal !important;
}

.hf-home-body .hf-accent {
    color: #88F047 !important;
}


.hf-home-body #spinner.show {
    background: #0f0f0f !important;
}

.hf-home {
    background: #0f0f0f;
    /* clearance de navbar fija viene de header.php via --hf-navbar-h */
}

.hf-home img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hf-accent {
    color: #88F047;
}

/* Anclas del home (scroll) */
#funciones,
#como-funciona,
#precios {
    scroll-margin-top: 80px;
}

/* ---------- Type scale (legible, no condensed display) ---------- */
.hf-home-kicker {
    color: #88F047;
    font-family: 'Heebo', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hf-home-section {
    padding: 4.75rem 0;
}

.hf-home-section-title,
.hf-home-hero-title,
.hf-story-copy h3,
.hf-flow-copy h3 {
    font-family: 'Jost', 'Heebo', sans-serif !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: none !important;
    color: #ffffff;
    line-height: 1.2;
}

.hf-home-hero-title {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
}

.hf-home-section-title {
    font-size: clamp(1.6rem, 3.2vw, 2.35rem);
    margin-bottom: 1rem;
}

.hf-home-section-text,
.hf-home-hero-text {
    color: #c4c4c4;
    font-family: 'Heebo', sans-serif;
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 0;
}

.hf-home-hero-text {
    max-width: 32rem;
}

.hf-home-muted {
    color: #a8a8a8;
}

/* ---------- Buttons ---------- */
.hf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.35rem;
    border-radius: 10px;
    font-family: 'Heebo', sans-serif !important;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid transparent;
    text-transform: none !important;
    letter-spacing: 0 !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hf-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.hf-btn:focus-visible {
    outline: 2px solid #88F047;
    outline-offset: 2px;
}

.hf-btn-primary {
    background: #88F047;
    color: #111111;
}

.hf-btn-primary:hover {
    background: #7FE312;
    color: #111111;
}

.hf-btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: #555;
}

.hf-btn-secondary:hover {
    border-color: #88F047;
    color: #88F047;
}

.hf-home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.75rem 0 0;
}

.hf-home-hero-actions-center {
    justify-content: center;
}

/* ---------- Image placeholders ---------- */
.hf-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(145deg, #1c1c1c 0%, #141414 100%);
    border: 1px dashed #4a4a4a;
    border-radius: 16px;
    color: #d8d8d8;
    padding: 1.25rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.hf-ph-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-width: 90%;
}

.hf-ph-label strong {
    font-family: 'Heebo', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #88F047;
    line-height: 1.35;
}

.hf-ph-label small {
    font-size: 0.8rem;
    color: #9a9a9a;
    line-height: 1.4;
}

.hf-ph-desktop {
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 220px;
}

.hf-ph-phone {
    width: min(100%, 280px);
    aspect-ratio: 9 / 19;
    min-height: 420px;
    margin: 0 auto;
    border-radius: 28px;
}

.hf-ph-card {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    box-shadow: none;
}

.hf-ph-float {
    position: absolute;
    z-index: 2;
    width: min(46%, 220px);
    min-height: 96px;
    aspect-ratio: auto;
    padding: 0.9rem;
    border-style: solid;
    border-color: #3d3d3d;
    background: #1a1a1a;
}

.hf-ph-float-bl {
    left: -4%;
    bottom: -8%;
}

.hf-ph-float-br {
    right: -2%;
    bottom: 8%;
}

.hf-ph-float-left {
    left: 0;
    top: 18%;
}

.hf-ph-float-right {
    right: 0;
    bottom: 12%;
}

/* ---------- Showcase compositions ---------- */
.hf-showcase {
    position: relative;
    padding: 0;
}

.hf-showcase-hero {
    padding: 0;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.hf-hero-shot {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid #3C3C3C;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
    background: #1c1c1c;
}

.hf-showcase-phone {
    display: flex;
    justify-content: center;
    padding: 1rem 2.5rem 2rem;
}

.hf-showcase-phone .hf-ph-float {
    width: min(42%, 180px);
}

/* ---------- Hero ---------- */
.hf-home-hero {
    padding: 1.5rem 0 4rem;
    background:
        radial-gradient(ellipse at 85% 25%, rgba(136, 240, 71, 0.12), transparent 42%),
        radial-gradient(ellipse at 10% 80%, rgba(0, 194, 203, 0.08), transparent 40%),
        #0f0f0f;
}

@media (min-width: 992px) {
    .hf-home-hero {
        padding: 3.25rem 0 4rem;
    }

    .hf-home-hero .col-lg-5 {
        flex: 0 0 38%;
        max-width: 38%;
    }

    .hf-home-hero .col-lg-7 {
        flex: 0 0 62%;
        max-width: 62%;
    }

    .hf-showcase-hero {
        margin-left: 0;
        margin-right: -1.5rem;
    }
}


/* ---------- Pain cards ---------- */
.hf-home-problem {
    background: #121212;
}

.hf-pain-card {
    height: 100%;
    background: #1c1c1c;
    border: 1px solid #2e2e2e;
    border-radius: 14px;
    padding: 1.4rem;
}

.hf-pain-card h3 {
    font-family: 'Jost', 'Heebo', sans-serif !important;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.55rem;
    line-height: 1.3;
    text-transform: none !important;
}

.hf-pain-card p {
    color: #b5b5b5;
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

/* ---------- Benefits ---------- */
.hf-benefit-card {
    height: 100%;
    background: #1c1c1c;
    border: 1px solid #2e2e2e;
    border-radius: 14px;
    padding: 1.5rem;
    border-top: 3px solid #88F047;
}

.hf-benefit-card h3 {
    font-family: 'Jost', 'Heebo', sans-serif !important;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    color: #ffffff;
    line-height: 1.3;
    text-transform: none !important;
}

.hf-benefit-card p {
    color: #b5b5b5;
    margin: 0;
    line-height: 1.55;
    font-size: 0.98rem;
}

/* ---------- Story / flow sections ---------- */
.hf-home-flow {
    background: #0f0f0f;
}

.hf-story {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 4.5rem;
}

.hf-story:last-child {
    margin-bottom: 0;
}

.hf-story-reverse {
    grid-template-columns: 1.15fr 1fr;
}

.hf-story-reverse .hf-story-copy {
    order: 2;
}

.hf-story-reverse .hf-showcase {
    order: 1;
}

.hf-flow-num {
    display: inline-block;
    color: #88F047;
    font-family: 'Heebo', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.55rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hf-story-copy h3 {
    font-size: clamp(1.55rem, 2.8vw, 2.15rem);
    margin-bottom: 0.75rem;
}

.hf-story-copy > p {
    color: #c4c4c4;
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 1.35rem;
}

.hf-story-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hf-story-list li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.hf-story-list-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    border: 1px solid rgba(136, 240, 71, 0.45);
    color: #88F047;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 0;
    margin-top: 0.1rem;
    flex-shrink: 0;
    box-sizing: border-box;
}

.hf-story-list-icon svg {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
}

.hf-pain-icon {
    display: inline-flex !important;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(136, 240, 71, 0.12);
    color: #88F047;
    margin-bottom: 0.95rem;
    line-height: 0;
    box-sizing: border-box;
}

.hf-pain-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

.hf-story-list strong {
    display: block;
    font-family: 'Heebo', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.15rem;
}

.hf-story-list li > div > span {
    display: block;
    color: #a8a8a8;
    font-size: 0.9rem;
    line-height: 1.45;
}


/* ---------- Routines ---------- */
.hf-home-routines {
    background: #121212;
}

.hf-routine-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #1c1c1c;
    border: 1px solid #2e2e2e;
    border-radius: 16px;
    overflow: hidden;
}

.hf-routine-card-horizontal {
    flex-direction: column;
}

.hf-routine-media {
    background: #111;
    width: 100%;
    overflow: hidden;
}

.hf-routine-media picture,
.hf-routine-media img {
    display: block;
    width: 100%;
}

.hf-routine-media img {
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center center;
    background: #111;
}

.hf-routine-body {
    padding: 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.75rem;
}

.hf-routine-body h3 {
    font-family: 'Jost', 'Heebo', sans-serif !important;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff !important;
    line-height: 1.3;
    text-transform: none !important;
}

.hf-routine-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    color: #b5b5b5;
    font-size: 0.88rem;
}

.hf-routine-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.hf-routine-meta i {
    color: #88F047;
}

.hf-routine-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hf-routine-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #88F047 !important;
    margin: 0;
    font-family: 'Heebo', sans-serif;
}

.hf-routine-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hf-routine-actions .hf-btn {
    min-height: 40px;
    padding: 0.5rem 0.9rem;
    font-size: 0.88rem;
}

@media (min-width: 768px) {
    .hf-routine-card-horizontal {
        flex-direction: row;
        align-items: stretch;
        min-height: 200px;
    }

    .hf-routine-card-horizontal .hf-routine-media {
        flex: 0 0 58%;
        max-width: 58%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #0d0d0d;
    }

    .hf-routine-card-horizontal .hf-routine-media img {
        width: 100%;
        height: 100%;
        min-height: 200px;
        max-height: 260px;
        object-fit: contain;
    }

    .hf-routine-card-horizontal .hf-routine-body {
        flex: 1;
        justify-content: center;
        padding: 1.5rem 1.75rem;
    }
}

/* ---------- Testimonials ---------- */
.hf-home-testimonials {
    background: #0f0f0f;
}

.hf-testimonial-card {
    height: 100%;
    background: #1c1c1c;
    border: 1px solid #2e2e2e;
    border-radius: 16px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
}

.hf-testimonial-highlight {
    color: #88F047;
    font-family: 'Heebo', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.hf-testimonial-text {
    color: #b5b5b5;
    font-size: 0.95rem;
    line-height: 1.55;
    flex: 1;
    margin-bottom: 1.25rem;
}

.hf-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hf-testimonial-author img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #88F047;
}

.hf-testimonial-author strong {
    display: block;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
}

.hf-testimonial-author span {
    color: #8e8e8e;
    font-size: 0.85rem;
}

/* ---------- Team ---------- */
.hf-home-team {
    background: #121212;
}

.hf-home-team .hf-home-section-text {
    color: #c8c8c8 !important;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.hf-team-card {
    text-align: center;
    height: 100%;
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 1rem 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hf-team-card-media {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    margin-bottom: 1rem;
    border: 1px solid #2e2e2e;
}

.hf-team-card img,
.hf-home-body .hf-team-card img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: top center;
    border-radius: 0;
    border: none;
    margin: 0;
    background: #111;
    display: block;
}

.hf-team-card h3,
.hf-home-body .hf-team-card h3 {
    font-family: 'Jost', 'Heebo', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    margin: 0 0 0.35rem !important;
    text-transform: none !important;
    color: #ffffff !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
}

.hf-team-card p,
.hf-home-body .hf-team-card p {
    color: #88F047 !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.hf-team-modal {
    background: #1c1c1c;
    color: #ffffff;
    border: 1px solid #3C3C3C;
}

.hf-team-modal .modal-header {
    border-bottom-color: #3C3C3C;
}

.hf-team-modal .modal-title {
    font-family: 'Jost', 'Heebo', sans-serif !important;
    font-weight: 700;
    color: #ffffff !important;
}

.hf-team-modal-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #2c2c2c;
}

.hf-team-modal-item:last-child {
    border-bottom: 0;
}

.hf-team-modal-item img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
    background: #111;
}

.hf-team-modal-item h3,
.hf-home-body .hf-team-modal-item h3 {
    font-family: 'Jost', 'Heebo', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.2rem !important;
    text-transform: none !important;
    color: #ffffff !important;
}

.hf-team-modal-role {
    color: #88F047 !important;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.hf-team-modal-item p:last-child {
    color: #c4c4c4 !important;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
}

/* ---------- Resources ---------- */
.hf-resource-card {
    height: 100%;
    background: #1c1c1c;
    border: 1px solid #2e2e2e;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hf-resource-media {
    display: block;
    background: #222;
    text-decoration: none;
    overflow: hidden;
}

.hf-resource-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #222;
}

.hf-resource-media img.hf-resource-img-fallback {
    object-fit: contain;
    padding: 1.5rem;
    background: #1a1a1a;
}

.hf-resource-body {
    padding: 1.2rem;
    flex: 1;
}

.hf-resource-type {
    display: inline-block;
    color: #88F047;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    font-family: 'Heebo', sans-serif;
}

.hf-resource-body h3 {
    font-family: 'Jost', 'Heebo', sans-serif !important;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.35;
    text-transform: none !important;
}

.hf-resource-body h3 a {
    color: #ffffff;
    text-decoration: none;
}

.hf-resource-body h3 a:hover {
    color: #88F047;
}

.hf-resource-body p {
    color: #b5b5b5;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
}

/* ---------- Final CTA ---------- */
.hf-home-cta {
    padding: 4.5rem 0;
    background: linear-gradient(135deg, #0f0f0f 0%, #14301a 45%, #0d2f33 100%);
    border-top: 1px solid #2a2a2a;
}

.hf-home-cta .hf-home-section-text {
    max-width: 640px;
    margin: 0 auto 1.5rem;
}

/* ---------- Footer (compacto, contraste como el footer actual) ---------- */
.hf-home-footer {
    background-color: #1C1C1C !important;
    padding: 20px 0 0 !important;
    color: #ffffff;
    margin-top: 40px !important;
}

.hf-home-footer-logo {
    max-width: 200px;
    width: 100%;
    height: auto;
    margin-bottom: 16px;
}

.hf-home-footer-desc {
    color: #ffffff !important;
    font-size: 14px;
    line-height: 1.5;
    max-width: 360px;
    margin: 0;
    opacity: 1;
}

.hf-home-footer-title {
    color: #ffffff !important;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    font-family: 'Heebo', sans-serif !important;
    text-transform: none !important;
}

.hf-home-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hf-home-footer-links li {
    margin-bottom: 10px;
}

.hf-home-footer-links a {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Heebo', sans-serif;
    display: block;
    opacity: 0.92;
}

.hf-home-footer-links a:hover {
    color: #92ff64 !important;
    opacity: 1;
}

.hf-home-footer-bottom {
    margin-top: 20px;
    padding: 10px 0;
    background: #111111;
    font-size: 0.8rem;
    color: #ffffff !important;
}

.hf-home-footer-bottom p {
    color: #ffffff !important;
    margin: 0;
}

.hf-home-footer-bottom a {
    color: #ffffff !important;
    text-decoration: none;
}

.hf-home-footer-bottom a span {
    color: #FFB800 !important;
}


/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .hf-story,
    .hf-story-reverse {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        margin-bottom: 3.5rem;
    }

    .hf-story-reverse .hf-story-copy,
    .hf-story-reverse .hf-showcase {
        order: initial;
    }

    .hf-ph-float {
        position: static;
        width: 100%;
        margin-top: 0.75rem;
        min-height: 84px;
    }

    .hf-showcase,
    .hf-showcase-hero,
    .hf-showcase-phone {
        padding: 0;
    }

    .hf-ph-phone {
        width: min(100%, 260px);
        min-height: 380px;
    }
}

@media (max-width: 575.98px) {
    .hf-home-section {
        padding: 3.25rem 0;
    }

    .hf-home-hero {
        padding: 1.25rem 0 2.75rem;
    }

    .hf-home-hero-actions .hf-btn,
    .hf-home-hero-actions-center .hf-btn {
        width: 100%;
    }

    .hf-routine-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .hf-routine-actions .hf-btn {
        flex: 1;
        justify-content: center;
    }

    .hf-ph-label strong {
        font-size: 0.88rem;
    }
}

/* Override global condensed heading styles that leak into this page */
.hf-home-body .heading-font,
.hf-home .heading-font {
    font-family: 'Jost', 'Heebo', sans-serif !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
}
