/* Nuestros servicios — cards minimalistas ICASA */

/* Sección: solo envuelve el marco (sin altura propia que desplace el layout) */
.services-hero {
    width: 100%;
}

/* Marco: altura del hero (min-h + relative + overflow-hidden) */
.services-hero__frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: clamp(30rem, 62vh, 42rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

/*
 * Hero con imagen: banda 16:9 a todo el ancho (ideal para 1920×1080).
 * Altura = min(9/16 del ancho de ventana, 85vh) para que en pantallas altas no domine toda la vista.
 */
.services-hero--video .services-hero__frame {
    align-items: flex-end;
    justify-content: center;
    min-height: unset;
    width: 100%;
    height: min(56.25vw, 85vh);
    background-color: #0b1f2f;
}

/* Móvil: hero con imagen alto (ajustable; un poco más bajo = más recorte en la foto) */
@media (max-width: 768px) {
    .services-hero--video .services-hero__frame {
        height: clamp(58vh, 68dvh, 76vh);
        min-height: clamp(58vh, 68dvh, 76vh);
        max-height: 78dvh;
    }

    .services-hero--video .services-hero__img {
        /* Encuadre un poco más arriba del centro suele mostrar más sujeto en verticales */
        object-position: center 38%;
    }

    .services-hero--video .services-title {
        font-size: clamp(1.45rem, 5.5vw, 1.85rem);
    }

    .services-hero--video .services-lead {
        font-size: 0.98rem;
    }
}

/* Modo solo degradado (sin imagen) */
.services-hero--static .services-hero__frame {
    background: radial-gradient(900px 320px at 10% 0%, rgba(0, 104, 55, 0.18) 0%, rgba(0, 104, 55, 0) 60%),
        linear-gradient(180deg, rgba(26, 84, 144, 0.07) 0%, rgba(255, 255, 255, 1) 100%);
    padding: clamp(3.5rem, 10vh, 6rem) 0 clamp(3rem, 8vh, 5rem);
}

/* Imagen de cabecera: llena el marco 16:9 (sin bandas laterales en fotos 16:9). Recorte centrado si la foto es otra proporción. */
.services-hero__img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
}

/* Contenido: sobre la imagen (sin capa verde encima) */
.services-hero__content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: clamp(2.5rem, 6vh, 4.5rem) 0;
    box-sizing: border-box;
}

.services-hero--video .services-hero__content {
    padding-top: clamp(1rem, 3vh, 1.75rem);
    padding-bottom: clamp(1.25rem, 4vh, 2rem);
    padding-left: max(0px, env(safe-area-inset-left, 0px));
    padding-right: max(0px, env(safe-area-inset-right, 0px));
}

.services-hero--video .services-hero__inner {
    text-align: center;
}

.services-hero--video .services-lead {
    margin-left: auto;
    margin-right: auto;
}

.services-hero--video .services-kicker {
    color: #e8fff0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 0, 0, 0.45);
}

.services-hero--video .services-title {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75), 0 2px 28px rgba(0, 0, 0, 0.5);
}

.services-hero--video .services-lead {
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7), 0 0 18px rgba(0, 0, 0, 0.45);
}

/* —— Portada en recuadro (como Contacto, Destinos, Únete a ICASA) —— */
.page-servicios .services-hero {
    padding: calc(0.85rem + env(safe-area-inset-top, 0px)) 0 0.2rem;
}

.page-servicios .services-hero__container {
    position: relative;
}

@media (min-width: 769px) {
    .page-servicios .services-hero__container.container {
        width: min(100%, calc(100vw - clamp(1rem, 3vw, 2.5rem)));
        max-width: 1680px;
        padding-left: clamp(0.5rem, 1.5vw, 0.75rem);
        padding-right: clamp(0.5rem, 1.5vw, 0.75rem);
    }

    .page-servicios .services-hero--video .services-hero__banner {
        align-items: center;
        justify-content: center;
        aspect-ratio: 21 / 9;
        height: auto;
        min-height: clamp(16rem, 28vw, 18rem);
        max-height: min(44vh, 30rem);
    }
}

@media (min-width: 1400px) {
    .page-servicios .services-hero__container.container {
        max-width: min(1760px, calc(100vw - 3rem));
    }
}

.page-servicios .services-hero__banner.services-hero__frame {
    position: relative;
    width: 100%;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 16px 44px rgba(15, 23, 42, 0.1);
}

.page-servicios .services-hero__banner picture {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 0;
}

.page-servicios .services-hero .services-hero__content {
    padding-top: clamp(1rem, 2.5vh, 1.5rem);
    padding-bottom: clamp(1rem, 2.5vh, 1.35rem);
}

.page-servicios .services-hero .services-hero__inner {
    width: 100%;
    max-width: 52rem;
    margin: 0 auto;
    padding-left: clamp(1rem, 3vw, 1.5rem);
    padding-right: clamp(1rem, 3vw, 1.5rem);
}

.page-servicios .services-hero--static .services-hero__banner {
    padding: clamp(3.5rem, 10vh, 6rem) 0 clamp(3rem, 8vh, 5rem);
}

.page-servicios .services-hero--post {
    padding-top: 0;
    padding-bottom: clamp(0.5rem, 2vw, 1rem);
}

.page-servicios .services-hero--post + .services-cta {
    margin-top: 0;
}

.page-servicios .services-hero__scroll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0.5rem auto 0;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #006837;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.page-servicios .services-hero__scroll-btn:hover {
    background: #fff;
    transform: translateY(2px);
    box-shadow: 0 6px 18px rgba(0, 104, 55, 0.18);
}

.page-servicios .services-hero__scroll-btn:focus-visible {
    outline: 2px solid #006837;
    outline-offset: 2px;
}

.page-servicios .services-hero__scroll-btn i {
    font-size: 1.25rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .page-servicios .services-hero--video .services-hero__banner {
        display: flex;
        align-items: center;
        justify-content: center;
        aspect-ratio: unset;
        max-height: none;
    }

    .page-servicios .services-hero--video .services-hero__banner.services-hero__frame {
        align-items: center;
        justify-content: center;
    }

    .page-servicios .services-hero .services-hero__content {
        position: absolute;
        inset: 0;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    .page-servicios .services-hero .services-hero__inner {
        width: 100%;
        padding: 0 1rem;
    }

    .page-servicios .services-hero .services-hero__img {
        object-position: center center;
    }

    .page-servicios .services-hero .services-title {
        margin: 0;
        line-height: 1.1;
    }

    .page-servicios .services-hero .services-kicker:empty,
    .page-servicios .services-hero .services-lead:empty {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-servicios .services-hero__scroll-btn:hover {
        transform: none;
    }
}

.services-kicker {
    font-family: "Montserrat", "Inter", sans-serif;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: #006837;
    margin-bottom: 0.75rem;
}

.services-title {
    font-family: "Montserrat", "Inter", sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 0.8rem;
    color: #0b1f2f;
}

.services-lead {
    color: rgba(17, 24, 39, 0.72);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 52rem;
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    .page-servicios .services-hero--video .services-hero__frame {
        background: linear-gradient(135deg, #0d2434 0%, #0a5c32 55%, #0b1f2f 100%);
    }
}

.services-section {
    padding: 3rem 0 2rem;
}

.services-section--especializados {
    padding-top: clamp(2.25rem, 6vw, 3.5rem);
    padding-bottom: clamp(2.5rem, 6vw, 3.75rem);
    background: linear-gradient(180deg, #f7faf8 0%, #ffffff 70%);
    border-top: 1px solid rgba(0, 104, 55, 0.08);
}

.services-section--especializados .service-card {
    height: 100%;
}

/* Ancla del scroll desde la flecha del hero → primeras tarjetas */
#servicios-cards {
    scroll-margin-top: var(--nav-bar-stack, 5.75rem);
}

#lista-servicios {
    scroll-margin-top: var(--nav-bar-stack, 5.75rem);
}

/* Grid de tarjetas navegables */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

/* Escritorio ancho: 3 columnas fijas (3+3) y tarjetas un poco más grandes */
@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.85rem;
    }

    .service-card {
        border-radius: 22px;
        box-shadow: 0 14px 38px rgba(2, 6, 23, 0.07);
    }

    .service-card__thumb {
        aspect-ratio: 16 / 9;
    }

    .service-card__body {
        padding: 1.45rem 1.5rem 1.55rem;
        gap: 0.75rem;
    }

    .service-card__icon {
        width: 3.35rem;
        height: 3.35rem;
    }

    .service-card__icon i {
        font-size: 2rem;
    }

    .service-card__title {
        font-size: 1.28rem;
        line-height: 1.28;
    }

    .service-card__desc {
        font-size: 1.02rem;
        line-height: 1.62;
    }

    .service-card__more {
        font-size: 0.92rem;
        padding-top: 0.45rem;
    }

    .service-card__thumb-placeholder i {
        font-size: 3rem;
    }
}

.service-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border-radius: 20px;
    outline-offset: 3px;
}

.service-card-link:focus-visible {
    outline: 2px solid #006837;
}

.service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0, 104, 55, 0.18);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(2, 6, 23, 0.06);
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

/* Titular grande opcional sobre la foto (card catálogo /servicios/) */
.service-card__hero-head {
    padding: 1rem 1.15rem 0.85rem;
    text-align: center;
    font-family: "Montserrat", "Inter", sans-serif;
    font-weight: 700;
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0f2744;
    background: linear-gradient(180deg, #f8faf9 0%, #fff 100%);
    border-bottom: 1px solid rgba(0, 104, 55, 0.08);
}

.service-card__hero-head-line {
    margin-right: 0.2em;
}

.service-card__hero-head-accent {
    color: #006837;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.92em;
}

.service-card-link:hover .service-card,
.service-card-link:focus-visible .service-card {
    transform: translateY(-8px);
    box-shadow: 0 26px 56px rgba(0, 104, 55, 0.14), 0 16px 40px rgba(2, 6, 23, 0.1);
    border-color: rgba(214, 181, 133, 0.55);
}

.service-card__thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(0, 104, 55, 0.12) 0%, rgba(26, 84, 144, 0.14) 100%);
}

.service-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.service-card__thumb-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.95);
    background: radial-gradient(700px 250px at 15% 0%, rgba(0, 104, 55, 0.35) 0%, rgba(0, 104, 55, 0) 60%),
        linear-gradient(135deg, rgba(13, 61, 111, 0.42) 0%, rgba(0, 104, 55, 0.38) 100%);
}

.service-card__thumb-placeholder i {
    font-size: 2.75rem;
    opacity: 0.95;
}

.service-card__body {
    padding: 1.25rem 1.35rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.65rem;
}

.service-card__icon-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.service-card__icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #006837;
    transition: color 0.28s ease, transform 0.28s ease;
}

.service-card__icon i {
    font-size: 1.85rem;
    line-height: 1;
}

.service-card__icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.service-card-link:hover .service-card__icon,
.service-card-link:focus-visible .service-card__icon {
    color: #d6b585;
    transform: scale(1.06);
}

.service-card__title {
    font-family: "Montserrat", "Inter", sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0d2434;
    margin: 0;
    line-height: 1.3;
}

.service-card__desc {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(17, 24, 39, 0.72);
    flex: 1;
}

.service-card__more {
    margin-top: auto;
    padding-top: 0.35rem;
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #006837;
    transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.service-card-link:hover .service-card__more,
.service-card-link:focus-visible .service-card__more {
    color: #d6b585;
    letter-spacing: 0.06em;
}

@media (prefers-reduced-motion: reduce) {
    .service-card,
    .service-card__icon {
        transition: none;
    }

    .service-card-link:hover .service-card,
    .service-card-link:focus-visible .service-card {
        transform: none;
    }
}

/* Pista «desliza» solo en móvil (mismo corte que el carrusel) */
.services-carousel-hint {
    display: none;
}

.services-mobile-hint {
    display: none;
}

@media (max-width: 768px) {
    .services-carousel-hint {
        display: block;
    }

    .services-mobile-hint {
        display: block;
        margin-bottom: 1.1rem !important;
    }

    .services-mobile-hint__inner {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
        padding: 0.62rem 1.15rem;
        font-family: "Montserrat", "Inter", sans-serif;
        font-size: clamp(0.98rem, 3.6vw, 1.12rem);
        font-weight: 700;
        line-height: 1.25;
        letter-spacing: 0.03em;
        color: var(--icasa-green, #006837);
        background: linear-gradient(135deg, rgba(0, 104, 55, 0.1) 0%, rgba(0, 104, 55, 0.05) 100%);
        border: 1px solid rgba(0, 104, 55, 0.24);
        border-radius: 999px;
        box-shadow: 0 6px 18px rgba(0, 104, 55, 0.1);
    }

    .services-mobile-hint__icon {
        flex-shrink: 0;
        font-size: 1.15em;
        color: var(--icasa-green-bright, #00884a);
        animation: services-mobile-hint-nudge 2.4s ease-in-out infinite;
    }

    .services-mobile-hint__text {
        text-wrap: balance;
    }
}

@keyframes services-mobile-hint-nudge {
    0%,
    100% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateX(4px);
        opacity: 0.88;
    }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    .services-mobile-hint__icon {
        animation: none;
    }
}

/* Móvil: carrusel horizontal de servicios (scroll-snap + deslizar) */
@media (max-width: 768px) {
    .services-mobile-scroll {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-left: max(1rem, env(safe-area-inset-left, 0px));
        padding-right: max(1rem, env(safe-area-inset-right, 0px));
        box-sizing: border-box;
        position: relative;
    }

    .services-mobile-scroll .services-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: max(1rem, env(safe-area-inset-left, 0px));
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        padding-bottom: 0.28rem;
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 104, 55, 0.55) transparent;
    }

    .services-mobile-scroll .services-grid::-webkit-scrollbar {
        height: 5px;
    }

    .services-mobile-scroll .services-grid::-webkit-scrollbar-track {
        margin-top: 0;
        background: transparent;
    }

    .services-mobile-scroll .services-grid::-webkit-scrollbar-thumb {
        background: rgba(0, 104, 55, 0.55);
        border-radius: 99px;
    }

    .services-mobile-scroll .service-card-link {
        flex: 0 0 min(86vw, 22rem);
        width: min(86vw, 22rem);
        max-width: min(86vw, 22rem);
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .services-mobile-scroll .service-card {
        height: 100%;
        min-height: min(58vh, 24rem);
    }

    .service-card__thumb {
        aspect-ratio: unset;
        min-height: clamp(13rem, 42vw, 17rem);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.85rem 1rem;
        box-sizing: border-box;
        background: #eef2f7;
    }

    .service-card__thumb img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: min(52vh, 22rem);
        object-fit: contain;
        object-position: center;
    }

    .service-card__body {
        padding: 1.35rem 1.25rem 1.45rem;
    }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    .services-mobile-scroll .services-grid {
        scroll-behavior: auto;
    }
}

.services-list {
    display: grid;
    gap: 1.15rem;
}

.icasa-service-row {
    display: grid;
    grid-template-columns: minmax(260px, 38%) 1fr;
    background: #fff;
    border: 1px solid rgba(0, 104, 55, 0.22);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(2, 6, 23, 0.06);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.icasa-service-row:hover {
    border-color: rgba(0, 104, 55, 0.55);
    box-shadow: 0 22px 56px rgba(0, 104, 55, 0.12), 0 14px 36px rgba(2, 6, 23, 0.10);
    transform: translateY(-2px);
}

.icasa-service-row__media {
    position: relative;
    min-height: 300px;
    background: linear-gradient(135deg, rgba(0, 104, 55, 0.12) 0%, rgba(26, 84, 144, 0.14) 100%);
}

.icasa-service-row__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.icasa-service-row:hover .icasa-service-row__media img {
    transform: scale(1.05);
}

.icasa-service-row__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-align: center;
    color: #fff;
    background: radial-gradient(700px 250px at 15% 0%, rgba(0, 104, 55, 0.30) 0%, rgba(0, 104, 55, 0) 60%),
                linear-gradient(135deg, rgba(13, 61, 111, 0.38) 0%, rgba(0, 104, 55, 0.35) 100%);
}

.icasa-service-row__placeholder i {
    font-size: 2.5rem;
}

.icasa-service-row__placeholder span {
    font-weight: 700;
    letter-spacing: 0.03em;
}

.icasa-service-row__body {
    padding: 1.35rem 1.45rem 1.3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.icasa-service-row__kicker {
    margin: 0 0 0.35rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 800;
    color: #006837;
}

.icasa-service-row__title {
    font-family: "Montserrat", "Inter", sans-serif;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0d2434;
    margin: 0 0 0.75rem;
}

.icasa-service-row__desc {
    margin: 0 0 1rem;
    color: rgba(17, 24, 39, 0.74);
    line-height: 1.65;
    font-size: 0.98rem;
}

.icasa-service-row__actions {
    margin-top: auto;
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

@media (max-width: 991px) {
    .icasa-service-row {
        grid-template-columns: 1fr;
    }

    .icasa-service-row__media {
        min-height: 235px;
    }
}

.services-cta {
    padding: 3.5rem 0 4rem;
    background: linear-gradient(135deg, rgba(0, 104, 55, 0.08) 0%, rgba(26, 84, 144, 0.10) 100%);
}

.services-cta-title {
    font-family: "Montserrat", "Inter", sans-serif;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: #0b1f2f;
}

.services-cta-lead {
    max-width: 52rem;
    margin: 0 auto 1.5rem;
    color: rgba(17, 24, 39, 0.72);
    line-height: 1.65;
    font-size: 1.02rem;
}

.btn-services-primary {
    background: #006837;
    border: 2px solid #006837;
    border-radius: 14px;
    color: #fff !important;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 0.9rem 1.45rem;
    box-shadow: 0 12px 30px rgba(0, 104, 55, 0.18);
}

.btn-services-primary:hover {
    background: #00a651;
    border-color: #00a651;
    color: #fff !important;
    transform: translateY(-1px);
}

.btn-services-ghost {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 104, 55, 0.25);
    border-radius: 14px;
    color: #006837 !important;
    font-weight: 900;
    letter-spacing: 0.01em;
    padding: 0.9rem 1.25rem;
    text-decoration: none;
}

.btn-services-ghost:hover {
    background: rgba(0, 104, 55, 0.08);
    border-color: rgba(0, 104, 55, 0.55);
    color: #006837 !important;
    transform: translateY(-1px);
}

/* —— /servicios/ y /destinos/ — hero compacto (mismo formato que listado de servicios) —— */
.page-servicios .services-hero--video .services-hero__frame {
    /* Centrar el bloque de textos (evita flex-end + poco alto = título recortado abajo) */
    align-items: center;
    justify-content: center;
    height: clamp(24rem, min(56vw, 52vh), 38rem);
    min-height: 24rem;
}

.page-servicios .services-hero--video .services-hero__content {
    padding-top: clamp(1.1rem, 3vh, 1.85rem);
    /* Espacio bajo el bloque para la flecha absoluta sin solapar el último renglón */
    padding-bottom: clamp(4.75rem, 11vh, 6.5rem);
}

.page-servicios .services-hero--video .services-hero__img {
    object-position: center 50%;
}

.page-servicios .services-hero--video .services-title {
    line-height: 1.12;
    padding-bottom: 0.06em;
}

@media (max-width: 768px) {
    .page-servicios .services-hero--video .services-hero__frame {
        height: clamp(20rem, min(96vw, 50dvh), 32rem);
        max-height: 62dvh;
        min-height: 20rem;
    }

    .page-servicios .services-hero--video .services-hero__content {
        padding-top: clamp(1rem, 2.8vh, 1.5rem);
        padding-bottom: clamp(4.25rem, 10dvh, 5.75rem);
    }

    .page-servicios .services-hero--video .services-hero__img {
        object-position: center 48%;
    }
}

