/* ============================================================
   CÓMO FUNCIONA — TALENT CORE
   Estilos exclusivos de la página
============================================================ */

:root {
    --how-blue-dark: #0E3B5F;
    --how-blue: #005B81;
    --how-orange: #EB7615;
    --how-light: #F6F9FB;
    --how-light-blue: #EEF5F8;
    --how-border: #DCE5EB;
    --how-text: #50677A;
    --how-muted: #8A99A5;
    --how-white: #FFFFFF;
}


/* ============================================================
   HERO
============================================================ */

.how-works-hero {
    background: var(--how-light);
    padding: 55px 0 70px;
    overflow: hidden;
}

.how-works-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--how-orange);
    font-size: 14px;
    font-weight: 700;
    
    
}

.how-works-hero h1 {
    max-width: 650px;
    margin: 0;
    color: var(--how-blue-dark);
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.how-works-hero h1 strong {
    display: block;
    font-weight: 700;
}

.how-works-hero-text {
    max-width: 590px;
    margin: 25px 0 0;
    color: var(--how-text);
    font-size: 17px;
    line-height: 1.75;
}

.how-works-hero-actions {
    margin-top: 28px;
}

.how-works-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 25px;
    border-radius: 5px;
    background: var(--how-blue);
    color: var(--how-white);
    font-size: 14px;
    font-weight: 700;
    transition: .25s ease;
}

.how-works-button:hover {
    background: var(--how-blue-dark);
    color: var(--how-white);
}


/* ============================================================
   FLOW VISUAL
============================================================ */

.how-works-flow {
    position: relative;
    padding: 27px;
    border: 1px solid var(--how-border);
    border-radius: 16px;
    background: var(--how-white);
    box-shadow: 0 20px 55px rgba(14, 59, 95, .08);
}

.flow-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.flow-title span {
    color: var(--how-blue-dark);
    font-size: 15px;
    font-weight: 700;
}

.flow-title small {
    color: var(--how-muted);
    font-size: 12px;
}

.flow-item {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 78px;
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #FAFCFD;
}

.flow-item-active {
    border-color: rgba(235, 118, 21, .25);
    background: #FFF9F4;
}

.flow-number {
    flex: 0 0 35px;
    color: var(--how-muted);
    font-size: 11px;
    font-weight: 700;
}

.flow-item-active .flow-number {
    color: var(--how-orange);
}

.flow-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.flow-content strong {
    color: var(--how-blue-dark);
    font-size: 14px;
    font-weight: 700;
}

.flow-content span {
    margin-top: 4px;
    color: var(--how-muted);
    font-size: 11px;
    line-height: 1.4;
}

.flow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--how-light-blue);
    color: var(--how-blue);
}

.flow-item-active .flow-icon {
    background: rgba(235, 118, 21, .1);
    color: var(--how-orange);
}

.flow-connector {
    width: 1px;
    height: 16px;
    margin-left: 32px;
    background: var(--how-border);
}

.flow-footer {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--how-border);
    color: var(--how-text);
    font-size: 12px;
}

.flow-footer i {
    color: var(--how-orange);
    font-size: 15px;
}


/* ============================================================
   INTRO / JOURNEY
============================================================ */

.how-works-intro {
    padding: 100px 0;
    background: var(--how-white);
}

.how-works-section-heading {
    max-width: 750px;
    margin: 0 auto 70px;
    text-align: center;
}

.how-works-label {
    display: block;
    margin-bottom: 14px;
    color: var(--how-orange);
    font-size: 13px;
    font-weight: 700;
    
}

.how-works-section-heading h2 {
    margin: 0;
    color: var(--how-blue-dark);
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -1px;
}

.how-works-section-heading h2 strong {
    font-weight: 700;
}

.how-works-section-heading p {
    max-width: 650px;
    margin: 20px auto 0;
    color: var(--how-text);
    font-size: 16px;
    line-height: 1.75;
}

.talent-journey {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.journey-line {
    position: absolute;
    top: 28px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: var(--how-border);
}

.journey-step {
    position: relative;
    z-index: 2;
}

.journey-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 22px;
    border: 1px solid var(--how-border);
    border-radius: 50%;
    background: var(--how-white);
}

.journey-marker span {
    color: var(--how-blue);
    font-size: 12px;
    font-weight: 700;
}

.journey-content {
    padding: 0 8px;
    text-align: center;
}

.journey-content i {
    color: var(--how-orange);
    font-size: 23px;
}

.journey-content h3 {
    margin: 12px 0 8px;
    color: var(--how-blue-dark);
    font-size: 17px;
    font-weight: 700;
}

.journey-content p {
    margin: 0;
    color: var(--how-text);
    font-size: 13px;
    line-height: 1.65;
}


/* ============================================================
   IMPLEMENTATION
============================================================ */

.implementation-section {
    padding: 100px 0;
    background: var(--how-light);
}

.implementation-heading {
    max-width: 700px;
    margin-bottom: 55px;
}

.implementation-heading > span,
.process-detail-heading > span {
    display: block;
    margin-bottom: 14px;
    color: var(--how-orange);
    font-size: 13px;
    font-weight: 700;
    
}

.implementation-heading h2,
.process-detail-heading h2 {
    margin: 0;
    color: var(--how-blue-dark);
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -1px;
}

.implementation-heading h2 strong,
.process-detail-heading h2 strong {
    font-weight: 700;
}

.implementation-heading p {
    max-width: 630px;
    margin: 20px 0 0;
    color: var(--how-text);
    line-height: 1.7;
}

.implementation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.implementation-card {
    position: relative;
    min-height: 280px;
    padding: 28px;
    border: 1px solid var(--how-border);
    border-radius: 12px;
    background: var(--how-white);
}

.implementation-card-featured {
    border-color: rgba(235, 118, 21, .35);
}

.implementation-number {
    position: absolute;
    top: 23px;
    right: 25px;
    color: var(--how-muted);
    font-size: 12px;
    font-weight: 700;
}

.implementation-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 35px;
    border-radius: 9px;
    background: var(--how-light-blue);
    color: var(--how-blue);
    font-size: 20px;
}

.implementation-card-featured .implementation-icon {
    background: rgba(235, 118, 21, .1);
    color: var(--how-orange);
}

.implementation-card h3 {
    margin: 0 0 12px;
    color: var(--how-blue-dark);
    font-size: 20px;
    font-weight: 700;
}

.implementation-card p {
    margin: 0;
    color: var(--how-text);
    font-size: 14px;
    line-height: 1.7;
}


/* ============================================================
   PROCESS DETAIL
============================================================ */

.process-detail-section {
    padding: 100px 0;
    background: var(--how-white);
}

.process-detail-heading {
    max-width: 760px;
    margin-bottom: 55px;
}

.process-detail {
    border-top: 1px solid var(--how-border);
}

.process-detail-row {
    display: grid;
    grid-template-columns: 70px 1.7fr 1fr;
    gap: 35px;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid var(--how-border);
}

.process-detail-number {
    color: var(--how-orange);
    font-size: 13px;
    font-weight: 700;
}

.process-detail-main {
    display: flex;
    align-items: center;
    gap: 20px;
}

.process-detail-icon {
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 9px;
    background: var(--how-light-blue);
    color: var(--how-blue);
    font-size: 19px;
}

.process-detail-main h3 {
    margin: 0 0 7px;
    color: var(--how-blue-dark);
    font-size: 18px;
    font-weight: 700;
}

.process-detail-main p {
    max-width: 580px;
    margin: 0;
    color: var(--how-text);
    font-size: 14px;
    line-height: 1.65;
}

.process-detail-result {
    padding-left: 25px;
    border-left: 1px solid var(--how-border);
}

.process-detail-result span {
    display: block;
    margin-bottom: 6px;
    color: var(--how-muted);
    font-size: 11px;
    
}

.process-detail-result strong {
    color: var(--how-blue-dark);
    font-size: 14px;
    line-height: 1.5;
}


/* ============================================================
   VISIBILITY / DASHBOARD
============================================================ */

.visibility-section {
    padding: 100px 0;
    background: var(--how-light);
}

.visibility-label {
    display: block;
    margin-bottom: 14px;
    color: var(--how-orange);
    font-size: 13px;
    font-weight: 700;
    
}

.visibility-section h2 {
    margin: 0;
    color: var(--how-blue-dark);
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -1px;
}

.visibility-section h2 strong {
    font-weight: 700;
}

.visibility-section p {
    max-width: 520px;
    margin: 22px 0 0;
    color: var(--how-text);
    font-size: 16px;
    line-height: 1.75;
}

.visibility-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    color: var(--how-blue);
    font-size: 14px;
    font-weight: 700;
}

.visibility-link:hover {
    color: var(--how-orange);
}

.visibility-dashboard {
    padding: 25px;
    border: 1px solid var(--how-border);
    border-radius: 14px;
    background: var(--how-white);
    box-shadow: 0 20px 55px rgba(14, 59, 95, .07);
}

.dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--how-border);
}

.dashboard-top div:first-child {
    display: flex;
    flex-direction: column;
}

.dashboard-top span {
    color: var(--how-muted);
    font-size: 11px;
}

.dashboard-top strong {
    margin-top: 4px;
    color: var(--how-blue-dark);
    font-size: 16px;
}

.dashboard-status {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--how-muted);
    font-size: 11px;
}

.dashboard-status span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--how-orange);
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.dashboard-metric {
    padding: 15px;
    border-radius: 8px;
    background: var(--how-light);
}

.dashboard-metric span {
    display: block;
    color: var(--how-muted);
    font-size: 10px;
}

.dashboard-metric strong {
    display: block;
    margin: 7px 0 2px;
    color: var(--how-blue-dark);
    font-size: 23px;
}

.dashboard-metric small {
    color: var(--how-muted);
    font-size: 9px;
}

.dashboard-chart {
    margin-top: 22px;
    padding: 18px;
    border: 1px solid var(--how-border);
    border-radius: 9px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-header span {
    color: var(--how-blue-dark);
    font-size: 12px;
    font-weight: 700;
}

.chart-header small {
    color: var(--how-muted);
    font-size: 9px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 130px;
    margin-top: 18px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--how-border);
}

.chart-bar {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 12%;
    height: 100%;
}

.chart-bar span {
    display: block;
    width: 18px;
    border-radius: 4px 4px 0 0;
    background: var(--how-blue);
}

.chart-bar small {
    position: absolute;
    bottom: -20px;
    color: var(--how-muted);
    font-size: 8px;
    white-space: nowrap;
}

.dashboard-note {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 17px;
    color: var(--how-muted);
    font-size: 9px;
}

.dashboard-note i {
    color: var(--how-orange);
}


/* ============================================================
   CTA
============================================================ */

.how-works-cta {
    padding: 70px 0;
    background: var(--how-blue-dark);
}

.how-works-cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.how-works-cta-inner > div {
    max-width: 650px;
}

.how-works-cta-inner span {
    display: block;
    margin-bottom: 10px;
    color: var(--how-orange);
    font-size: 13px;
    font-weight: 700;
    
}

.how-works-cta h2 {
    margin: 0;
    color: var(--how-white);
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 400;
    line-height: 1.15;
}

.how-works-cta h2 strong {
    font-weight: 700;
}

.how-works-cta p {
    margin: 15px 0 0;
    color: rgba(255,255,255,.75);
    font-size: 15px;
}

.how-works-cta-button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 23px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 5px;
    color: var(--how-white);
    font-size: 14px;
    font-weight: 700;
    transition: .25s ease;
}

.how-works-cta-button:hover {
    border-color: var(--how-orange);
    background: var(--how-orange);
    color: var(--how-white);
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1199px) {

    .talent-journey {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 55px;
    }

    .journey-line {
        display: none;
    }

    .implementation-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 991px) {

    .how-works-hero {
        padding: 50px 0 65px;
    }

    .how-works-hero-content {
        text-align: center;
    }

    .how-works-hero-text {
        max-width: 650px;
    }

    .how-works-hero-actions {
        margin-bottom: 25px;
    }

    .how-works-flow {
        max-width: 650px;
        margin: 0 auto;
    }

    .how-works-intro,
    .implementation-section,
    .process-detail-section,
    .visibility-section {
        padding: 80px 0;
    }

    .process-detail-row {
        grid-template-columns: 50px 1fr;
        gap: 20px;
    }

    .process-detail-result {
        grid-column: 2;
        padding-left: 0;
        padding-top: 15px;
        border-left: 0;
        border-top: 1px solid var(--how-border);
    }

    .how-works-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

}


@media (max-width: 767px) {

    .how-works-hero {
        padding: 40px 0 55px;
    }

    .how-works-hero h1 {
        font-size: 40px;
    }

    .how-works-hero-text {
        font-size: 15px;
    }

    .how-works-flow {
        padding: 20px;
    }

    .flow-item {
        min-height: 70px;
    }

    .how-works-section-heading {
        margin-bottom: 50px;
    }

    .talent-journey {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 45px;
    }

    .implementation-grid {
        grid-template-columns: 1fr;
    }

    .implementation-card {
        min-height: auto;
    }

    .process-detail-main {
        align-items: flex-start;
    }

    .dashboard-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .visibility-dashboard {
        padding: 18px;
    }

}


@media (max-width: 575px) {

    .how-works-hero h1 {
        font-size: 36px;
    }

    .talent-journey {
        grid-template-columns: 1fr;
    }

    .journey-step {
        display: grid;
        grid-template-columns: 56px 1fr;
        gap: 18px;
        align-items: start;
    }

    .journey-marker {
        margin: 0;
    }

    .journey-content {
        padding: 4px 0 0;
        text-align: left;
    }

    .journey-content h3 {
        margin-top: 7px;
    }

    .process-detail-row {
        grid-template-columns: 40px 1fr;
        gap: 15px;
    }

    .process-detail-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .process-detail-result {
        grid-column: 2;
    }

    .dashboard-metrics {
        gap: 7px;
    }

    .dashboard-metric {
        padding: 12px;
    }

    .dashboard-metric strong {
        font-size: 20px;
    }

    .dashboard-chart {
        padding: 12px;
    }

    .chart-header small {
        display: none;
    }

}


/* ============================================================
   SHORT DESKTOP SCREENS
============================================================ */

@media (max-height: 800px) and (min-width: 992px) {

    .how-works-hero {
        padding-top: 30px;
        padding-bottom: 50px;
    }

    .how-works-hero h1 {
        font-size: clamp(38px, 4vw, 52px);
    }

    .how-works-hero-text {
        margin-top: 18px;
        line-height: 1.6;
    }

    .how-works-hero-actions {
        margin-top: 20px;
    }

    .how-works-flow {
        padding: 20px;
    }

    .flow-item {
        min-height: 65px;
    }

}