/* ================================
   TalentUs — Home (SaaS layout)
   Loaded only by index.html / index-en.html, after styles.css.
   Solid colors only (no gradients).
   ================================ */

.home {
    --ink: #0F1B2A;
    --ink-soft: #1B2A3D;
    --line: #E3E9F0;
    --tint: #F5F8FB;
    --stage: #E7EEF6;
    --radius-card: 20px;
    --section-y: clamp(4.5rem, 3rem + 5vw, 7.5rem);
}

/* ---------- Shared building blocks ---------- */
.h-section {
    padding: var(--section-y) 0;
    background: var(--bg-white);
}

.h-tint {
    background: var(--tint);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.h-eyebrow-text {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.875rem;
}

.h-head {
    max-width: 680px;
    margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.h-head-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.h-head h2 {
    font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.028em;
    color: var(--ink);
}

.h-head p {
    margin-top: 1rem;
    font-size: var(--font-lg);
    line-height: 1.6;
    color: var(--text-secondary);
}

.h-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: gap 0.2s ease, color 0.2s ease;
}

.h-link:hover {
    gap: 0.625rem;
    color: var(--primary-dark);
}

.h-link-light {
    color: #FFFFFF;
}

.h-link-light:hover {
    color: #D6E2EF;
}

.h-cell-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-subtle);
    color: var(--primary-color);
    flex-shrink: 0;
}

.h-cell-icon svg {
    width: 22px;
    height: 22px;
}

.h-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-subtle);
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 1px;
}

.h-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.h-actions-left {
    justify-content: flex-start;
}

.home .btn-large {
    padding: 0.9375rem 1.625rem;
    font-size: 1rem;
    border-radius: 12px;
}

/* ---------- Hero ---------- */
.h-hero {
    position: relative;
    padding: calc(76px + clamp(3.5rem, 2rem + 4vw, 6rem)) 0 0;
    background: var(--tint);
    overflow: hidden;
}

/* Solid band behind the lower half of the product shot */
.h-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34%;
    background: var(--ink);
    z-index: 0;
}

.h-hero .container {
    position: relative;
    z-index: 1;
}

.h-hero-copy {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.h-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.3125rem 0.875rem 0.3125rem 0.3125rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.h-pill:hover {
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.h-pill-tag {
    padding: 0.1875rem 0.625rem;
    border-radius: 999px;
    background: var(--primary-color);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
}

.h-hero h1 {
    font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -0.032em;
    color: var(--ink);
    text-wrap: balance;
}

.h-accent {
    color: var(--primary-color);
}

.h-lead {
    max-width: 640px;
    margin: 1.5rem auto 2.25rem;
    font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-secondary);
}

.h-assurances {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.h-assurances li {
    display: inline-flex;
    align-items: center;
    gap: 0.4375rem;
}

.h-assurances svg {
    color: var(--accent-color);
}

.h-hero-visual {
    margin: clamp(3rem, 2rem + 3vw, 4.5rem) auto 0;
    max-width: 1120px;
    padding-bottom: clamp(3rem, 2rem + 3vw, 5rem);
}

.h-stage {
    position: relative;
    padding: clamp(0.5rem, 0.25rem + 1vw, 1rem);
    background: var(--stage);
    border: 1px solid #D5E0EC;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(15, 27, 42, 0.18);
}

.h-stage .am-browser {
    box-shadow: 0 1px 2px rgba(15, 27, 42, 0.08);
}

.h-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.125rem;
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 27, 42, 0.16);
    text-align: left;
}

.h-float b {
    display: block;
    font-size: 0.9375rem;
    color: var(--ink);
}

.h-float small {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.h-float-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-subtle);
    color: var(--primary-color);
}

.h-float-icon.ok {
    background: #E5F4EC;
    color: var(--accent-color);
}

.h-float-a {
    left: -3rem;
    bottom: -1.75rem;
}

.h-float-b {
    right: -3rem;
    top: -1.75rem;
}

/* ---------- Logos ---------- */
.h-logos {
    padding: 3rem 0 3.25rem;
    background: var(--ink);
    text-align: center;
}

.h-logos-label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8A99AA;
    margin-bottom: 1.5rem;
}

.h-logos-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 3.25rem;
}

.h-logos-row li {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #C3CDD8;
}

/* ---------- Bento ---------- */
.h-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.h-cell {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.75rem;
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.h-cell:hover {
    border-color: #C7D5E4;
    box-shadow: 0 12px 32px rgba(15, 27, 42, 0.08);
    transform: translateY(-2px);
}

.h-cell h3 {
    margin-top: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.h-cell p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.h-cell-wide {
    grid-column: span 2;
}

.h-cell-tall {
    grid-row: span 2;
}

.h-cell-dark {
    background: var(--ink);
    border-color: var(--ink);
}

.h-cell-dark h3 {
    color: #FFFFFF;
    margin-top: 0;
}

.h-cell-dark:hover {
    border-color: var(--ink);
}

.h-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.25rem 0 0.75rem;
}

.h-chips li {
    padding: 0.3125rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-size: 0.8125rem;
    color: #D6DEE7;
}

.h-cell-dark .h-link {
    margin-top: auto;
}

/* Mini visuals inside bento cells */
.h-mini {
    margin-top: auto;
    padding: 1rem 1.125rem;
    background: var(--tint);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.h-mini-pay {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.h-mini-row span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.h-mini-row b {
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.h-mini-row.neg b {
    color: #B42318;
}

.h-mini-row.tot b {
    color: var(--primary-color);
}

.h-mini-match {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.h-mini-score {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.375rem 0.75rem;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.h-mini-score i {
    grid-column: 1;
    display: block;
    height: 6px;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
}

.h-mini-score em {
    display: block;
    height: 100%;
    background: var(--primary-color);
}

.h-mini-score b {
    grid-row: 1 / span 2;
    grid-column: 2;
    min-width: 2.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    background: var(--primary-subtle);
    color: var(--primary-color);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* ---------- Stats band ---------- */
.h-stats {
    padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0;
    background: var(--primary-color);
}

.h-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.h-stat {
    padding: 0.5rem 2rem;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.h-stat:first-child {
    border-left: 0;
}

.h-stat .stat-number-big {
    font-size: clamp(2.25rem, 1.75rem + 2vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: #FFFFFF;
    /* base rule clips text to a background; render as plain solid text here */
    background: none;
    -webkit-text-fill-color: currentColor;
    margin-bottom: 0;
    font-variant-numeric: tabular-nums;
}

.h-stat-label {
    margin-top: 0.375rem;
    font-size: 0.9375rem;
    color: #D6E2EF;
}

/* ---------- Screens (segmented tabs) ---------- */
.home .screens-tabs-wrap,
.home .shots {
    max-width: 1120px;
}

.home .shot-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 2rem;
    padding: 0.3125rem;
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.home .shot-tab {
    border: 0;
    border-radius: 10px;
    background: transparent;
    padding: 0.5625rem 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.home .shot-tab:hover {
    background: var(--tint);
    color: var(--ink);
}

.home .shot-tab.active {
    background: var(--ink);
    color: #FFFFFF;
}

.home .shot-panel .am-browser {
    box-shadow: 0 24px 56px rgba(15, 27, 42, 0.14);
}

.home .shot-caption {
    margin-top: 1.25rem;
}

/* ---------- Deep-dive rows ---------- */
.h-row {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(2.5rem, 1rem + 5vw, 5.5rem);
    align-items: center;
}

.h-row + .h-row {
    margin-top: clamp(4rem, 3rem + 4vw, 7rem);
}

.h-row-rev .h-row-copy {
    order: 2;
}

.h-row-copy h3 {
    font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.375rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.h-row-copy > p {
    margin: 1rem 0 1.5rem;
    font-size: var(--font-lg);
    line-height: 1.6;
    color: var(--text-secondary);
}

.h-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 1.75rem;
}

.h-list li {
    display: flex;
    gap: 0.75rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.h-list-detail strong {
    display: block;
    font-weight: 600;
    color: var(--ink);
}

.h-list-detail li > span:last-child {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.h-row-visual {
    min-width: 0;
    padding: clamp(1.5rem, 1rem + 2vw, 3rem);
    background: var(--stage);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.h-row-visual > .payroll-card,
.h-row-visual > .pipeline-visual {
    width: 100%;
    max-width: 520px;
}

.h-row-visual .payroll-card {
    box-shadow: 0 20px 44px rgba(15, 27, 42, 0.14);
}

.h-row-phones {
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
}

.h-row-phones .phones {
    width: 100%;
    justify-content: flex-start;
    padding: 0.5rem clamp(1.5rem, 1rem + 2vw, 3rem) 1rem;
    scroll-padding: 0 clamp(1.5rem, 1rem + 2vw, 3rem);
}

.h-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* ---------- What's new ---------- */
.h-news {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.h-news-card {
    padding: 1.5rem;
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.h-news-card:hover {
    border-color: #C7D5E4;
    box-shadow: 0 10px 28px rgba(15, 27, 42, 0.07);
}

.h-news-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.125rem;
}

.h-news-top .h-cell-icon {
    width: 40px;
    height: 40px;
}

.h-new {
    padding: 0.1875rem 0.625rem;
    border-radius: 999px;
    background: #E5F4EC;
    color: #1E6B4E;
    font-size: 0.75rem;
    font-weight: 700;
}

.h-news-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.h-news-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ---------- Testimonials ---------- */
.home .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.home .testimonial-card {
    border-radius: var(--radius-card);
    border-color: var(--line);
    box-shadow: none;
    padding: 2rem;
}

.home .testimonial-card blockquote {
    font-size: 1.0625rem;
    color: var(--ink);
}

.home .testimonial-card figcaption {
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

/* ---------- ROI ---------- */
.home .roi-card {
    background: var(--bg-white);
    border-color: var(--line);
    border-radius: 24px;
    box-shadow: 0 20px 48px rgba(15, 27, 42, 0.06);
}

.home .roi-card h2 {
    font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.375rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.home .roi-card .section-badge {
    background: transparent;
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary-color);
}

/* ---------- Pricing ---------- */
.home .pricing-teaser {
    padding: var(--section-y) 0;
}

.home .pt-card {
    border-radius: var(--radius-card);
    border-color: var(--line);
    box-shadow: none;
}

.home .pt-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 24px 48px rgba(44, 90, 135, 0.16);
}

/* ---------- FAQ ---------- */
.h-faq {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: clamp(2rem, 1rem + 4vw, 5rem);
    align-items: start;
}

.h-faq-intro {
    position: sticky;
    top: 110px;
}

.h-faq-intro .h-head {
    margin-bottom: 1.5rem;
}

.home .faqs-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: none;
    margin: 0;
}

.home .faq-item {
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: none;
    background: var(--bg-white);
}

.home .faq-question {
    font-weight: 600;
    color: var(--ink);
}

/* ---------- Final CTA + demo ---------- */
.h-final {
    padding: var(--section-y) 0;
    background: var(--ink);
    color: #FFFFFF;
}

.h-final-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 1rem + 5vw, 5.5rem);
    align-items: center;
}

.h-final .h-eyebrow-text {
    color: #8FB3D6;
}

.h-final h2 {
    font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #FFFFFF;
}

.h-final-copy > p {
    margin: 1rem 0 1.75rem;
    font-size: var(--font-lg);
    color: #C3CDD8;
}

.h-final .demo-benefits {
    margin-bottom: 2rem;
}

.h-final .demo-benefits li {
    color: #DCE3EA;
}

.h-final .demo-benefits svg {
    color: #7FD1A8;
}

.h-newsletter {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    scroll-margin-top: 110px;
}

.h-newsletter > p {
    margin-bottom: 0.875rem;
    font-size: 0.9375rem;
    color: #C3CDD8;
}

.h-newsletter .info-form {
    max-width: 480px;
}

.h-newsletter .info-input-group {
    border-radius: 12px;
    box-shadow: none;
}

.h-newsletter .info-privacy {
    text-align: left;
    color: #8A99AA;
}

.h-final .demo-form-container {
    background: var(--bg-white);
    color: var(--text-primary);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.home #demo,
.home #app-movil,
.home section[id] {
    scroll-margin-top: 80px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
    .h-float-a { left: 1rem; }
    .h-float-b { right: 1rem; }
}

@media (max-width: 1024px) {
    .h-bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .h-cell-tall {
        grid-row: auto;
    }

    .h-news,
    .home .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .h-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 2rem;
    }

    .h-stat:nth-child(3) {
        border-left: 0;
    }

    .h-row,
    .h-final-grid,
    .h-faq {
        grid-template-columns: 1fr;
    }

    .h-row-rev .h-row-copy {
        order: 0;
    }

    .h-faq-intro {
        position: static;
    }

    .h-float {
        display: none;
    }
}

@media (max-width: 768px) {
    .h-hero {
        padding-top: calc(70px + 2.5rem);
    }

    .h-hero::after {
        height: 22%;
    }

    .h-pill-text {
        white-space: normal;
        text-align: left;
    }

    .h-actions .btn {
        width: 100%;
    }

    .h-bento,
    .h-news,
    .home .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .h-cell-wide {
        grid-column: auto;
    }

    .h-mini-pay {
        grid-template-columns: repeat(2, 1fr);
    }

    .h-logos-row {
        gap: 0.75rem 1.75rem;
    }

    .h-logos-row li {
        font-size: 1.0625rem;
    }

    .h-stat {
        padding: 0.5rem 1rem;
    }

    .home .shot-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .home .shot-tab {
        white-space: nowrap;
    }

    .h-row-visual {
        border-radius: 18px;
    }
}

/* ---------- Fixes for reused blocks ---------- */
.home .faq-item {
    padding: 0;
    overflow: hidden;
}

.home .faq-item:hover {
    transform: none;
    border-color: #C7D5E4;
}

.home .faq-question {
    padding: 1.125rem 1.5rem;
    text-align: left;
}

.home .roi-card h2 {
    line-height: 1.15;
    margin: 0.25rem 0 1rem;
}

.h-row-visual .payroll-stat-value.negative {
    color: #B42318;
}

/* Pipeline as a 2x2 grid so it fits half a column */
.h-row-visual .pipeline-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    overflow: visible;
    padding: 0;
}

.h-row-visual .pipeline-arrow {
    display: none;
}

.h-row-visual .pipeline-stage-card {
    min-width: 0;
    box-shadow: 0 10px 28px rgba(15, 27, 42, 0.10);
}

/* Separate the dark closing section from the dark footer */
.home ~ .footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Hero screen switcher ---------- */
.h-hero-tabs {
    margin-bottom: 1.25rem;
}

/* Same height for every screen so the hero does not jump between tabs */
.h-stage .am-app {
    min-height: 600px;
}

.h-stage .shot-panel {
    animation: h-fade 0.25s ease;
}

@keyframes h-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .h-stage .shot-panel { animation: none; }
}

/* ---------- App mockup helpers (.amx-*) ---------- */
.amx-g21 { grid-template-columns: 1.7fr 1fr; }
.amx-g12 { grid-template-columns: 240px 1fr; }

.amx-spark {
    display: block;
    width: 100%;
    height: 22px;
    margin: 2px 0 4px;
}

.amx-line {
    display: block;
    width: 100%;
    height: 132px;
    margin-top: 10px;
}

.amx-line .g {
    stroke: #f2f4f7;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.amx-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 9.5px;
    color: var(--am-g5);
}

.amx-ev {
    display: grid;
    grid-template-columns: 8px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f2f4f7;
}

.amx-ev:last-child { border-bottom: 0; }

.amx-ev i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.amx-ev b,
.amx-b {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--am-g9);
}

.amx-ev small,
.amx-s {
    display: block;
    font-size: 10.5px;
    color: var(--am-g6);
}

.amx-hbar {
    display: grid;
    grid-template-columns: 118px 1fr 28px;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-size: 11px;
    color: var(--am-g7);
}

.amx-hbar i {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: var(--am-g2);
    overflow: hidden;
}

.amx-hbar em {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--am-p);
}

.amx-hbar b {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--am-g9);
}

.amx-prof {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.amx-av-lg {
    width: 48px !important;
    height: 48px !important;
    font-size: 15px !important;
}

.amx-prof-id { flex: 1; min-width: 200px; }
.amx-prof-act { margin-left: auto; }

.amx-g3c {
    display: grid;
    grid-template-columns: 1fr 1fr 0.9fr;
    gap: 18px;
}

.amx-sub {
    margin: 0 0 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--am-g6);
}

.amx-sub.am-mt {
    margin-top: 16px;
}

.amx-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
}

.amx-fields small {
    display: block;
    font-size: 10px;
    color: var(--am-g5);
}

.amx-fields b {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--am-g9);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.amx-cand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.amx-cand-h {
    display: flex;
    align-items: center;
    gap: 12px;
}

.amx-ring {
    position: relative;
    width: 116px;
    height: 116px;
    align-self: center;
}

.amx-ring svg {
    width: 100%;
    height: 100%;
}

.amx-ring b {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    color: var(--am-g9);
}

.amx-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid #f2f4f7;
    text-align: center;
}

.amx-mini small {
    display: block;
    font-size: 10px;
    color: var(--am-g5);
}

.amx-mini b {
    font-size: 12px;
}

.amx-why {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.amx-why li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: var(--am-g7);
}

.amx-ok {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--am-okl);
    color: var(--am-ok);
    flex-shrink: 0;
}

.amx-prog {
    width: 260px;
    max-width: 100%;
}

.amx-prog b {
    font-size: 13px;
}

@media (max-width: 760px) {
    .amx-g21, .amx-g12, .amx-g3c, .h-stage .am-g2 { grid-template-columns: 1fr; }
    .amx-hbar { grid-template-columns: 96px 1fr 28px; }
    .amx-prof-act { margin-left: 0; }
    .h-stage .am-app { min-height: 0; }
}

/* ---------- Card surfaces: tinted instead of white-on-white ---------- */
#features .h-cell:not(.h-cell-dark),
#testimonials .testimonial-card {
    background: #F2F6FA;
    border-color: #E1E8F0;
}

#features .h-cell:not(.h-cell-dark):hover,
#testimonials .testimonial-card:hover {
    background: #FFFFFF;
    border-color: #C7D5E4;
}

#features .h-cell-icon {
    background: #FFFFFF;
    border: 1px solid #DCE5EE;
}

#features .h-mini {
    background: #FFFFFF;
    border-color: #DCE5EE;
}

#testimonials .t-avatar {
    background: #FFFFFF;
    border: 1px solid #DCE5EE;
}

#testimonials .testimonial-card figcaption {
    border-top-color: #DCE5EE;
}

/* Cards that already sit on a tinted section stay white, with a defined edge */
.h-tint .h-news-card {
    border-color: #DCE5EE;
    box-shadow: 0 1px 2px rgba(15, 27, 42, 0.04);
}

/* ================================
   Plataforma: employee lifecycle
   ================================ */
.hl-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.hl-head .h-head {
    margin-bottom: 0;
}

.hl-head-btn {
    flex-shrink: 0;
}

/* Track of 6 stages joined by a line */
.home .hl-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    width: 100%;
    margin: 0 0 1.5rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

.home .hl-track::before {
    content: "";
    position: absolute;
    top: 27px;
    left: calc(100% / 12);
    right: calc(100% / 12);
    height: 2px;
    background: var(--line);
}

.home .hl-track .hl-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    padding: 0 0.5rem 1rem;
    background: none;
    border: 0;
    border-radius: 0;
    color: var(--text-secondary);
    text-align: center;
    cursor: pointer;
}

.home .hl-track .hl-step:hover {
    background: none;
    color: var(--ink);
}

.hl-node {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--bg-white);
    border: 1px solid #D5E0EC;
    color: var(--primary-color);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hl-step:hover .hl-node {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.hl-step-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
}

.hl-step-num {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-light);
}

.hl-step-text b {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}

.hl-step-text small {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* Active stage: filled node + marker under the label */
.home .hl-track .hl-step.active {
    background: none;
    color: var(--ink);
}

.hl-step.active .hl-node {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #FFFFFF;
    box-shadow: 0 10px 24px rgba(44, 90, 135, 0.28);
}

.hl-step.active .hl-step-num {
    color: var(--primary-color);
}

.hl-step::after {
    content: "";
    position: absolute;
    left: 25%;
    right: 25%;
    bottom: 0;
    height: 3px;
    border-radius: 3px;
    background: transparent;
    transition: background 0.2s ease;
}

.hl-step.active::after {
    background: var(--primary-color);
}

/* Stage detail panel */
.hl-panels {
    background: var(--tint);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
}

.hl-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    animation: h-fade 0.25s ease;
}

.hl-panel[hidden] {
    display: none;
}

.hl-panel-copy {
    padding: clamp(2rem, 1.25rem + 2.5vw, 3.5rem);
}

.hl-kicker {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: var(--primary-subtle);
    color: var(--primary-color);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hl-panel-copy h3 {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--ink);
}

.hl-panel-copy > p {
    margin: 0.875rem 0 1.5rem;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.hl-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1.75rem;
}

.hl-list li {
    display: flex;
    gap: 0.625rem;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--text-primary);
}

.hl-panel-visual {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 1.25rem + 2.5vw, 3.5rem);
    background: var(--stage);
    border-left: 1px solid var(--line);
}

/* Visual card (site palette) */
.hl-v-card {
    width: 100%;
    max-width: 420px;
    padding: 1.375rem 1.5rem;
    background: var(--bg-white);
    border: 1px solid #DCE5EE;
    border-radius: 18px;
    box-shadow: 0 24px 48px rgba(15, 27, 42, 0.12);
}

.hl-v-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.hl-v-head b {
    font-size: 0.9375rem;
    color: var(--ink);
}

.hl-tag {
    flex-shrink: 0;
    padding: 0.1875rem 0.625rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.hl-tag.ok { background: #E5F4EC; color: #1E6B4E; }
.hl-tag.in { background: var(--primary-subtle); color: var(--primary-color); }

.hl-v-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.hl-v-row b {
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.hl-v-row b.neg { color: #B42318; }

.hl-v-row:has(b.tot) {
    margin-top: 0.375rem;
    padding-top: 0.875rem;
    border-top: 1px dashed #CBD6E2;
    font-weight: 600;
    color: var(--ink);
}

.hl-v-row b.tot {
    font-size: 1.125rem;
    color: var(--primary-color);
}

.hl-v-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.375rem 0.75rem;
    align-items: center;
    padding: 0.4375rem 0;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.hl-v-bar i {
    grid-column: 1 / -1;
    display: block;
    height: 6px;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
}

.hl-v-bar em {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--primary-color);
}

.hl-v-bar b {
    grid-row: 1;
    grid-column: 2;
    font-variant-numeric: tabular-nums;
    color: var(--primary-color);
}

.hl-v-pipe {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hl-v-pipe div {
    padding: 0.625rem 0.5rem;
    border-radius: 10px;
    background: var(--tint);
    text-align: center;
}

.hl-v-pipe b {
    display: block;
    font-size: 1.125rem;
    color: var(--ink);
}

.hl-v-pipe span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.hl-v-prog {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.hl-v-prog b { color: var(--ink); }

.hl-v-meter {
    height: 8px;
    margin: 0.5rem 0 1rem;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
}

.hl-v-meter i {
    display: block;
    height: 100%;
    background: var(--primary-color);
}

.hl-v-tasks {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.hl-v-tasks li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.hl-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #CBD6E2;
    flex-shrink: 0;
}

.hl-v-tasks li.done .hl-dot { background: var(--accent-color); border-color: var(--accent-color); }
.hl-v-tasks li.done { color: var(--text-secondary); text-decoration: line-through; }
.hl-v-tasks li.prog .hl-dot { border-color: var(--primary-color); border-right-color: transparent; }

.hl-v-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.hl-v-grid div {
    padding: 0.625rem 0.75rem;
    border-radius: 10px;
    background: var(--tint);
}

.hl-v-grid small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
}

.hl-v-grid b {
    font-size: 0.9375rem;
    color: var(--ink);
}

.hl-v-tl {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-left: 1rem;
    border-left: 2px solid var(--line);
}

.hl-v-tl b {
    display: block;
    font-size: 0.875rem;
    color: var(--ink);
}

.hl-v-tl small {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.hl-v-files {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.hl-v-files span {
    padding: 0.25rem 0.625rem;
    border: 1px solid #DCE5EE;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Cross-cutting capabilities strip */
.hl-across {
    margin-top: 2rem;
    padding: 1.75rem 2rem;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.hl-across-label {
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
}

.hl-across-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.hl-across-item {
    display: flex;
    gap: 0.875rem;
}

.hl-across-item b {
    display: block;
    font-size: 0.9375rem;
    color: var(--ink);
}

.hl-across-item p {
    margin-top: 0.125rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

@media (max-width: 1024px) {
    .hl-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .hl-panel {
        grid-template-columns: 1fr;
    }

    .hl-panel-visual {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .hl-across-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Track scrolls sideways on phones */
    .home .hl-track {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
        margin-left: calc(var(--container-padding) * -1);
        margin-right: calc(var(--container-padding) * -1);
        padding: 0 var(--container-padding);
        width: auto;
    }

    .home .hl-track::before {
        display: none;
    }

    .home .hl-track .hl-step {
        flex: 0 0 112px;
    }

    .hl-step-text small {
        display: none;
    }

    .hl-list,
    .hl-across-grid {
        grid-template-columns: 1fr;
    }

    .hl-across {
        padding: 1.5rem;
    }
}

.home .hl-life {
    max-width: none;
}

/* Let grid columns shrink below their content width (prevents overflow on phones) */
.hl-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.hl-panel > * {
    min-width: 0;
}

@media (max-width: 1024px) {
    .hl-panel {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .home .hl-track .hl-step {
        flex: 0 0 92px;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .hl-node {
        width: 48px;
        height: 48px;
    }

    .hl-step-text b {
        font-size: 0.875rem;
    }

    .hl-panel-copy,
    .hl-panel-visual {
        padding: 1.5rem;
    }

    .hl-v-pipe {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================================
   App móvil: screen list + phone slider
   ================================ */
.h-mobile {
    padding: var(--section-y) 0;
    background: var(--ink);
    color: #FFFFFF;
    overflow: hidden;
}

.home .h-mobile .hm-slider {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 1rem + 5vw, 6rem);
    align-items: center;
    max-width: var(--container-max);
}

.h-mobile .h-eyebrow-text {
    color: #8FB3D6;
}

.h-mobile h2 {
    font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.028em;
    color: #FFFFFF;
}

.hm-lead {
    margin: 1rem 0 2rem;
    font-size: var(--font-lg);
    line-height: 1.6;
    color: #B8C4D1;
}

/* Screen list (tabs) */
.home .hm-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    width: 100%;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.home .hm-list .hm-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 0.875rem 1rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #B8C4D1;
    text-align: left;
    overflow: hidden;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.home .hm-list .hm-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #FFFFFF;
}

.home .hm-list .hm-item.active {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

.hm-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #8FB3D6;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.hm-item.active .hm-ic {
    background: var(--primary-color);
    color: #FFFFFF;
}

.hm-txt b {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #FFFFFF;
}

.hm-txt small {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #93A2B3;
}

/* Autoplay progress along the bottom of the active item */
.hm-bar {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: transparent;
    overflow: hidden;
}

.hm-bar i {
    display: block;
    width: 0;
    height: 100%;
    background: #8FB3D6;
}

.hm-item.active .hm-bar {
    background: rgba(255, 255, 255, 0.1);
}

.hm-item.run .hm-bar i {
    animation: hm-progress var(--hm-delay, 5500ms) linear forwards;
}

.hm-slider:not(.is-auto) .hm-bar,
.hm-slider.is-paused .hm-item .hm-bar i {
    animation: none;
}

.hm-slider:not(.is-auto) .hm-bar {
    display: none;
}

@keyframes hm-progress {
    from { width: 0; }
    to { width: 100%; }
}

/* Push + biometrics chips */
.hm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 1.75rem;
}

.hm-chips li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font-size: 0.875rem;
    color: #D6DEE7;
}

.hm-chip-ic {
    display: inline-flex;
    color: #8FB3D6;
}

.hm-chip-ic svg {
    width: 16px;
    height: 16px;
}

/* Phone stage */
.hm-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hm-stage {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 520px;
    padding: 3rem 1rem;
    background: var(--primary-color);
    border-radius: 28px;
}

.hm-phone {
    width: 212px;
    zoom: 1.3;
}

.hm-phone .ph-frame {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.hm-screen {
    animation: hm-in 0.35s ease;
}

@keyframes hm-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.hm-notif {
    position: absolute;
    top: 2rem;
    right: -1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #FFFFFF;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
    color: var(--ink);
    text-align: left;
}

.hm-notif b {
    display: block;
    font-size: 0.875rem;
}

.hm-notif small {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.hm-notif em {
    align-self: flex-start;
    font-style: normal;
    font-size: 0.75rem;
    color: var(--text-light);
}

.hm-notif-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #E5F4EC;
    color: var(--accent-color);
}

.hm-notif-ic svg {
    width: 16px;
    height: 16px;
}

/* Arrows and dots */
.hm-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.hm-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #FFFFFF;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hm-arrow:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

.hm-dots {
    display: flex;
    gap: 0.5rem;
}

.hm-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hm-dot.on {
    width: 28px;
    background: #FFFFFF;
}

.h-mobile :focus-visible {
    outline-color: #FFFFFF;
}

@media (max-width: 1024px) {
    .home .h-mobile .hm-slider {
        grid-template-columns: minmax(0, 1fr);
    }

    .hm-visual {
        order: -1;
    }

    .hm-notif {
        right: 0.75rem;
    }
}

@media (max-width: 768px) {
    /* On phones keep the names; only the active screen shows its description */
    .home .hm-list .hm-item {
        padding: 0.625rem 0.75rem;
    }

    .hm-item:not(.active) .hm-txt small {
        display: none;
    }

    .hm-ic {
        width: 34px;
        height: 34px;
    }

    .hm-phone {
        zoom: 1.1;
    }

    .hm-stage {
        padding: 2rem 0.5rem;
    }

    .hm-notif {
        top: auto;
        bottom: 1rem;
        right: 0.5rem;
        left: 0.5rem;
    }
}

/* Phone: wider native screen (244px) scaled with a transform, so content is not cramped */
.hm-phone {
    --hm-w: 244px;
    --hm-h: 540px;
    --hm-scale: 1.2;
    zoom: normal;
    width: calc(var(--hm-w) * var(--hm-scale));
    height: calc(var(--hm-h) * var(--hm-scale));
}

.hm-screen {
    width: var(--hm-w);
    transform: scale(var(--hm-scale));
    transform-origin: top left;
    animation: hm-fade 0.35s ease;
}

.hm-screen .ph-frame {
    height: var(--hm-h);
}

@keyframes hm-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .hm-phone {
        --hm-scale: 1.05;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hm-screen { animation: none; }
}

/* Phone screens: equal columns even when one value is long */
.hm-screen .ph-2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.hm-screen .ph-qa {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.hm-screen .ph-qa > div {
    min-width: 0;
}

@media (min-width: 1025px) {
    .hm-notif {
        top: 1.25rem;
        right: -3rem;
    }
}

@media (max-width: 1024px) {
    /* Order on narrow screens: heading, phone, screen list, chips */
    .home .h-mobile .hm-slider {
        gap: 0;
    }

    .hm-copy {
        display: contents;
    }

    .h-mobile .h-eyebrow-text { order: 1; justify-self: start; }
    .h-mobile h2 { order: 2; }
    .hm-lead { order: 3; }
    .hm-visual { order: 4; margin-bottom: 2rem; }
    .home .hm-list { order: 5; }
    .hm-chips { order: 6; }
}

.home .hm-list .hm-item {
    white-space: normal;
}

/* ================================
   Novedades: featured update + grid
   ================================ */
.hn-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.hn-card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    background: var(--bg-white);
    border: 1px solid #DCE5EE;
    border-radius: var(--radius-card);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hn-card:hover {
    border-color: #C7D5E4;
    box-shadow: 0 14px 34px rgba(15, 27, 42, 0.08);
    transform: translateY(-2px);
}

.hn-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.hn-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hn-mod {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
}

.hn-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.hn-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.hn-link {
    margin-top: auto;
    padding-top: 1.25rem;
    font-size: 0.9375rem;
}

/* Featured: spans two columns and two rows, solid brand surface */
.hn-feature {
    grid-column: span 2;
    grid-row: span 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    padding: 0;
    overflow: hidden;
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #FFFFFF;
}

.hn-feature:hover {
    border-color: var(--primary-color);
}

.hn-feature-copy {
    display: flex;
    flex-direction: column;
    padding: 2.25rem;
}

.hn-feature .h-cell-icon {
    background: rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
}

.hn-feature .hn-mod {
    color: #C9DAEA;
}

.hn-feature .h-new {
    background: #FFFFFF;
    color: var(--primary-color);
}

.hn-feature h3 {
    margin-top: 0.5rem;
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #FFFFFF;
}

.hn-feature p {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #DCE6F0;
}

.hn-feature .h-link {
    color: #FFFFFF;
}

.hn-visual {
    display: flex;
    align-items: center;
    padding: 2rem 0 2rem 0.5rem;
}

.hn-visual-card {
    width: 100%;
    padding: 1.25rem 1.25rem 0.75rem;
    background: var(--bg-white);
    border-radius: 18px 0 0 18px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
    color: var(--ink);
}

.hn-visual-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.875rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid var(--line);
}

.hn-visual-head b {
    font-size: 0.9375rem;
}

.hn-visual-head span {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.hn-rank {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 70px 32px;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid #F0F3F7;
}

.hn-rank:last-child {
    border-bottom: 0;
}

.hn-pos {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-subtle);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
}

.hn-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hn-name small {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.hn-rank i {
    display: block;
    height: 6px;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
}

.hn-rank em {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--primary-color);
}

.hn-rank b {
    text-align: right;
    font-size: 0.9375rem;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

@media (max-width: 1024px) {
    .hn-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hn-feature {
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .hn-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hn-feature {
        grid-column: auto;
        grid-template-columns: minmax(0, 1fr);
    }

    .hn-feature-copy {
        padding: 1.75rem;
    }

    .hn-visual {
        padding: 0 0 1.75rem 1.75rem;
    }

    .hn-card {
        padding: 1.5rem;
    }
}

.hn-points {
    display: grid;
    gap: 0.625rem;
    margin-top: 1.5rem;
}

.hn-points li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: #FFFFFF;
}

.hn-points li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    flex-shrink: 0;
}

.hn-rank {
    grid-template-columns: 24px minmax(0, 1.1fr) minmax(56px, 1fr) 28px;
}

@media (max-width: 768px) {
    .hn-feature {
        padding: 0;
    }

    .hn-feature-copy {
        padding: 1.5rem;
    }

    .hn-visual {
        padding: 0 0 1.5rem 1.5rem;
    }

    .hn-rank {
        grid-template-columns: 24px minmax(0, 1fr) 44px 26px;
        gap: 0.5rem;
    }
}
