.page-methodology {
    background: #f7f5f3;
    padding-bottom: 80px;
}

.page-methodology > .container,
.methodology-hero > .container,
.methodology-intro > .container,
.methodology-section > .container,
.methodology-boxes-section > .container {
    width: 100%;

}

/* HERO */
.methodology-hero {
    padding: 64px 0 28px;
    background: #f7f5f3;
}

.methodology-hero__inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.methodology-hero__eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c13946;
}

.methodology-hero__title {
    margin: 0 0 14px;
    font-size: 52px;
    line-height: 1.05;
    font-weight: 700;
    color: #222;
}

.methodology-hero__excerpt {
    max-width: 760px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.68;
    color: #555;
}

/* SECCIONES */
.methodology-intro,
.methodology-section,
.methodology-boxes-section {
    background: #f7f5f3;
}

.methodology-card {
    width: 100%;
    background: #fff;
    border: 2px solid #ece6e1;
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.methodology-card--intro,
.methodology-card--section,
.methodology-card--boxes {
    width: 100%;
    max-width: none;
    margin: 0;
}

/* HEADERS DENTRO DE CARD */
.methodology-section__header {
    margin: 0 0 20px;
    text-align: left;
}

.methodology-section__eyebrow {
    display: inline-block;
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c13946;
    text-align: center;
}

.methodology-section__title {
    margin: 0;
    font-size: 42px;
    line-height: 1.08;
    font-weight: 700;
    color: #222;
}

/* CONTENIDO EDITORIAL */
.methodology-editorial {
    font-size: 17px;
    line-height: 1.75;
    color: #4b4b4b;
}

.methodology-editorial--main,
.methodology-editorial--sub {
    max-width: none;
    margin: 0;
}

.methodology-editorial p {
    margin: 0 0 18px;
}

.methodology-editorial p:last-child {
    margin-bottom: 0;
}

.methodology-editorial h2,
.methodology-editorial h3{

    color: #222;
    font-weight: 700;
    line-height: 1.2;
    margin: 30px 0 14px;
}
.methodology-editorial h4 {
    margin: 0;
}

.methodology-editorial h2 {
    font-size: 30px;
}

.methodology-editorial h3 {
    font-size: 24px;
}

.methodology-editorial h4 {
    font-size: 20px;
}

.methodology-editorial ul,
.methodology-editorial ol {
    margin: 0 0 20px 22px;
    padding: 0;
}

.methodology-editorial li {
    margin-bottom: 10px;
}

.methodology-editorial strong {
    color: #222;
}

/* SHORTCODES / PANELES TAXONÓMICOS */
.methodology-editorial .germina-taxonomy-panel,
.methodology-editorial .taxonomy-panel,
.methodology-editorial .panel,
.methodology-editorial .accordion,
.methodology-editorial .shortcode-panel {
    margin-top: 28px;
    border-radius: 15px;
    overflow: hidden;
    border: 0;
    box-shadow: none;
}

.methodology-editorial .panel-heading,
.methodology-editorial .accordion-header,
.methodology-editorial .taxonomy-panel-header,
.methodology-editorial .shortcode-panel-header {
    background: #fff;
    color: #c13946;
    border: 1px solid #c13946;
    border-radius: 15px;
    min-height: 66px;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
}

.methodology-editorial .panel-heading i,
.methodology-editorial .panel-heading svg,
.methodology-editorial .panel-heading .icon,
.methodology-editorial .panel-heading .caret,
.methodology-editorial .panel-heading .chevron,
.methodology-editorial .accordion-header i,
.methodology-editorial .accordion-header svg,
.methodology-editorial .taxonomy-panel-header i,
.methodology-editorial .taxonomy-panel-header svg,
.methodology-editorial .shortcode-panel-header i,
.methodology-editorial .shortcode-panel-header svg {
    margin-left: auto;
    flex: 0 0 auto;
    font-size: 16px;
}

.methodology-editorial .panel-body,
.methodology-editorial .accordion-body,
.methodology-editorial .taxonomy-panel-body,
.methodology-editorial .shortcode-panel-body {
    background: #fff;
    padding: 28px 22px;
    border: 1px solid #c13946;
    border-top: none;
    border-radius: 0 0 15px 15px;
}

.methodology-editorial .btn,
.methodology-editorial .tag,
.methodology-editorial .term,
.methodology-editorial .taxonomy-term,
.methodology-editorial a.btn,
.methodology-editorial .panel-body a {
    border-radius: 999px;
}

.methodology-editorial .panel-body a:hover,
.methodology-editorial .accordion-body a:hover,
.methodology-editorial .taxonomy-panel-body a:hover {
    background: #fff2f3;
    border-color: #e89aa1;
    color: #a92f3a;
    text-decoration: none;
}

/* BOXES FINALES */
.methodology-card--boxes {
    padding: 0;
    overflow: hidden;
}

.methodology-card--boxes .metodologia,
.methodology-card--boxes .metodologia.inside {
    background: #d9d9d9;
    padding: 28px 0;
    border-radius: 18px;
    text-align: center;
}

.methodology-card--boxes .metodologia.inside .container {
    width: 100%;
    max-width: none;
    padding-left: 24px;
    padding-right: 24px;
}

.methodology-card--boxes .metodologia h2 {
    font-size: 24px;
    line-height: 1.15;
    font-weight: 700;
    color: #222;
    margin: 0 0 16px;
}

.methodology-card--boxes .metodologia .metodologia-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 12px 0 0;
}

.methodology-card--boxes .metodologia .metodologia-list li {
    list-style: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    text-align: center;
    max-width: 160px;
}

.methodology-card--boxes .metodologia .metodologia-list li img {
    display: block;
    width: 76px;
    height: auto;
    margin: 0 auto 8px;
}

.methodology-card--boxes .metodologia .metodologia-list li span {
    display: block;
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

/* ESPACIADO ENTRE BLOQUES */
.methodology-section + .methodology-section {
    padding-top: 10px;
}

.methodology-editorial .panel-heading a,
.methodology-editorial .accordion-header a,
.methodology-editorial .taxonomy-panel-header a,
.methodology-editorial .shortcode-panel-header a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 66px;
    color: inherit;
    text-decoration: none;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.methodology-editorial .panel-heading a i,
.methodology-editorial .accordion-header a i,
.methodology-editorial .taxonomy-panel-header a i,
.methodology-editorial .shortcode-panel-header a i,
.methodology-editorial .panel-heading a svg,
.methodology-editorial .accordion-header a svg,
.methodology-editorial .taxonomy-panel-header a svg,
.methodology-editorial .shortcode-panel-header a svg {
    margin-left: auto;
    padding-left: 18px;
    flex: 0 0 auto;
    font-size: 15px;
}
.methodology-editorial .panel-title {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
}

.methodology-editorial .panel-body,
.methodology-editorial .accordion-body,
.methodology-editorial .taxonomy-panel-body,
.methodology-editorial .shortcode-panel-body {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 14px 12px;
    text-align: center;
}

.methodology-editorial .panel-body > a,
.methodology-editorial .accordion-body > a,
.methodology-editorial .taxonomy-panel-body > a,
.methodology-editorial .shortcode-panel-body > a {
    margin: 0;
    flex: 0 0 auto;
}

.methodology-editorial .panel-body > a.btn-parent-term,
.methodology-editorial .accordion-body > a.btn-parent-term,
.methodology-editorial .taxonomy-panel-body > a.btn-parent-term,
.methodology-editorial .shortcode-panel-body > a.btn-parent-term {
    position: relative;
}

.methodology-editorial .panel-body > a.btn-parent-term i,
.methodology-editorial .accordion-body > a.btn-parent-term i,
.methodology-editorial .taxonomy-panel-body > a.btn-parent-term i,
.methodology-editorial .shortcode-panel-body > a.btn-parent-term i {
    margin-left: 10px;
    transition: transform 0.25s ease;
    transform: rotate(0deg);
}

.methodology-editorial .panel-body > a.btn-parent-term.expanded i,
.methodology-editorial .accordion-body > a.btn-parent-term.expanded i,
.methodology-editorial .taxonomy-panel-body > a.btn-parent-term.expanded i,
.methodology-editorial .shortcode-panel-body > a.btn-parent-term.expanded i {
    transform: rotate(180deg);
}

/* hijos ocultos por defecto */
.methodology-editorial .panel-body .subterms,
.methodology-editorial .accordion-body .subterms,
.methodology-editorial .taxonomy-panel-body .subterms,
.methodology-editorial .shortcode-panel-body .subterms {
    display: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* hijos visibles solo al activar */
.methodology-editorial .panel-body .subterms.active,
.methodology-editorial .accordion-body .subterms.active,
.methodology-editorial .taxonomy-panel-body .subterms.active,
.methodology-editorial .shortcode-panel-body .subterms.active {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 2px 0 18px;
    padding: 4px 0 0;
}

/* links hijos */
.methodology-editorial .panel-body .subterms a,
.methodology-editorial .accordion-body .subterms a,
.methodology-editorial .taxonomy-panel-body .subterms a,
.methodology-editorial .shortcode-panel-body .subterms a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #f0b6ba;
    border-radius: 999px;
    color: #c13946;
    background: #fff;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 500;
    text-decoration: none;
}


/* TABLET */
@media (max-width: 991px) {
    .page-methodology > .container,
    .methodology-hero > .container,
    .methodology-intro > .container,
    .methodology-section > .container,
    .methodology-boxes-section > .container {
        padding: 20px 40px;
    }

    .methodology-hero__title {
        font-size: 42px;
    }

    .methodology-hero__excerpt {
        font-size: 17px;
    }

    .methodology-section__title {
        font-size: 34px;
    }

    .methodology-card {
        padding: 28px 24px;
    }

    .methodology-editorial {
        font-size: 16px;
        line-height: 1.7;
    }

    .methodology-card--boxes .metodologia .metodologia-list {
        gap: 18px;
    }
}

/* MOBILE */
@media (max-width: 767px) {
    .page-methodology > .container,
    .methodology-hero > .container,
    .methodology-intro > .container,
    .methodology-section > .container,
    .methodology-boxes-section > .container {
        padding: 20px;
    }

    .page-methodology {
        padding-bottom: 56px;
    }

    .methodology-hero {
        padding: 42px 0 20px;
    }

    .methodology-hero__title {
        font-size: 34px;
        line-height: 1.08;
    }

    .methodology-hero__excerpt {
        font-size: 16px;
        line-height: 1.6;
    }

    .methodology-section__title {
        font-size: 28px;
    }

    .methodology-card {
        border-radius: 16px;
        padding: 24px 20px;
    }

    .methodology-editorial {
        font-size: 16px;
        line-height: 1.65;
    }

    .methodology-editorial h2 {
        font-size: 26px;
    }

    .methodology-editorial h3 {
        font-size: 22px;
    }

    .methodology-editorial h4 {
        font-size: 18px;
    }

    .methodology-editorial .panel-heading,
    .methodology-editorial .accordion-header,
    .methodology-editorial .taxonomy-panel-header,
    .methodology-editorial .shortcode-panel-header {
        padding: 12px 14px;
        font-size: 14px;
    }

    .methodology-editorial .panel-body,
    .methodology-editorial .accordion-body,
    .methodology-editorial .taxonomy-panel-body,
    .methodology-editorial .shortcode-panel-body {
        padding: 16px 14px;
    }

    .methodology-editorial .panel-body a,
    .methodology-editorial .accordion-body a,
    .methodology-editorial .taxonomy-panel-body a {
        font-size: 12px;
        padding: 8px 12px;
    }

    .methodology-card--boxes .metodologia,
    .methodology-card--boxes .metodologia.inside {
        border-radius: 16px;
        padding: 22px 0;
    }

    .methodology-card--boxes .metodologia.inside .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .methodology-card--boxes .metodologia .metodologia-list {
        gap: 14px;
    }

    .methodology-card--boxes .metodologia .metodologia-list li {
        max-width: 120px;
    }

    .methodology-card--boxes .metodologia .metodologia-list li img {
        width: 56px;
        margin-bottom: 6px;
    }

    .methodology-card--boxes .metodologia .metodologia-list li span {
        font-size: 12px;
    }
    .methodology-editorial .panel-heading,
    .methodology-editorial .accordion-header,
    .methodology-editorial .taxonomy-panel-header,
    .methodology-editorial .shortcode-panel-header {
        padding: 0 14px;
    }

    .methodology-editorial .panel-heading a,
    .methodology-editorial .accordion-header a,
    .methodology-editorial .taxonomy-panel-header a,
    .methodology-editorial .shortcode-panel-header a {
        justify-content: center;
        text-align: center;
        position: relative;
        padding: 0 40px;
    }

    .methodology-editorial .panel-heading a i,
    .methodology-editorial .accordion-header a i,
    .methodology-editorial .taxonomy-panel-header a i,
    .methodology-editorial .shortcode-panel-header a i,
    .methodology-editorial .panel-heading a svg,
    .methodology-editorial .accordion-header a svg,
    .methodology-editorial .taxonomy-panel-header a svg,
    .methodology-editorial .shortcode-panel-header a svg {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
        padding-left: 0;
    }
    .methodology-editorial .panel-body .subterms.active,
    .methodology-editorial .accordion-body .subterms.active,
    .methodology-editorial .taxonomy-panel-body .subterms.active,
    .methodology-editorial .shortcode-panel-body .subterms.active {
        justify-content: center;
        gap: 8px;
        margin: 4px 0 12px;
        padding-top: 6px;
    }

    .methodology-editorial .panel-body .subterms a,
    .methodology-editorial .accordion-body .subterms a,
    .methodology-editorial .taxonomy-panel-body .subterms a,
    .methodology-editorial .shortcode-panel-body .subterms a {
        font-size: 12px;
        padding: 8px 12px;
    }
    .methodology-editorial .panel-body,
    .methodology-editorial .accordion-body,
    .methodology-editorial .taxonomy-panel-body,
    .methodology-editorial .shortcode-panel-body {
        gap: 10px 8px;
    }

    .methodology-editorial .panel-body .subterms.active,
    .methodology-editorial .accordion-body .subterms.active,
    .methodology-editorial .taxonomy-panel-body .subterms.active,
    .methodology-editorial .shortcode-panel-body .subterms.active {
        gap: 8px;
        margin: 4px 0 12px;
        padding-top: 6px;
    }
}