/* ==========================================================
   KORA HEALING INSTITUTE
   responsive.css
   ========================================================== */


/* ==========================================================
   LAPTOP / DESKTOP PEQUEÑO
   ========================================================== */

@media (max-width: 1100px) {

    :root {
        --container: 960px;
    }


    /* HEADER */

    .header__container {
        gap: 22px;
    }

    .header__nav {
        gap: 20px;
    }

    .header__logo {
        width: 170px;
        height: 68px;
    }

    .header__logo-img {
        transform: scale(2.7);
    }

    .header__cta {
        padding-inline: 18px;
    }


    /* HERO */

    .hero__container {
        grid-template-columns:
            minmax(0, 55%)
            minmax(0, 45%);
    }

    .hero__content {
        padding:
            45px
            40px
            45px
            15px;
    }

    .hero h1 {
        font-size: 52px;
    }

    .hero h2 {
        font-size: 24px;
    }


    /* MÉTODO */

    .method__container {
        grid-template-columns: 200px minmax(0, 1fr);

        gap: 28px;
    }

    .method__steps {
        gap: 10px;
    }

    .method-card {
        padding-inline: 12px;
    }


    /* EXPERIENCIA */

    .experience__panel {
        grid-template-columns:
            175px
            minmax(0, 1fr);

        padding-inline: 28px;
    }


    /* INSTITUTO */

    .institute__container {
        gap: 24px;
    }


    /* TESTIMONIOS */

    .testimonials__container {
        grid-template-columns:
            190px
            repeat(3, minmax(0, 1fr));

        gap: 15px;
    }


}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 900px) {

    body {
        padding-top:
            calc(
                var(--header-height)
                + 78px
            );
    }

    html {
        scroll-padding-top:
            calc(
                var(--header-height)
                + 78px
            );
    }

    :root {
        --header-height: 82px;
    }

    /* ======================================================
    INSTAGRAM
    ====================================================== */

    .kora-instagram {
        padding:
            38px
            0
            65px;
    }

    .kora-instagram__container {
        gap: 40px;
    }

    .kora-instagram__intro {
    max-width: 620px;
    }


    .kora-instagram__intro h2 {
        max-width: 560px;

        font-size: 34px;

        line-height: 1.05;

        letter-spacing: -1px;
    }


    .kora-instagram__intro p {
        max-width: 480px;
    }


    .kora-instagram__posts {
        grid-template-columns: 1fr;

        max-width: 560px;

        gap: 28px;
    }


    .kora-instagram-post {
        width: 100%;

        aspect-ratio: 1 / 1;
    }


    /* En dispositivos touch dejamos visible
    el botón como en AQN-WEB */

    .kora-instagram-post__button {
        opacity: 1;

        top: auto;
        bottom: 18px;

        transform:
            translateX(-50%);
    }


    .kora-instagram-post:hover
    .kora-instagram-post__button {
        transform:
            translateX(-50%);
    }


    /* ======================================================
       HEADER
       ====================================================== */

    .header__container {
        min-height: var(--header-height);
    }

    .header__nav,
    .header__cta {
        display: none;
    }

    /* ======================================================
       HEADER — CASOS
       CARRUSEL RESPONSIVE + INDICADOR DE SCROLL
       ====================================================== */

    .header-cases {
        position: absolute;

        height: 94px;

        overflow: hidden;
    }


    /* ======================================================
       SIN FLECHA — LA SIGUIENTE VIÑETA INDICA EL SCROLL
       ====================================================== */

    .header-cases::after {
        content: none;

        display: none;
    }


    .header-cases__container {
        width: 100% !important;
        max-width: none;

        height: 94px;
        min-height: 94px;

        display: block;

        margin:
            0 !important;

        padding:
            4px
            0
            10px;

        box-sizing: border-box;
    }


    .header-cases__title {
        display: block;

        margin:
            1px
            0
            5px;

        padding:
            0
            5%;

        color: var(--blue);

        font-size: 10px;
        font-weight: 600;

        line-height: 1;

        letter-spacing: 1.5px;

        white-space: nowrap;
    }


    .header-cases__list {
        width: 100%;

        display: flex;

        align-items: flex-start;
        justify-content: flex-start;

        gap: 6px;

        overflow-x: auto;
        overflow-y: hidden;

        padding:
            0
            8px
            10px;

        box-sizing: border-box;

        scrollbar-width: none;

        scroll-snap-type:
            x
            proximity;

        scroll-padding-left: 8px;

        -webkit-overflow-scrolling: touch;
    }


    .header-cases__list::-webkit-scrollbar {
        display: none;
    }


    .header-case {
        flex:
            0
            0
            clamp(
                60px,
                10.5vw,
                68px
            );

        min-width:
            clamp(
                60px,
                10.5vw,
                68px
            );

        min-height: 54px;

        display: inline-flex;

        flex-direction: column;

        align-items: center;
        justify-content: flex-start;

        gap: 2px;

        padding: 0;

        color: #3e4b53;

        font-size: 8.4px;

        line-height: 1.05;

        text-align: center;

        white-space: normal;

        transform: none;

        scroll-snap-align: start;
    }


    .header-case__dot {
        width: 41px;
        height: 41px;

        flex:
            0
            0
            41px;
    }


    .header-case__icon svg {
        width: 21px;
        height: 21px;
    }


    .header-case strong {
        width: 100%;

        min-width: 0;
        max-width: 58px;

        font-size: 9px;
        font-weight: 500;

        line-height: 1.08;

        text-align: center;

        white-space: normal;
    }


    /* ======================================================
       RESPONSIVE — SIN HOVER
       ====================================================== */

    .header-case:hover {
        color: #3e4b53;

        transform: none;
    }


    .header-case:hover
    .header-case__dot {
        background: var(--blue-soft);

        transform: none;

        box-shadow:
            inset
            0
            0
            0
            2px
            rgba(255, 255, 255, 0.65);
    }


    .header-case:hover
    .header-case__icon svg {
        stroke: var(--blue);
    }


    /* El caso seleccionado sí permanece marcado */

    .header-case.is-active {
        color: var(--blue);
    }


    .header-case.is-active
    .header-case__dot {
        background: var(--blue);

        transform: scale(1.08);

        box-shadow:
            inset 0 0 0 3px #ffffff,
            0 0 0 3px rgba(22, 79, 118, 0.10);
    }


    .header-case.is-active
    .header-case__icon svg {
        stroke: #ffffff;
    }

    .header__menu-button {
        display: block;

        margin-left: auto;
    }

    .mobile-menu {
    display: block;

    position: absolute;

    top: 100%;
    left: 0;

    width: 100%;

    padding: 0 5% 24px;

    background: rgba(255, 255, 255, 0.98);

    border-top: 1px solid rgba(0, 0, 0, 0.06);

    box-shadow:
        0 18px 35px rgba(0, 0, 0, 0.08);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-10px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

    z-index: 999;
    }

    .mobile-menu.is-open {
        display: block;

        opacity: 1;
        visibility: visible;

        transform: translateY(0);
    }

    .mobile-menu__nav {
        padding-top: 18px;

        gap: 0;
    }

    .mobile-menu__nav > a {
        display: flex;
        align-items: center;
        justify-content: space-between;

        min-height: 48px;

        padding: 0 4px;

        border-bottom:
            1px solid rgba(0, 0, 0, 0.07);

        font-size: 13px;
    }

    .mobile-menu__nav > a:not(.mobile-menu__cta)::after {
        content: "→";

        color: var(--blue);

        font-size: 15px;
    }

    .mobile-menu__cta {
        justify-content: center !important;

        gap: 10px;

        min-height: 46px !important;

        margin-top: 18px;

        padding: 0 18px !important;

        border: 0 !important;
        border-radius: 999px;

        color: #fff;

        font-weight: 500;
    }


    /* ======================================================
       HERO
       RESPONSIVE — ALTURA CONTROLADA
       ====================================================== */

    .hero__container {
        width: 100%;

        min-height: 0;
        height: auto;

        grid-template-columns: 1fr;

        margin-inline: 0;

        overflow: hidden;
    }


    .hero__content {
        width: min(90%, 760px);

        min-height: 0;
        height: auto;

        margin-inline: auto;

        padding:
            48px
            0
            44px;
    }


    .hero__line {
        height: 275px;
    }


    .hero h1 {
        font-size:
            clamp(
                46px,
                8vw,
                60px
            );
    }


    .hero h2 {
        font-size: 25px;
    }


    .hero p {
        max-width: 600px;

        font-size: 13px;
    }


    /*
       CAJA DE LA IMAGEN

       La altura depende de la altura disponible
       de la pantalla, NO del ancho.

       Puede recortar la imagen, pero jamás
       puede seguir creciendo y empujar
       ENCONTRÁ TU CASO hacia abajo.
    */

    .hero__image {
        position: relative;

        width: 100%;

        min-width: 0;
        min-height: 0;

        height:
            clamp(
                220px,
                30svh,
                300px
            );

        max-height: 300px;

        margin: 0;

        overflow: hidden;

        background: #e8eef3;

        contain: layout paint;
    }


    .hero__person {
        position: absolute;

        inset: 0;

        display: block;

        width: 100%;
        height: 100%;

        max-width: none;
        max-height: none;

        object-fit: cover;

        object-position:
            46%
            42%;
    }

    .hero__person--desktop {
        display: none;
    }


    .hero__image::after {
        display: none;
    }


    /* ======================================================
       MÉTODO
       ====================================================== */

    .method {
        padding:
            50px
            0
            38px;
    }

    .method__container {
        grid-template-columns: 1fr;

        gap: 48px;
    }

    .method__intro {
        max-width: 470px;
    }

    .method__intro p {
        max-width: 420px;
    }

    .method__steps {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        row-gap: 55px;
        column-gap: 15px;
    }

    .method__steps::before {
        display: none;
    }

    .method-card {
        min-height: 170px;
    }


    /* ======================================================
       EXPERIENCIA
       ====================================================== */

    .experience__panel {
        grid-template-columns: 1fr;

        gap: 28px;

        padding:
            30px
            30px;
    }

    .experience__panel h2 br {
        display: none;
    }

        .experience__steps {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        row-gap: 32px;
        column-gap: 18px;
    }

    .experience-item:nth-child(7) {
        grid-column: 1 / -1;

        width: calc(50% - 9px);

        justify-self: center;
    }

    .experience__steps::before,
    .experience-item:not(:last-child)::after {
        display: none;
    }

    /* ======================================================
       EXPERIENCIA KORA — VIDEOS
       ====================================================== */

    .kora-videos {
        padding:
            35px
            0
            42px;
    }

    .kora-videos__container {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .kora-videos__intro {
        max-width: 520px;
    }

    .kora-videos__intro p {
        max-width: 470px;
    }

    .kora-videos__media {
        grid-template-columns:
            minmax(0, 1.7fr)
            minmax(180px, 0.65fr);

        gap: 18px;

        align-items: center;
    }

    .kora-video--vertical {
        width: min(100%, 260px);
    }


    /* ======================================================
       INSTITUTO
       ====================================================== */

    .institute {
        padding:
            22px
            0
            35px;
    }

    .institute__container {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }

    .institute__content {
        grid-column: 1 / -1;
        grid-row: 1;

        padding-bottom: 8px;
    }

    .institute__content p {
        max-width: 600px;
    }

    .institute__image {
        height: 220px;
    }


    /* ======================================================
       TESTIMONIOS
       ====================================================== */

    .testimonials {
        padding-bottom: 38px;
    }

    .testimonials__container {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 16px;
    }

    .testimonials__intro {
        grid-column: 1 / -1;

        margin-bottom: 5px;
    }

    .testimonial-card {
        min-height: 160px;
    }

    /* ======================================================
       FOOTER
       ====================================================== */

    .footer__container {
        grid-template-columns: 1fr;

        row-gap: 30px;
    }

    .footer__brand {
        padding-bottom: 5px;
    }

    .footer__nav {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        justify-content: stretch;

        column-gap: 45px;
        row-gap: 30px;
    }

        /* ======================================================
       SINGLE POST — TABLET
       ====================================================== */

    .kora-post__hero {
        padding:
            58px
            0
            42px;
    }

    .kora-post__title {
        font-size:
            clamp(40px, 7vw, 54px);

        letter-spacing: -1.6px;
    }

    .kora-post__content-section {
        padding:
            40px
            0
            65px;
    }

    .kora-post__image {
        height:
            clamp(330px, 55vw, 500px);

        margin-bottom: 40px;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    :root {
        --header-height: 74px;
    }

    /* ======================================================
    INSTAGRAM
    ====================================================== */

    .kora-instagram {
        padding:
            32px
            0
            55px;
    }


    .kora-instagram__container {
        gap: 30px;
    }


    .kora-instagram__intro h2 {
        max-width: 320px;

        font-size: 28px;

        line-height: 1.05;

        letter-spacing: -0.8px;
    }


    .kora-instagram__intro p {
        max-width: 320px;

        font-size: 12px;

        line-height: 1.6;
    }


    .kora-instagram__posts {
        width: 100%;

        gap: 24px;
    }


    .kora-instagram-post {
        width: 100%;

        aspect-ratio: 1 / 1;
    }


    .kora-instagram-post__button {
        bottom: 18px;

        padding:
            14px
            17px;

        font-size: 9px;
    }


    /* ======================================================
       GENERAL
       ====================================================== */

    .container {
        width: 90%;
    }


    /* ======================================================
       HEADER
       ====================================================== */

    .header__container {
        min-height: var(--header-height);
    }


    .header__logo {
        width: 158px;
        height: 62px;
    }


    .header__logo-img {
        transform: scale(2.7);
    }


    .header__menu-button {
        font-size: 23px;
    }


    /* ======================================================
       HEADER — CASOS MOBILE
       MISMO ESPACIADO QUE LAS VIÑETAS DE CASOS
       ====================================================== */

    .header-cases__list {
        gap: 5px;

        padding:
            0
            7px
            6px;

        scroll-padding-left: 7px;
    }


    .header-case {
        flex:
            0
            0
            clamp(
                68px,
                17vw,
                80px
            );

        min-width:
            clamp(
                68px,
                17vw,
                80px
            );
    }


    .header-case__dot {
        width: 42px;
        height: 42px;

        flex:
            0
            0
            42px;
    }


    .header-case__icon svg {
        width: 21px;
        height: 21px;
    }


    .header-case strong {
        width: 56px;

        max-width: 56px;

        font-size: 8.8px;
        font-weight: 500;

        line-height: 1.08;

        text-align: center;

        white-space: normal;
    }


    /* ======================================================
       HERO
       MOBILE — ALTURA ESTRICTAMENTE CONTROLADA
       ====================================================== */

    .hero__container {
        width: 100%;

        min-height: 0;
        height: auto;

        margin: 0;

        overflow: hidden;
    }


    .hero__content {
        width: 90%;

        min-height: 0;
        height: auto;

        grid-template-columns:
            13px
            minmax(0, 1fr);

        margin-inline: auto;

        padding:
            42px
            0
            36px;
    }


    .hero__line {
        width: 1px;
        height: 275px;
    }


    .hero h1 {
        font-size:
            clamp(
                40px,
                11.5vw,
                50px
            );

        line-height: 1;

        letter-spacing: -1.7px;
    }


    .hero h2 {
        margin-top: 15px;

        font-size: 21px;
    }


    .hero p {
        margin-top: 24px;

        padding-right: 4px;

        font-size: 12px;

        line-height: 1.62;
    }


    .hero__buttons {
        flex-direction: column;

        align-items: flex-start;

        gap: 10px;

        margin-top: 25px;
    }


    .hero__buttons .btn {
        min-width: 190px;
    }


    /*
       LA CAJA MANDA.

       La imagen puede quedar recortada,
       pero no puede aumentar la altura
       de esta zona.
    */

    .hero__image {
        position: relative;

        width: 100vw;

        min-width: 0;
        min-height: 0;

        height:
            clamp(
                170px,
                25svh,
                230px
            );

        max-height: 230px;

        margin-left:
            calc(50% - 50vw);

        margin-bottom: 0;

        overflow: hidden;

        background: #e8eef3;

        contain: layout paint;
    }


    .hero__person {
        position: absolute;

        inset: 0;

        display: block;

        width: 100%;
        height: 100%;

        max-width: none;
        max-height: none;

        object-fit: cover;

        object-position:
            46%
            42%;
    }

    .hero__person--desktop {
        display: none;
    }


    .hero__image::after {
        display: none;
    }


    /* ======================================================
       MÉTODO
       ====================================================== */

    .method {
        padding:
            45px
            0
            35px;
    }

    .method__container {
        gap: 50px;
    }

    .method__intro h2,
    .institute h2,
    .testimonials h2 {
        font-size: 20px;
    }

    .method__intro {
        max-width: 100%;
    }

    .method__intro p {
        max-width: 100%;
        font-size: 12px;
    }

    .method__steps {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        column-gap: 12px;
        row-gap: 42px;

        padding-top: 28px;
    }

    .method-card {
        width: 100%;

        min-height: 135px;

        padding:
            27px
            10px
            17px;
    }

    /* Quinto elemento centrado */
    .method-card:nth-child(5) {
        grid-column: 1 / -1;

        width: calc(50% - 6px);

        justify-self: center;
    }

    .method-card__number {
        top: -40px;
    }

    .method-card__icon {
        margin-bottom: 6px;
    }

    .method-icon {
        width: 34px;
        height: 34px;
    }

    .method-card h3 {
        margin-bottom: 6px;

        font-size: 12px;
    }

    .method-card p {
        max-width: 145px;

        font-size: 9px;

        line-height: 1.4;
    }


    /* ======================================================
       EXPERIENCIA
       ====================================================== */

    .experience {
        padding:
            5px
            0
            25px;
    }

    .experience__panel {
        padding:
            28px
            20px;

        border-radius: 14px;
    }

    .experience__panel h2 {
        font-size: 19px;
    }

    .experience__steps {
        position: relative;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        column-gap: 18px;
        row-gap: 32px;
    }

    /* El séptimo paso queda centrado */
    .experience-item:nth-child(7) {
        grid-column: 1 / -1;

        width: calc(50% - 9px);

        justify-self: center;
    }

    /* Quitamos la línea horizontal de desktop */
    .experience__steps::before {
        display: none;
    }

    /* Flechas entre 1→2, 3→4 y 5→6 */
    .experience-item:nth-child(1)::after,
    .experience-item:nth-child(3)::after,
    .experience-item:nth-child(5)::after {
        content: "→";

        position: absolute;

        top: 13px;
        right: -15px;

        display: block;

        color: rgba(255, 255, 255, 0.72);

        font-size: 15px;
        font-weight: 300;

        line-height: 1;

        background: transparent;

        box-shadow: none;

        width: auto;
        height: auto;

        border-radius: 0;

        z-index: 4;
    }

    /* Ocultamos cualquier ::after heredado en los demás */
    .experience-item:nth-child(2)::after,
    .experience-item:nth-child(4)::after,
    .experience-item:nth-child(6)::after,
    .experience-item:nth-child(7)::after {
        display: none;
    }

    .experience-item__icon {
        width: 42px;
        height: 42px;
    }

    .experience-item strong {
        font-size: 10.5px;
    }

    .experience-item span {
        max-width: 135px;
        font-size: 8.5px;
    }

        /* ======================================================
       EXPERIENCIA KORA — VIDEOS
       ====================================================== */

    .kora-videos {
        padding:
            28px
            0
            35px;
    }

    .kora-videos__container {
        gap: 24px;
    }

    .kora-videos__eyebrow {
        margin-bottom: 8px;

        font-size: 8px;

        letter-spacing: 1.5px;
    }

    .kora-videos__intro h2 {
        font-size: 22px;

        line-height: 1.08;
    }

    .kora-videos__intro p {
        max-width: 100%;

        font-size: 11px;

        line-height: 1.6;
    }

    .kora-videos__media {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .kora-video--horizontal {
        width: 100%;

        aspect-ratio: 16 / 9;
    }

    .kora-video--vertical {
        width: min(72%, 290px);

        justify-self: center;

        aspect-ratio: 9 / 16;
    }


    /* ======================================================
       INSTITUTO
       ====================================================== */

    .institute {
        padding:
            20px
            0
            30px;
    }

    .institute__container {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .institute__content {
        grid-column: auto;
        grid-row: auto;

        order: 1;

        margin-bottom: 7px;
    }

    .institute__image:first-child {
        order: 2;
    }

    .institute__image:last-child {
        order: 3;
    }

    .institute__image {
        height: 230px;
    }

    .institute__content p {
        max-width: 100%;
        font-size: 11px;
    }

    .institute__features {
        grid-template-columns: 1fr;

        gap: 13px;

        margin-top: 20px;
    }

    .institute__features strong {
        font-size: 10px;
    }

    .institute__features span {
        font-size: 9px;
    }


    /* ======================================================
       TESTIMONIOS
       ====================================================== */

    .testimonials {
        padding:
            18px
            0
            35px;
    }

    .testimonials__container {
        grid-template-columns: 1fr;

        gap: 13px;
    }

    .testimonials__intro {
        grid-column: auto;

        margin-bottom: 12px;
    }

    .testimonial-card {
        min-height: 145px;

        padding:
            20px
            20px;
    }

    .testimonial-card p {
        min-height: auto;
        margin-bottom: 18px;
        font-size: 11px;
    }

    /* ======================================================
    FOOTER
     ====================================================== */

    .footer {
        padding:
            30px
            0
            35px;
    }

    .footer__container {
        grid-template-columns: 1fr;

        row-gap: 24px;
    }

    .footer__brand {
        padding-bottom: 4px;
    }

    .footer__nav {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        justify-content: stretch;

        column-gap: 28px;
        row-gap: 24px;
    }

    .footer__brand p {
        font-size: 12px;
    }

    .footer__brand small {
        font-size: 10.5px;
    }

    .footer__column {
        min-width: 0;
    }

    .footer__column strong {
        font-size: 13px;
    }

    .footer__column a,
    .footer__column span {
        font-size: 11px;

        overflow-wrap: anywhere;
    }

    /* ======================================================
    INSTAGRAM FLOTANTE — MOBILE
    ====================================================== */

    .instagram-float {
        right: 8px;
        bottom: 62px;

        gap: 7px;
    }

    .instagram-float__label {
        min-width: 112px;

        padding:
            7px
            10px;

        border-radius: 11px;
    }

    .instagram-float__label-small {
        font-size: 6.5px;
    }

    .instagram-float__label-main {
        gap: 5px;

        font-size: 8.5px;
    }

    .instagram-float__arrow {
        font-size: 10px;
    }

    .instagram-float__button {
        width: 42px;
        height: 42px;
    }

    .instagram-float__icon {
        width: 21px;
        height: 21px;
    }

    /* ======================================================
    WHATSAPP FLOTANTE — MOBILE 
    ====================================================== */

    .whatsapp-float {
        right: 8px;
        bottom: 10px;

        gap: 7px;
    }

    .whatsapp-float__label {
        min-width: 112px;

        padding:
            7px
            10px;

        border-radius: 11px;
    }

    .whatsapp-float__label-small {
        font-size: 6.5px;
    }

    .whatsapp-float__label-main {
        gap: 5px;

        font-size: 8.5px;
    }

    .whatsapp-float__arrow {
        font-size: 13px;
    }

    .whatsapp-float__button {
        width: 42px;
        height: 42px;
    }

    .whatsapp-float__icon {
        width: 24px;
        height: 24px;
    }

        /* ======================================================
       SINGLE POST — MOBILE
       ====================================================== */

    .kora-post__hero {
        padding:
            42px
            0
            32px;
    }

    .kora-post__category {
        margin-bottom: 14px;

        font-size: 9px;

        letter-spacing: 1.3px;
    }

    .kora-post__title {
        font-size:
            clamp(34px, 10vw, 44px);

        line-height: 1.05;

        letter-spacing: -1.3px;
    }

    .kora-post__meta {
        margin-top: 15px;

        font-size: 10px;
    }

    .kora-post__content-section {
        padding:
            28px
            0
            50px;
    }

    .kora-post__image {
        height:
            clamp(230px, 62vw, 340px);

        margin-bottom: 30px;

        border-radius: 14px;
    }

    .kora-post__content {
        font-size: 14px;

        line-height: 1.75;
    }

    .kora-post__content p {
        margin-bottom: 20px;
    }

    .kora-post__content h2 {
        margin:
            34px
            0
            15px;

        font-size: 24px;
    }

    .kora-post__content h3 {
        margin-top: 28px;

        font-size: 19px;
    }

    .kora-post__content blockquote {
        margin:
            28px
            0;

        padding:
            18px
            19px;

        font-size: 15px;
    }

    .kora-post__content img {
        margin:
            25px
            auto;
    }
}


/* ==========================================================
   MOBILE PEQUEÑO
   ========================================================== */

@media (max-width: 400px) {

    /* ======================================================
       HEADER — CASOS MOBILE PEQUEÑO
       MISMO ESPACIADO QUE LAS VIÑETAS DE CASOS
       ====================================================== */

    .header-cases__list {
        gap: 4px;

        padding:
            0
            6px
            6px;

        scroll-padding-left: 6px;
    }


    .header-case {
        flex:
            0
            0
            64px;

        min-width: 64px;
    }


    .header-case strong {
        width: 54px;

        max-width: 54px;

        font-size: 8.6px;

        font-weight: 500;

        line-height: 1.08;

        text-align: center;

        white-space: normal;
    }


    .hero h1 {
        font-size: 39px;
    }


    .hero h2 {
        font-size: 19px;
    }


    .hero__content {
        width: 92%;

        min-height: 0;
        height: auto;

        padding-top: 38px;
        padding-bottom: 34px;
    }


    .hero p {
        font-size: 11.5px;
    }


    .hero__image {
        min-height: 0;

        height:
            clamp(
                145px,
                22svh,
                190px
            );

        max-height: 190px;

        overflow: hidden;
    }


    .institute__image {
        height: 210px;
    }

        .kora-videos {
        padding:
            25px
            0
            30px;
    }

    .kora-videos__intro h2 {
        font-size: 20px;
    }

    .kora-videos__media {
        gap: 16px;
    }

        .kora-video--vertical {
        width: 78%;
    }

}

/* ==========================================================
   FLOATING BUTTONS — RESPONSIVE
   Instagram and WhatsApp stay visible during the whole page
   on tablet and mobile.
   ========================================================== */

@media (max-width: 1100px) {


    /* ======================================================
       FLOTANTES — SIEMPRE VISIBLES
       Instagram + WhatsApp permanecen activos
       durante todo el recorrido de la página.
       ====================================================== */

    .instagram-float,
    .whatsapp-float {
        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        transform: none;

        transition:
            transform 0.22s ease,
            filter 0.22s ease;
    }


    body.conditions-in-view .instagram-float,
    body.conditions-in-view .whatsapp-float {
        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        transform: none;
    }


}


/* ==========================================================
   TABLET — HASTA 900px
   ========================================================== */

@media (max-width: 900px) {


    /* ======================================================
       FLOTANTES RESPONSIVE — BURBUJAS COMPACTAS
       Siempre visibles.
       ====================================================== */

    .instagram-float,
    .whatsapp-float {
        align-items: center;

        gap: 7px;
    }


    .instagram-float__label,
    .whatsapp-float__label {
        display: flex;

        min-width: 0;
        width: auto;

        max-width: 128px;

        padding:
            6px
            10px;

        border:
            1px solid
            rgba(22, 79, 118, 0.10);

        border-radius: 12px;

        background:
            rgba(255, 255, 255, 0.96);

        box-shadow:
            0
            5px
            16px
            rgba(7, 58, 91, 0.08);

        backdrop-filter:
            blur(10px);

        -webkit-backdrop-filter:
            blur(10px);
    }


    .instagram-float__label-small,
    .whatsapp-float__label-small {
        margin-bottom: 1px;

        font-size: 6px;

        line-height: 1.15;

        opacity: 0.72;
    }


    .instagram-float__label-main,
    .whatsapp-float__label-main {
        gap: 4px;

        font-size: 7.8px;
        font-weight: 600;

        line-height: 1.18;

        white-space: nowrap;
    }


    .instagram-float__arrow,
    .whatsapp-float__arrow {
        font-size: 10px;
    }


    .instagram-float__label::before,
    .whatsapp-float__label::before {
        right: -5px;

        width: 9px;
        height: 9px;
    }


    .instagram-float {
        right: 10px;
        bottom: 66px;
    }


    .whatsapp-float {
        right: 10px;
        bottom: 14px;
    }


    .instagram-float__button,
    .whatsapp-float__button {
        width: 44px;
        height: 44px;

        flex:
            0
            0
            44px;
    }


    .instagram-float__icon {
        width: 21px;
        height: 21px;
    }


    .whatsapp-float__icon {
        width: 24px;
        height: 24px;
    }

}


/* ==========================================================
   MOBILE — HASTA 600px
   ========================================================== */

@media (max-width: 600px) {


    .instagram-float {
        right: 9px;
        bottom: 62px;
    }


    .whatsapp-float {
        right: 9px;
        bottom: 12px;
    }


    .instagram-float__button,
    .whatsapp-float__button {
        width: 42px;
        height: 42px;
    }

}


/* ==========================================================
   MOBILE PEQUEÑO — HASTA 400px
   ========================================================== */

@media (max-width: 400px) {


    .instagram-float {
        right: 8px;
        bottom: 58px;
    }


    .whatsapp-float {
        right: 8px;
        bottom: 10px;
    }


    .instagram-float__button,
    .whatsapp-float__button {
        width: 40px;
        height: 40px;
    }

}


/* ==========================================================
   FLOTANTES — TAMAÑO FINAL RESPONSIVE
   ========================================================== */

@media (max-width: 900px) {

    .instagram-float {
        right: 10px;
        bottom: 74px;
    }


    .whatsapp-float {
        right: 10px;
        bottom: 14px;
    }


    .instagram-float__button,
    .whatsapp-float__button {
        width: 50px;
        height: 50px;

        flex:
            0
            0
            50px;
    }


    .instagram-float__icon {
        width: 25px;
        height: 25px;
    }


    .whatsapp-float__icon {
        width: 29px;
        height: 29px;
    }


}


/* ==========================================================
   CASES CAROUSEL — RESPONSIVE

   Business justification:
   The carousel must stay readable on laptops, tablets and
   phones, where side cards become a small peek.

   Software architecture logic:
   Only sizes change. --cases-card-w is the card width and
   --cases-step is the distance between card centres. Below
   900px the outer cards (offset 2 and -2) are hidden.

   How to use:
   Adjust the two variables per breakpoint. Keep the step
   smaller than the card width plus the gap you want.

   Invalid input or output:
   A step larger than half the container width pushes the
   neighbour cards out of view. A step smaller than 0.6 times
   the card width makes the cards overlap the featured one.
   ========================================================== */

@media (max-width: 1100px) {

    .kora-cases {
        --cases-card-w: 175px;
        --cases-step: 210px;
    }

}


@media (max-width: 900px) {

    .kora-cases {
        --cases-card-w: 170px;
        --cases-step: 200px;

        padding:
            44px
            0
            36px;
    }

    .kora-tension {
        padding:
            24px
            0
            28px;
    }

    .kora-tension__container {
        width: min(96%, 780px);
    }

    .kora-cases__item[data-offset="-2"],
    .kora-cases__item[data-offset="2"] {
        visibility: hidden;

        pointer-events: none;

        --o: 0;
    }

    .kora-cases__carousel.is-ready .kora-cases__item[data-offset="-2"],
    .kora-cases__carousel.is-ready .kora-cases__item[data-offset="2"] {
        transition-delay: 0s, 0s, 0.7s;
    }

}


@media (max-width: 600px) {

    .kora-cases {
        --cases-card-w: 160px;
        --cases-step: 155px;

        padding:
            34px
            0
            30px;
    }

    .kora-cases__intro h2 {
        font-size: 22px;
    }

    .kora-cases__carousel {
        margin-top: 18px;
    }

    .kora-cases__title {
        margin-bottom: 10px;

        font-size: 16px;
    }

    .kora-cases__arrow {
        display: none;
    }

}
