/* Inicio — estilo corporativo (solo .page-home-corporate) */

:root {
    --home-accent-red: #d9222a;
    --home-accent-red-hover: #b81b22;
    --home-navy: #0f2d4a;
    --home-deep-blue: #0a2540;
    --home-deep-blue-soft: #143a5c;
    --home-card-shadow: 0 4px 24px rgba(10, 37, 64, 0.06);
    --home-card-shadow-hover: 0 18px 40px rgba(10, 37, 64, 0.12);
    /* ICASA brand — sección de estadísticas */
    --icasa-green: #006837;
    --icasa-green-bright: #00a651;
    --icasa-green-soft: rgba(0, 104, 55, 0.12);
    --icasa-green-border: rgba(0, 104, 55, 0.22);
}

/* Hero bajo barra fija: altura = viewport menos nav (variable en modern.css) */

.page-home-corporate {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #1b2838;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: clip;
}

.page-home-corporate .hero-carousel-photo {
    height: calc(100svh - var(--nav-bar-stack, 5.75rem));
    min-height: 320px;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.page-home-corporate .hero-carousel-photo .carousel-inner,
.page-home-corporate .hero-carousel-photo .carousel-item {
    height: calc(100svh - var(--nav-bar-stack, 5.75rem));
    min-height: 320px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.page-home-corporate .hero-carousel-photo .carousel-inner {
    overflow: hidden;
}

.page-home-corporate .hero-carousel-photo .carousel-item {
    overflow: hidden;
}

.page-home-corporate .hero-carousel-photo .carousel-item::before {
    display: none !important;
}

/* modern.css añade otro ::before al .carousel-item; en foto-hero lo anulamos (evita capas extra y bloqueo de clics) */
.hero-carousel.hero-carousel-photo .carousel-item::before {
    display: none !important;
    content: none !important;
    pointer-events: none !important;
}

.hero-slide-photo {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Imagen vía <img>: mejor encaje en móviles (iOS/Android) que solo background-image */
.hero-slide-photo--has-img {
    background-image: none !important;
}

.hero-slide-photo__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    width: 100%;
    box-sizing: border-box;
}

.hero-slide-photo__img {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    display: block;
    box-sizing: border-box;
}

/* Móvil: hero a pantalla completa (imagen bajo nav transparente); solo inicio */
@media (max-width: 768px) {
    .page-home-corporate {
        --home-hero-mobile-h: 100svh;
    }

    .page-home-corporate .hero-carousel-photo,
    .page-home-corporate .hero-carousel-photo .carousel-inner,
    .page-home-corporate .hero-carousel-photo .carousel-item {
        height: var(--home-hero-mobile-h);
        min-height: var(--home-hero-mobile-h);
    }

    .page-home-corporate .hero-carousel-photo {
        overflow: hidden;
        margin-top: calc(-1 * var(--nav-bar-stack, 5.75rem));
        /* Ocupa el primer pantallazo: nav flotante + carrusel a altura de viewport */
        min-height: var(--home-hero-mobile-h);
    }

    .page-home-corporate .hero-carousel-photo .carousel-inner {
        touch-action: pan-y;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        /* Si queda un hueco de 1px al animar, no se ve blanco */
        background-color: #0a2540;
    }

    /*
     * Raya vertical entre slides (iOS/Android): subpíxeles al hacer translate.
     * El inner recorta; cada slide puede desbordar un poco la imagen al vecino.
     */
    .page-home-corporate .hero-carousel-photo .carousel-item {
        overflow: visible;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .page-home-corporate .hero-carousel-photo .carousel-item.active {
        z-index: 2;
    }

    .page-home-corporate .hero-carousel-photo .carousel-item.carousel-item-next,
    .page-home-corporate .hero-carousel-photo .carousel-item.carousel-item-prev,
    .page-home-corporate .hero-carousel-photo .carousel-item.carousel-item-start,
    .page-home-corporate .hero-carousel-photo .carousel-item.carousel-item-end {
        z-index: 1;
    }

    .page-home-corporate .hero-carousel-photo .hero-slide-photo__media {
        inset: -3px;
        width: auto;
    }

    .hero-slide-photo__img {
        object-position: center 32%;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* iPhone / Safari: prioriza svh (primer pantallazo con barra de URL) + fallback clásico */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .page-home-corporate {
            --home-hero-mobile-h: 100svh;
        }

        .page-home-corporate .hero-carousel-photo,
        .page-home-corporate .hero-carousel-photo .carousel-inner,
        .page-home-corporate .hero-carousel-photo .carousel-item {
            min-height: -webkit-fill-available;
        }
    }
}

.page-home-corporate .hero-carousel-photo .corporate-hero-caption {
    z-index: 10;
    top: 50%;
    bottom: auto;
    left: 0;
    right: auto;
    transform: translateY(-50%);
    text-align: left;
    padding: 2rem 6% 2rem 5%;
    margin: 0;
    max-width: 38rem;
    width: min(92%, 38rem);
}

/* Hero: bloque inferior a ancho completo; texto a la izquierda, CTAs centrados abajo */
.page-home-corporate .hero-carousel-photo .corporate-hero-caption.hero-caption--bottomleft {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    transform: none;
    text-align: left;
    /* padding inferior: hueco para indicadores del carrusel (no se enciman con los botones) */
    padding: clamp(1.25rem, 4vw, 2rem) clamp(1.25rem, 5vw, 3.5rem) clamp(3.25rem, 6vw, 4rem);
    max-width: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: clamp(1rem, 2.5vw, 1.5rem);
    box-sizing: border-box;
}

.page-home-corporate .hero-carousel-photo .hero-caption--bottomleft .hero-caption__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    width: 100%;
    max-width: 38rem;
    align-self: flex-start;
}

/* 1) Titular — sans muy negrita, mayúsculas, interlineado cerrado */
.page-home-corporate .hero-carousel-photo .corporate-hero-service {
    font-family: "Montserrat", "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: clamp(1.85rem, 5.2vw, 3.15rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.06;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    max-width: 100%;
    text-wrap: balance;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

/* 2) Línea de refuerzo — misma familia, segunda línea del bloque titular */
.page-home-corporate .hero-carousel-photo .corporate-hero-tagline {
    font-family: "Montserrat", "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: clamp(1.2rem, 3.4vw, 1.85rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.08;
    text-transform: uppercase;
    margin: 0;
    margin-top: 0.1rem;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

/* 3) Descripción — sans legible, blanco, cuerpo bajo el titular */
.page-home-corporate .hero-carousel-photo .corporate-hero-lead {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(0.9375rem, 1.75vw, 1.0625rem);
    font-weight: 500;
    line-height: 1.55;
    margin: 0;
    margin-top: 0.65rem;
    color: #fff;
    max-width: 36rem;
    width: 100%;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.hero-caption--bottomleft .hero-caption__actions {
    margin-top: 0;
    max-width: 100%;
    justify-content: center;
}

.page-home-corporate .hero-carousel-photo .hero-caption__actions {
    gap: 0.5rem 0.65rem !important;
    align-items: stretch;
    justify-content: center !important;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
}

/* Slide solo con imagen: bloque de CTAs sin texto encima */
.page-home-corporate .hero-carousel-photo .hero-caption__actions--solo-cta {
    margin-top: 0;
}

/* Tres CTAs: grupo centrado; mismo borde y tipografía (ancho natural, pueden envolver en pantallas estrechas) */
.page-home-corporate .hero-carousel-photo .hero-caption__actions .btn-hero-outline {
    flex: 0 1 auto;
    min-width: min(9.25rem, 28vw);
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.75rem;
    box-sizing: border-box;
    border-width: 2px;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-align: center;
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.page-home-corporate .hero-carousel-photo .hero-caption__actions .btn-hero-outline .bi-whatsapp {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.page-home-corporate .hero-carousel-photo .hero-carousel-indicators {
    margin-bottom: 0;
    z-index: 20;
    pointer-events: auto;
    left: 0;
    right: 0;
    transform: none;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: calc(100% - 5.5rem);
    padding: 0 max(2.75rem, env(safe-area-inset-left, 0px)) 0 max(2.75rem, env(safe-area-inset-right, 0px));
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 0.35rem;
    bottom: 1rem;
    box-sizing: border-box;
}

.page-home-corporate .hero-carousel-photo .hero-carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.35);
    opacity: 1;
    transition: transform 0.25s ease, background 0.25s ease;
}

.page-home-corporate .hero-carousel-photo .hero-carousel-indicators button.active {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0, 104, 55, 0.65);
}

/* Móvil / tablet: CTAs en cuadrícula 3×1 iguales, caption a ancho útil (sin cortes) e indicadores abajo */
@media (max-width: 768px) {
    .page-home-corporate .hero-carousel-photo .corporate-hero-caption.hero-caption--bottomleft {
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
        padding-top: clamp(1rem, 3vw, 1.5rem);
        /* Espacio reservado: fila de botones + indicadores + margen */
        padding-bottom: max(5.75rem, calc(4.5rem + env(safe-area-inset-bottom, 0px)));
        /* Deja pasar el dedo al carrusel para el deslizamiento; los botones reactivan pointer-events abajo */
        pointer-events: none;
    }

    .page-home-corporate .hero-carousel-photo .hero-carousel-indicators {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        bottom: max(0.65rem, env(safe-area-inset-bottom, 0px)) !important;
        max-width: calc(100% - 4.5rem);
        z-index: 30;
    }

    /* Móvil: un solo CTA en el carrusel (Ver servicios); Contactar/WhatsApp en escritorio */
    .page-home-corporate .hero-carousel-photo .hero-caption__action--desktop-only {
        display: none !important;
    }

    .page-home-corporate .hero-carousel-photo .hero-caption__actions {
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 100%;
        gap: 0 !important;
    }

    .page-home-corporate .hero-carousel-photo .hero-caption--bottomleft .hero-caption__actions .btn-hero,
    .page-home-corporate .hero-carousel-photo .hero-caption__actions .btn-hero-outline.hero-caption__action--servicios {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        width: auto;
        min-width: min(100%, 11.5rem);
        max-width: 100%;
        min-height: 2.65rem;
        height: auto;
        margin: 0 auto;
        padding: 0.5rem 1.15rem;
        font-size: 0.8125rem;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
        flex: 0 1 auto;
    }

    .page-home-corporate .hero-carousel-photo .corporate-hero-caption.hero-caption--bottomleft {
        padding-bottom: max(4.25rem, calc(3.5rem + env(safe-area-inset-bottom, 0px)));
    }

    .page-home-corporate .hero-carousel-photo .hero-caption__actions,
    .page-home-corporate .hero-carousel-photo .hero-caption__actions a,
    .page-home-corporate .hero-carousel-photo .hero-caption__actions .btn {
        pointer-events: auto;
    }

    #heroCarousel.hero-carousel {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Flechas minimalistas: sin pastilla blanca; solo chevron + sombra para leer sobre cualquier foto */
.page-home-corporate .hero-carousel-photo .carousel-control-prev,
.page-home-corporate .hero-carousel-photo .carousel-control-next {
    width: 3.25rem;
    height: 5rem;
    max-width: none;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 0;
    border: none;
    background: transparent !important;
    backdrop-filter: none;
    box-shadow: none;
    opacity: 0.88;
    z-index: 25;
    pointer-events: auto;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.page-home-corporate .hero-carousel-photo .carousel-control-prev {
    left: 0.35rem;
}

.page-home-corporate .hero-carousel-photo .carousel-control-next {
    right: 0.35rem;
}

.page-home-corporate .hero-carousel-photo .carousel-control-prev:hover,
.page-home-corporate .hero-carousel-photo .carousel-control-next:hover,
.page-home-corporate .hero-carousel-photo .carousel-control-prev:focus-visible,
.page-home-corporate .hero-carousel-photo .carousel-control-next:focus-visible {
    background: transparent !important;
    opacity: 1;
    transform: translateY(-50%) scale(1.06);
    box-shadow: none;
}

/* Móvil: sin flechas; el carrusel usa deslizamiento táctil nativo de Bootstrap 5 (data-bs-touch) */
@media (max-width: 768px) {
    .page-home-corporate .hero-carousel-photo .carousel-control-prev,
    .page-home-corporate .hero-carousel-photo .carousel-control-next {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

.page-home-corporate .hero-carousel-photo .carousel-control-prev-icon,
.page-home-corporate .hero-carousel-photo .carousel-control-next-icon {
    width: 1.65rem;
    height: 1.65rem;
    background-size: 100% 100%;
    /* Chevron claro sobre el hero; sombra para que no se pierda en zonas claras de la imagen */
    filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55))
        drop-shadow(0 0 12px rgba(0, 0, 0, 0.25));
}

/* CTA principal hero — verde ICASA */
.page-home-corporate .btn-hero-icasa {
    background: var(--icasa-green);
    color: #fff !important;
    border: 2px solid var(--icasa-green);
    border-radius: 10px;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: none;
    font-size: 0.875rem;
    padding: 0.8rem 1.65rem;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.2s ease;
    box-shadow: 0 6px 20px rgba(0, 104, 55, 0.28);
}

.page-home-corporate .btn-hero-icasa:hover {
    background: var(--icasa-green-bright);
    border-color: var(--icasa-green-bright);
    color: #fff !important;
    box-shadow: 0 8px 26px rgba(0, 166, 81, 0.35);
    transform: translateY(-1px);
}

/* Legacy: carrusel antiguo si quedara btn-hero-red en otro sitio */
.page-home-corporate .btn-hero-red {
    background: var(--icasa-green);
    color: #fff !important;
    border: 2px solid var(--icasa-green);
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: none;
    font-size: 0.875rem;
    padding: 0.8rem 1.65rem;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.page-home-corporate .btn-hero-red:hover {
    background: var(--icasa-green-bright);
    border-color: var(--icasa-green-bright);
    color: #fff !important;
}

.page-home-corporate .btn-hero-outline {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 10px;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: none;
    font-size: 0.875rem;
    padding: 0.8rem 1.55rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.2s ease;
}

.page-home-corporate .btn-hero-outline:hover {
    background: #fff;
    color: var(--icasa-green) !important;
    border-color: #fff;
    transform: translateY(-1px);
}

.page-home-corporate .btn-hero-red-solid {
    background: var(--home-accent-red);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 0.75rem 1.5rem;
}

.page-home-corporate .btn-hero-red-solid:hover {
    background: var(--home-accent-red-hover);
    color: #fff;
}

/* —— Impacto / estadísticas (ICASA green + tarjetas corporativas) —— */
.home-stats-section {
    padding: clamp(3rem, 6vw, 4.75rem) 0;
    background: #fafcfb;
    border-bottom: 1px solid rgba(0, 104, 55, 0.08);
}

.home-stats-header {
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    position: relative;
    padding-bottom: 1.25rem;
}

.home-stats-header::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(120px, 28vw);
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--icasa-green-bright), var(--icasa-green), transparent);
    opacity: 0.85;
}

.home-stats-kicker {
    font-family: "Montserrat", "Inter", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--icasa-green);
    margin-bottom: 0.65rem;
}

.home-stats-title {
    font-family: "Montserrat", "Inter", sans-serif;
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    font-weight: 700;
    color: var(--icasa-green);
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0;
}

.home-stat-item {
    text-align: center;
    padding: 1.35rem 0.85rem 1.25rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--icasa-green-border);
    box-shadow: 0 4px 20px rgba(0, 104, 55, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04);
    height: 100%;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease, border-color 0.32s ease;
    /* Evita “hover pegado” en táctil y el flash gris al tocar (WebKit) */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.home-stat-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.9rem;
    border-radius: 14px;
    background: var(--icasa-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 6px 16px rgba(0, 104, 55, 0.28);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease, background 0.25s ease;
}

/* Solo ratón/trackpad real: en móvil :hover queda activo tras el toque y mueve la tarjeta (translateY),
   lo que además puede disparar de nuevo el IntersectionObserver de los contadores. */
@media (hover: hover) and (pointer: fine) {
    .home-stat-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 16px 40px rgba(0, 104, 55, 0.1), 0 8px 24px rgba(0, 0, 0, 0.06);
        border-color: rgba(0, 104, 55, 0.38);
    }

    .home-stat-item:hover .home-stat-icon {
        transform: scale(1.06);
        background: var(--icasa-green-bright);
        box-shadow: 0 8px 22px rgba(0, 166, 81, 0.35);
    }
}

.home-stat-number {
    font-family: "Montserrat", "Inter", sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 4.8vw, 3rem);
    line-height: 1;
    letter-spacing: -0.04em;
    margin: 0 0 0.7rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    font-variant-numeric: tabular-nums;
}

.home-stat-number--solid .home-stat-digits,
.home-stat-number--solid .home-stat-k,
.home-stat-number--247 .home-stat-247-tail {
    color: var(--icasa-green);
}

.home-stat-number--outline .home-stat-digits {
    color: transparent;
    -webkit-text-stroke: 1.65px var(--icasa-green);
}

@supports not (-webkit-text-stroke: 1px red) {
    .home-stat-number--outline .home-stat-digits {
        color: var(--icasa-green);
        -webkit-text-stroke: 0;
    }
}

.home-stat-plus {
    font-weight: 800;
    color: var(--icasa-green-bright);
    margin-left: 0.02em;
    -webkit-text-stroke: 0;
}

.home-stat-k {
    font-weight: 800;
    color: var(--icasa-green);
    margin-left: 0.02em;
}

.home-stat-number--outline .home-stat-plus {
    margin-left: 0.04em;
}

.home-stat-247-sep {
    font-weight: 700;
    color: var(--icasa-green);
    opacity: 0.45;
    margin: 0 0.02em;
}

.home-stat-247-tail {
    font-weight: 800;
    margin-left: 0.02em;
}

.home-stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5d68;
    line-height: 1.45;
    margin: 0;
    max-width: 13rem;
    margin-left: auto;
    margin-right: auto;
}

.home-stats-section[data-stats-animated] .home-stats-row > div .home-stat-item {
    animation: homeStatCardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.home-stats-section[data-stats-animated] .home-stats-row > div:nth-child(1) .home-stat-item { animation-delay: 0.05s; }
.home-stats-section[data-stats-animated] .home-stats-row > div:nth-child(2) .home-stat-item { animation-delay: 0.12s; }
.home-stats-section[data-stats-animated] .home-stats-row > div:nth-child(3) .home-stat-item { animation-delay: 0.19s; }
.home-stats-section[data-stats-animated] .home-stats-row > div:nth-child(4) .home-stat-item { animation-delay: 0.26s; }

@keyframes homeStatCardIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* —— Nuestra experiencia (entre estadísticas y servicios especializados) —— */
/* Misma línea visual que .footer-icasa (main.css): verde + halos + texto blanco */
.home-experience {
    background: #ffffff;
}

.home-experience__card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: clamp(1.35rem, 2.6vw, 2.25rem);
    background: linear-gradient(160deg, #005a2e 0%, #006837 38%, #004d28 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 22px 48px rgba(0, 40, 22, 0.35),
        0 8px 20px rgba(0, 0, 0, 0.12);
}

.home-experience__card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(55%, 36rem);
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 95% 75% at -5% 25%, rgba(255, 255, 255, 0.22) 0%, transparent 58%),
        radial-gradient(ellipse 70% 55% at 12% 88%, rgba(255, 255, 255, 0.12) 0%, transparent 62%),
        linear-gradient(100deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 35%, transparent 78%);
}

.home-experience__card > .row {
    position: relative;
    z-index: 1;
}

.home-experience__kicker {
    font-family: "Montserrat", "Inter", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 0.65rem;
}

.home-experience__title {
    font-family: "Montserrat", "Inter", sans-serif;
    font-size: clamp(1.4rem, 2.9vw, 2.05rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 0.95rem;
}

.home-experience__text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    max-width: 40ch;
}

.home-experience-carousel {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
    background: rgba(0, 0, 0, 0.2);
    min-height: 100%;
}

.home-experience-carousel__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
}

.home-experience-carousel__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.home-experience .home-experience-carousel .carousel-control-prev,
.home-experience .home-experience-carousel .carousel-control-next {
    width: 14%;
}

.home-experience .home-experience-carousel .carousel-control-prev-icon,
.home-experience .home-experience-carousel .carousel-control-next-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background-color: rgba(8, 24, 40, 0.45);
    background-size: 55% 55%;
}

.home-experience-carousel__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 2rem;
}

.home-experience-carousel__empty {
    border: 1px dashed rgba(255, 255, 255, 0.35);
    border-radius: 18px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.08);
    text-align: center;
    padding: 1rem;
}

.home-experience-carousel__empty i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* —— Nuestros Servicios Especializados (ICASA green, reveal, hover imagen) —— */
.home-services-showcase {
    background: #f9fafb;
    border-top: 1px solid rgba(0, 104, 55, 0.06);
    border-bottom: 1px solid rgba(0, 104, 55, 0.06);
}

.home-services-showcase-header {
    max-width: 40rem;
    margin: 0 auto 2.75rem;
    position: relative;
    padding-bottom: 1.15rem;
}

.home-services-showcase-header::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(100px, 24vw);
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--icasa-green-bright), var(--icasa-green), transparent);
    opacity: 0.85;
}

.home-services-showcase-kicker {
    font-family: "Montserrat", "Inter", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--icasa-green);
    margin-bottom: 0.65rem;
}

.home-services-showcase-title {
    font-family: "Montserrat", "Inter", sans-serif;
    font-size: clamp(1.55rem, 3.2vw, 2.1rem);
    font-weight: 700;
    color: var(--icasa-green);
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.home-services-showcase-lead {
    font-size: 1.02rem;
    color: #4a5d68;
    line-height: 1.6;
    margin: 0;
}

/* Carrusel servicios especializados: hasta 3 visibles (lg), 2 (md), 1 (móvil); desplazamiento por tarjeta */
.home-services-carousel {
    position: relative;
}

.home-services-carousel--multi {
    width: 100%;
    max-width: 100%;
    padding: 0.25rem 3rem 0.5rem;
}

.home-services-carousel__viewport {
    overflow: hidden;
    width: 100%;
}

.home-services-carousel__track {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 1.25rem;
    will-change: transform;
}

.home-services-carousel__cell {
    min-width: 0;
    box-sizing: border-box;
}

.home-services-carousel--multi.home-services-carousel--no-scroll .home-services-carousel__arrow {
    display: none;
}

.home-services-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    opacity: 1;
}

.home-services-carousel__arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.home-services-carousel__arrow--prev {
    left: 0;
}

.home-services-carousel__arrow--next {
    right: 0;
}

.home-services-carousel__btn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--icasa-green-border);
    color: var(--icasa-green);
    font-size: 1.35rem;
    line-height: 1;
    box-shadow: 0 2px 14px rgba(0, 104, 55, 0.1);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.home-services-carousel__arrow:not(:disabled):hover .home-services-carousel__btn-inner,
.home-services-carousel__arrow:not(:disabled):focus-visible .home-services-carousel__btn-inner {
    background: var(--icasa-green);
    border-color: var(--icasa-green);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 104, 55, 0.22);
    transform: scale(1.05);
}

/* Reveal: bloque del carrusel (sustituye reveal por tarjeta en grid) */
.home-services-carousel[data-reveal-card] {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.home-services-carousel[data-reveal-card].is-inview {
    opacity: 1;
    transform: translateY(0);
}

.home-service-spotlight {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--icasa-green-border);
    box-shadow: 0 4px 22px rgba(0, 104, 55, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-service-spotlight__card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    text-decoration: none;
}

.home-service-spotlight__card-link:focus-visible {
    outline: 2px solid rgba(0, 104, 55, 0.85);
    outline-offset: 3px;
}

.home-service-spotlight:hover {
    box-shadow: 0 20px 48px rgba(0, 104, 55, 0.12), 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 104, 55, 0.32);
    transform: translateY(-4px);
}

.home-service-spotlight__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e8ece9;
}

.home-service-spotlight__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.home-service-spotlight:hover .home-service-spotlight__media img {
    transform: scale(1.07);
}

/* Placeholder hasta que suban fotos propias */
.home-service-spotlight__media--placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    padding: 1.25rem;
    background: linear-gradient(145deg, rgba(0, 104, 55, 0.07) 0%, rgba(15, 45, 74, 0.06) 100%);
    border-bottom: 1px solid rgba(0, 104, 55, 0.1);
}

.home-service-spotlight__placeholder-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--icasa-green);
    background: rgba(255, 255, 255, 0.9);
    border: 1px dashed rgba(0, 104, 55, 0.35);
}

.home-service-spotlight__placeholder-text {
    font-family: "Montserrat", "Inter", sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    line-height: 1.45;
    max-width: 12rem;
}

.home-service-spotlight__placeholder-text small {
    display: block;
    margin-top: 0.25rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: none;
    font-size: 0.68rem;
    color: #94a3b8;
}

.home-service-spotlight__body {
    padding: 1.35rem 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
}

.home-service-spotlight__title {
    font-family: "Montserrat", "Inter", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--icasa-green);
    margin: 0 0 0.65rem;
    line-height: 1.28;
    letter-spacing: -0.02em;
}

.home-service-spotlight__text {
    font-size: 0.9rem;
    color: #4b5c68;
    line-height: 1.55;
    margin: 0 0 1.1rem;
    flex-grow: 1;
}

.home-service-spotlight__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    align-self: flex-start;
    font-family: "Montserrat", "Inter", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: var(--icasa-green);
    border: 2px solid var(--icasa-green);
    padding: 0.55rem 1.15rem;
    border-radius: 10px;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.home-service-spotlight__cta i {
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 0.22s ease;
}

.home-service-spotlight__cta:hover {
    background: var(--icasa-green-bright);
    border-color: var(--icasa-green-bright);
    color: #fff;
    transform: translateX(2px);
    box-shadow: 0 6px 18px rgba(0, 104, 55, 0.28);
}

.home-service-spotlight__cta:hover i {
    transform: translateX(3px);
}

.home-service-spotlight__actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 0.15rem;
}

.home-service-spotlight__btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-family: "Montserrat", "Inter", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.5rem 0.95rem;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-service-spotlight__btn--primary {
    color: #fff;
    background: var(--icasa-green);
    border-color: var(--icasa-green);
}

.home-service-spotlight__btn--primary:hover {
    color: #fff;
    background: var(--icasa-green-bright);
    border-color: var(--icasa-green-bright);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 104, 55, 0.25);
}

.home-service-spotlight__btn--outline {
    color: var(--icasa-green);
    background: #fff;
    border-color: rgba(0, 104, 55, 0.35);
}

.home-service-spotlight__btn--outline:hover {
    color: #fff;
    background: var(--icasa-green);
    border-color: var(--icasa-green);
}

.home-service-spotlight__btn--wa {
    color: #fff;
    background: #128c7e;
    border-color: #128c7e;
}

.home-service-spotlight__btn--wa:hover {
    color: #fff;
    background: #0f7a6e;
    border-color: #0f7a6e;
    box-shadow: 0 6px 16px rgba(18, 140, 126, 0.3);
}

.home-service-spotlight__btn i {
    font-size: 1rem;
    line-height: 1;
}

.home-service-spotlight__link-more {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.home-service-spotlight__link-more:hover {
    color: var(--icasa-green);
    border-bottom-color: rgba(0, 104, 55, 0.35);
}

/* Reveal on scroll (activado con .is-inview vía JS) */
.home-service-spotlight[data-reveal-card] {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.home-service-spotlight[data-reveal-card].is-inview {
    opacity: 1;
    transform: translateY(0);
}

.home-services-showcase-footer-btn {
    font-family: "Montserrat", "Inter", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.88rem 1.9rem;
    border-radius: 12px;
    border: 2px solid var(--icasa-green);
    color: var(--icasa-green);
    background: #fff;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.home-services-showcase-footer-btn:hover {
    background: var(--icasa-green);
    color: #fff;
    border-color: var(--icasa-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 104, 55, 0.22);
}

@media (min-width: 992px) {
    .page-home-corporate .hero-carousel-photo .corporate-hero-caption:not(.hero-caption--bottomleft) .corporate-hero-lead {
        margin-left: 0;
        margin-right: 0;
    }
}

.page-home-corporate .hero-carousel .carousel-caption {
    max-width: 48rem;
}

.page-home-corporate .hero-carousel .btn-hero {
    border-radius: 10px;
    letter-spacing: 0.03em;
    text-transform: none;
    font-size: 0.875rem;
    padding: 0.8rem 1.55rem;
}

.page-home-corporate .hero-carousel .btn-hero-primary {
    border-color: #fff;
    font-weight: 600;
}

.page-home-corporate .hero-carousel .btn-hero-outline {
    border-width: 1px;
    font-weight: 600;
}

/* Solo carrusel no-foto (si existiera): mantiene área táctil cuadrada */
.page-home-corporate .hero-carousel:not(.hero-carousel-photo) .carousel-control-prev,
.page-home-corporate .hero-carousel:not(.hero-carousel-photo) .carousel-control-next {
    border-radius: 4px;
    width: 48px;
    height: 48px;
}

.page-home-corporate .hero-carousel .carousel-indicators:not(.hero-carousel-indicators) button {
    border-radius: 2px;
    width: 28px;
    height: 3px;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    margin: 0 4px;
}

.page-home-corporate .hero-carousel .carousel-indicators:not(.hero-carousel-indicators) button.active {
    width: 36px;
    background: #fff;
    border-radius: 2px;
}

.page-home-corporate .hero-carousel.hero-carousel-photo {
    isolation: isolate;
    position: relative;
}

.page-home-corporate .scroll-indicator {
    animation: none;
    opacity: 0.65;
    z-index: 18;
    pointer-events: auto;
}

.page-home-corporate .scroll-indicator i {
    font-size: 1.5rem;
}

/* Botón flotante WhatsApp — solo inicio + móvil (visible al salir del carrusel vía JS) */
.home-wa-fab {
    display: none;
}

@media (max-width: 768px) {
    .page-home .home-wa-fab,
    .page-home-corporate .home-wa-fab {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        right: max(0.85rem, env(safe-area-inset-right, 0px));
        bottom: max(1rem, env(safe-area-inset-bottom, 0px));
        z-index: 1040;
        width: 3rem;
        height: 3rem;
        border: none;
        border-radius: 50%;
        background: #25d366;
        color: #fff;
        text-decoration: none;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
        -webkit-tap-highlight-color: transparent;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(10px) scale(0.92);
        transition:
            opacity 0.28s ease,
            visibility 0.28s ease,
            transform 0.28s ease,
            box-shadow 0.2s ease;
    }

    .page-home .home-wa-fab.is-visible,
    .page-home-corporate .home-wa-fab.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .page-home .home-wa-fab:active,
    .page-home-corporate .home-wa-fab:active {
        transform: translateY(0) scale(0.96);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    }

    .page-home .home-wa-fab .bi-whatsapp,
    .page-home-corporate .home-wa-fab .bi-whatsapp {
        font-size: 1.55rem;
        line-height: 1;
    }
}

@media (min-width: 769px) {
    .home-wa-fab {
        display: none !important;
    }
}

/* Franja de capacidades */
.corporate-trust-strip {
    background: #0f2d4a;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.corporate-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.25rem 0;
}

.corporate-trust-item i {
    font-size: 1.35rem;
    color: #7eb8e8;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.corporate-trust-item strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.corporate-trust-item span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.4;
}

/* Encabezados de sección */
.corporate-section-heading .corporate-kicker {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--icasa-green, #006837);
    margin-bottom: 0.5rem;
}

.corporate-section-heading .corporate-title {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    font-size: clamp(1.65rem, 3.5vw, 2.25rem);
}

.corporate-section-heading .corporate-subtitle {
    font-size: 1.05rem;
    color: #5c6b7a;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}

/* Tarjetas de servicio — más sobrias */
.page-home-corporate .service-card {
    border-radius: 0;
    border: 1px solid #e2e8f0;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.page-home-corporate .service-card:hover {
    transform: none;
    border-color: #c5d4e3;
    box-shadow: 0 8px 24px rgba(15, 45, 74, 0.08) !important;
}

.page-home-corporate .service-card:hover .card-body {
    background: #fafbfc;
}

.page-home-corporate .service-card .card-body {
    text-align: left;
    padding: 1.75rem !important;
}

.page-home-corporate .service-card .icon-large {
    font-size: 2rem;
    color: var(--primary-color, #1a5490);
    margin-bottom: 0.5rem;
}

.page-home-corporate .service-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin-top: 0 !important;
}

.page-home-corporate .service-card p.text-muted {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.page-home-corporate .service-card img {
    border-radius: 4px !important;
    max-height: 72px !important;
    width: auto;
    object-fit: contain;
}

/* Valores / por qué elegirnos */
.corporate-section-alt {
    background: radial-gradient(1000px 360px at 10% 0%, rgba(0, 104, 55, 0.12) 0%, rgba(0, 104, 55, 0) 55%),
                linear-gradient(180deg, #f7fafc 0%, #f4f7f8 100%);
    border-top: 1px solid rgba(0, 104, 55, 0.14);
    border-bottom: 1px solid rgba(0, 104, 55, 0.10);
}

/* —— Por qué trabajar con nosotros (bloque rediseñado) —— */
.corporate-why-section {
    padding-top: clamp(3.75rem, 9vw, 6.25rem) !important;
    padding-bottom: clamp(3.75rem, 9vw, 6.25rem) !important;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(0, 104, 55, 0.09) 0%, transparent 52%),
        radial-gradient(90% 70% at 0% 100%, rgba(0, 166, 81, 0.06) 0%, transparent 48%),
        linear-gradient(180deg, #f8fafb 0%, #f1f5f9 100%);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.corporate-why-section__layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(2.25rem, 5vw, 3.75rem);
}

@media (min-width: 992px) {
    .corporate-why-section__layout {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: clamp(2.5rem, 4vw, 4rem);
    }

    .corporate-why-section__intro {
        flex: 0 1 34%;
        max-width: 22rem;
        padding-top: 0.35rem;
    }

    .corporate-why-section__grid {
        flex: 1 1 0;
        min-width: 0;
    }
}

.corporate-why-section__intro {
    text-align: center;
}

@media (min-width: 992px) {
    .corporate-why-section__intro {
        text-align: left;
    }
}

.corporate-why-section__kicker {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--icasa-green, #006837);
    margin: 0 0 1rem;
    opacity: 0.95;
}

.corporate-why-section__title {
    font-family: "Montserrat", "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: #0f172a;
    margin: 0 0 1.25rem;
    max-width: 20ch;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    .corporate-why-section__title {
        margin-left: 0;
        margin-right: 0;
        max-width: none;
    }
}

.corporate-why-section__lead {
    font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #475569;
    margin: 0;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    .corporate-why-section__lead {
        margin-left: 0;
        margin-right: 0;
        font-size: 1.02rem;
    }
}

.corporate-why-section__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.35rem;
}

@media (min-width: 576px) {
    .corporate-why-section__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.35rem 1.25rem;
    }
}

@media (min-width: 1200px) {
    .corporate-why-section__grid {
        gap: 1.5rem 1.4rem;
    }
}

.corporate-why-card {
    position: relative;
    height: 100%;
    padding: 1.65rem 1.6rem 1.7rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 12px 40px rgba(15, 23, 42, 0.06),
        0 4px 12px rgba(15, 23, 42, 0.03);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease,
        border-color 0.25s ease;
    overflow: hidden;
}

.corporate-why-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 1.25rem 1.25rem 0 0;
    background: linear-gradient(90deg, var(--icasa-green, #006837), var(--icasa-green-bright, #00a651));
    opacity: 0.9;
}

.corporate-why-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 104, 55, 0.2);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 22px 50px rgba(0, 104, 55, 0.11),
        0 10px 28px rgba(15, 23, 42, 0.07);
}

.corporate-why-card__icon-wrap {
    width: 3.25rem;
    height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.15rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(0, 104, 55, 0.1), rgba(0, 166, 81, 0.06));
    border: 1px solid rgba(0, 104, 55, 0.16);
    color: var(--icasa-green, #006837);
    font-size: 1.45rem;
    line-height: 1;
}

.corporate-why-card__title {
    font-family: "Montserrat", "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0 0 0.55rem;
    line-height: 1.25;
}

.corporate-why-card__text {
    font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    .corporate-why-card {
        transition: none;
    }

    .corporate-why-card:hover {
        transform: none;
    }
}

.corporate-value-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .corporate-value-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.corporate-value-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 1.4rem 1.55rem;
    height: 100%;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.04);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.corporate-value-card:hover {
    border-color: rgba(0, 104, 55, 0.42);
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(0, 104, 55, 0.10), 0 10px 26px rgba(2, 6, 23, 0.06);
}

.corporate-value-card i {
    font-size: 1.15rem;
    color: var(--icasa-green, #006837);
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(0, 104, 55, 0.08);
    border: 1px solid rgba(0, 104, 55, 0.14);
    margin-bottom: 0.75rem;
}

.corporate-value-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0b1f2f;
    margin-bottom: 0.4rem;
}

.corporate-value-card p {
    font-size: 0.9rem;
    color: rgba(17, 24, 39, 0.72);
    margin: 0;
    line-height: 1.5;
}

/* CTA final */
.corporate-cta {
    background: linear-gradient(135deg, #0d3d6f 0%, #1a5490 50%, #153d66 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.corporate-cta h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.corporate-cta .lead {
    font-size: 1.05rem;
    font-weight: 400;
    opacity: 0.92;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.corporate-cta .btn-corporate-light {
    background: #fff;
    color: #0d3d6f;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 0.9rem 2rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.corporate-cta .btn-corporate-light:hover {
    background: #e8f0f8;
    color: #0a2f52;
}

/* Certificaciones (inicio) — misma línea visual que .footer-icasa */
.home-certs {
    position: relative;
    overflow: hidden;
    padding-top: clamp(2.4rem, 4.2vw, 3.2rem);
    padding-bottom: clamp(2.4rem, 4.4vw, 3.4rem);
    background: linear-gradient(160deg, #005a2e 0%, #006837 38%, #004d28 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.home-certs::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(55%, 36rem);
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 95% 75% at -5% 25%, rgba(255, 255, 255, 0.22) 0%, transparent 58%),
        radial-gradient(ellipse 70% 55% at 12% 88%, rgba(255, 255, 255, 0.12) 0%, transparent 62%),
        linear-gradient(100deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 35%, transparent 78%);
}

.home-certs > .container {
    position: relative;
    z-index: 1;
}

.home-certs__header {
    margin: 0 auto 1.5rem;
    max-width: 44rem;
}

.home-certs__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: "Montserrat", "Inter", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 0.32rem 0.72rem;
}

.home-certs__title {
    margin: 0;
    font-family: "Montserrat", "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: clamp(1.4rem, 2.3vw, 1.85rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.2);
}

.home-certs__lead {
    margin-top: 0.65rem;
    font-family: "Inter", system-ui, sans-serif;
    font-size: clamp(0.9rem, 1.45vw, 1rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
}

.home-certs__panel {
    position: relative;
    border-radius: 1.2rem;
    padding: clamp(0.75rem, 1.8vw, 1.1rem);
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.14) 100%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 20px 42px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.home-certs__row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(0.65rem, 1.2vw, 1rem);
    align-items: stretch;
}

.home-certs__card {
    min-height: clamp(118px, 12vw, 148px);
    position: relative;
}

.home-certs__media {
    height: clamp(118px, 12vw, 148px);
    min-height: clamp(118px, 12vw, 148px);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.4rem;
    overflow: hidden;
    isolation: isolate;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.home-certs__media:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.home-certs__media img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
    object-position: center;
    display: block;
    transform: scale(1.08);
    transform-origin: center center;
    transition: transform 0.28s ease;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.home-certs__media:hover img {
    transform: scale(1.15);
}

.home-certs__placeholder {
    color: rgba(0, 104, 55, 0.55);
    font-size: 1.45rem;
    line-height: 1;
}

.home-certs__empty {
    grid-column: 1 / -1;
    border: 1px dashed rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
}

.home-certs__empty.text-muted,
.home-certs__empty p {
    color: rgba(255, 255, 255, 0.88) !important;
}

.home-certs--aliados {
    margin-top: clamp(0.9rem, 2.6vw, 1.6rem);
}

.home-certs__row--aliados {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1200px) {
    .home-certs__row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-certs__row--aliados {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .home-certs__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-certs__row--aliados {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.page-home-corporate .section-padding {
    padding: 3.5rem 0;
}

@media (max-width: 576px) {
    .corporate-trust-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Ajustes mobile: tipografía del carrusel (padding/ancho ya unificados en breakpoint 768px) */
    .page-home-corporate .hero-carousel-photo .corporate-hero-caption.hero-caption--bottomleft {
        gap: 0.85rem;
    }

    .page-home-corporate .hero-carousel-photo .corporate-hero-service {
        font-size: 2.15rem;
        line-height: 1.08;
    }

    .page-home-corporate .hero-carousel-photo .corporate-hero-tagline {
        font-size: 1.32rem;
        line-height: 1.1;
    }

    .page-home-corporate .hero-carousel-photo .corporate-hero-lead {
        font-size: 0.98rem;
        margin-top: 0.45rem;
        line-height: 1.55;
    }

    /* Reducir padding general en secciones para que todo se vea mejor */
    .page-home-corporate .section-padding {
        padding: 2.6rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-certs__media,
    .home-certs__media img {
        transition: none;
    }

    .home-certs__media:hover {
        transform: none;
    }

    .home-certs__media img,
    .home-certs__media:hover img {
        transform: none;
    }

    .home-stat-item,
    .home-service-spotlight,
    .home-services-showcase-footer-btn {
        transition: none;
    }

    .home-service-spotlight:hover,
    .home-services-showcase-footer-btn:hover {
        transform: none;
    }

    .home-service-spotlight:hover .home-service-spotlight__media img {
        transform: none;
    }

    .home-service-spotlight__cta:hover i {
        transform: none;
    }

    .home-service-spotlight[data-reveal-card],
    .home-services-carousel[data-reveal-card] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .home-services-carousel__track {
        transition: none !important;
    }

    .home-stats-section[data-stats-animated] .home-stats-row > div .home-stat-item {
        animation: none;
    }
}

@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
    .home-stat-item:hover {
        transform: none;
    }

    .home-stat-item:hover .home-stat-icon {
        transform: none;
    }
}
