/* ==========================================================
   METODOLOGÍA — Estilos específicos de la página metodología
   ========================================================== */


/* ----------------------------------------------------------
   METODOLOGÍA — ARROWS
   ---------------------------------------------------------- */

.arrows {
    padding: 60px 0;
}

.arrows-flow {
    display: flex;
    gap: 0;
}

.arrow-step {
    flex: 1;
    height: 131px;
    background: #1D477E;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    padding: 0 28px 0 48px;
    clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 50%, calc(100% - 40px) 100%, 0 100%, 40px 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    position: relative;
    margin-right: -20px;
}

.arrow-step:nth-child(1) {
    z-index: 6;
}

.arrow-step:nth-child(2) {
    z-index: 5;
}

.arrow-step:nth-child(3) {
    z-index: 4;
}

.arrow-step:nth-child(4) {
    z-index: 3;
}

.arrow-step:nth-child(5) {
    z-index: 2;
}

.arrow-step:nth-child(6) {
    z-index: 1;
}

.arrow-step:nth-child(even) {
    background: #11203F;
}

.arrow-step.active {
    background: rgba(75, 158, 217, 1);
    color: rgba(17, 32, 63, 1);
    z-index: 10;
}

.arrows-description {
    position: relative;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.arrows-description.visible {
    height: 220px;
    opacity: 1;
    pointer-events: auto;
}

.arrows-tooltip {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 320px;
    padding-bottom: 20px;
}

.connector-line {
    width: 2px;
    height: 36px;
    background: #3AAFE4;
}

.connector-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3AAFE4;
    margin-bottom: 12px;
}

.arrows-desc-text {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 0;
    color: rgba(17, 32, 63, 1);
    text-align: left;
    width: 100%;
    transition: opacity 0.15s ease;
}


/* ----------------------------------------------------------
   METODOLOGÍA — GRAN CARD
   ---------------------------------------------------------- */

.metodologia-feature {
    padding: 80px 0;
}

.feature-card-large {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(6, 36, 134, 0.15);
    max-width: 1280px;
    height: 823px;
    margin: 0 auto;
}

.feature-card-image {
    flex: 1;
    overflow: hidden;
}

.feature-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-card-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 52px 56px;
    background: linear-gradient(180deg, #027592 0%, #1D477E 75%);
}

.feature-card-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: 0;
}

.feature-card-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    color: #ffffff;
}

.btn-feature-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: rgba(75, 158, 217, 1);
    color: rgba(17, 32, 63, 1);
    font-family: var(--fuente-principal);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    transition: background 0.3s, transform 0.2s;
    align-self: flex-start;
}

.btn-feature-card:hover {
    background: #2896c8;
    transform: translateY(-2px);
}


/* ==========================================================
   RESPONSIVE — TABLET PEQUEÑO (max-width: 768px)
   ========================================================== */

@media (max-width: 768px) {

    /* Arrows metodología */
    .arrows-flow {
        flex-direction: column;
        gap: 8px;
    }

    .arrow-step {
        flex: none;
        width: 100%;
        height: 56px;
        clip-path: none !important;
        border-radius: 8px;
        margin-right: 0;
        padding: 0 20px !important;
        font-size: 15px;
    }

    .arrow-step:nth-child(1),
    .arrow-step:nth-child(2),
    .arrow-step:nth-child(3),
    .arrow-step:nth-child(4),
    .arrow-step:nth-child(5),
    .arrow-step:nth-child(6) {
        z-index: 1;
    }

    .arrows-flow .arrows-description {
        width: 100%;
        overflow: hidden;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.6);
        /* On mobile, tooltip is in-flow → use max-height instead of fixed height */
        height: auto;
        max-height: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.4s ease;
    }

    .arrows-flow .arrows-description.visible {
        height: auto;
        max-height: 400px;
    }

    .arrows-tooltip {
        width: 100%;
        position: relative;
        left: 0 !important;
        transform: none !important;
    }

    .connector-line,
    .connector-dot {
        display: none;
    }

    .arrows-desc-text {
        font-size: 16px;
        padding: 16px;
    }
}


/* ==========================================================
   RESPONSIVE — MÓVIL (max-width: 480px)
   ========================================================== */

@media (max-width: 480px) {

    /* Gran card metodología */
    .feature-card-large {
        height: auto;
    }

    .feature-card-image {
        flex: 0 0 auto;
        height: 260px;
    }

    .feature-card-content {
        padding: 40px 32px;
        gap: 16px;
    }

    .feature-card-content h2 {
        font-size: 24px;
    }

    .feature-card-subtitle {
        font-size: 16px;
        line-height: 1.5;
    }

    .btn-feature-card {
        align-self: stretch;
        justify-content: center;
    }
}