/*
 * Colpercol — portada 1.14
 * Capa visual exclusiva de la página de inicio.
 */

body.home {
    --home-ink: #0b1d32;
    --home-navy: #0c2038;
    --home-navy-soft: #132d4b;
    --home-blue: #2c66c8;
    --home-gold: #f4b84a;
    --home-gold-light: #ffd77f;
    --home-green: #17483c;
    --home-copy: #4d6075;
    --home-line: #d9e4ee;
    --home-surface: #f4f8fc;
    --home-warm: #fff8eb;
    --home-radius-sm: 12px;
    --home-radius: 20px;
    --home-shadow: 0 24px 60px rgba(11, 29, 50, 0.13);
    --home-gutter: max(1rem, calc((100vw - 1280px) / 2 + 1rem));
}

body.home .home-hero,
body.home .home-quick-paths,
body.home .home-company-note,
body.home .home-intro,
body.home .home-assurance,
body.home .home-services,
body.home .home-process,
body.home .home-featured,
body.home .home-contact-band {
    padding-inline: var(--home-gutter);
}

body.home .home-section-kicker,
body.home .home-quick-paths__header span {
    color: #9a620c;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.1em;
}

body.home .home-section-kicker::before,
body.home .home-quick-paths__header span::before {
    width: 2.2rem;
    background: linear-gradient(90deg, var(--home-gold), #d78c18);
}

/* Hero: mayor presencia de marca, lectura más clara y tarjeta comercial.
   Ocupa siempre el alto real del navegador y compacta el contenido cuando
   la ventana es baja (reglas de max-height más abajo). */
body.home .home-hero {
    min-height: calc(100svh - var(--site-header-height, 78px));
    gap: clamp(3rem, 7vw, 7rem);
    padding-top: clamp(2.4rem, 7svh, 7.5rem);
    padding-bottom: clamp(2rem, 6svh, 6.5rem);
    background: var(--home-ink);
}

body.home .home-hero::before {
    background-position: 68% 43%;
    filter: saturate(0.96) contrast(1.08) brightness(0.94);
    transform: scale(1.015);
}

body.home .home-hero::after {
    background:
        linear-gradient(90deg, rgba(4, 14, 27, 0.97) 0%, rgba(5, 17, 33, 0.91) 34%, rgba(5, 17, 33, 0.63) 58%, rgba(5, 17, 33, 0.18) 100%),
        linear-gradient(180deg, rgba(4, 14, 27, 0.16) 0%, rgba(4, 14, 27, 0.1) 48%, rgba(4, 14, 27, 0.72) 100%);
}

body.home .home-hero__content {
    width: min(790px, 100%);
}

body.home .home-hero__eyebrow {
    min-height: 36px;
    padding: 0.4rem 0.86rem 0.4rem 0.5rem;
    border-color: rgba(255, 215, 127, 0.34);
    background: rgba(7, 21, 39, 0.64);
    color: #fff0cc;
    box-shadow: 0 14px 36px rgba(3, 11, 22, 0.28);
}

body.home .home-hero h1 {
    max-width: 13.5ch;
    margin-top: 1.15rem;
    margin-bottom: 1.1rem;
    font-size: clamp(3.2rem, 5.35vw, 5.35rem);
    font-weight: 820;
    line-height: 0.95;
    letter-spacing: -0.045em;
    text-shadow: 0 3px 24px rgba(3, 11, 22, 0.4);
}

body.home .home-hero__title-accent {
    position: relative;
    display: inline-block;
    z-index: 0;
    color: var(--home-gold-light);
}

body.home .home-hero__title-accent::after {
    content: "";
    position: absolute;
    right: 0.02em;
    bottom: 0.02em;
    left: 0.02em;
    z-index: -1;
    height: 0.1em;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--home-gold), rgba(244, 184, 74, 0.12));
    transform: rotate(-1deg);
}

body.home .home-hero__lead {
    max-width: 630px;
    color: #dbe7f3;
    font-size: clamp(1.08rem, 1.45vw, 1.24rem);
    line-height: 1.65;
}

body.home .home-hero__note {
    min-height: 34px;
    margin-top: 1.15rem;
    border-color: rgba(255, 215, 127, 0.22);
    background: rgba(244, 184, 74, 0.1);
    color: #f7dfab;
}

body.home .home-hero__actions {
    gap: 0.75rem;
    margin-top: 1.55rem;
}

body.home .home-hero .home-button {
    min-height: 54px;
    padding-inline: 1.35rem;
    border-radius: 12px;
}

body.home .home-hero .home-button--primary {
    box-shadow: 0 16px 34px rgba(244, 184, 74, 0.2);
}

body.home .home-hero .home-button--secondary {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.08);
}

body.home .home-hero__proof {
    max-width: 780px;
    margin-top: 1.8rem;
    padding: 1.15rem 0.55rem 1.15rem 1.25rem;
    border-color: rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    background: rgba(7, 20, 37, 0.58);
    box-shadow: 0 22px 54px rgba(3, 11, 22, 0.34);
}

body.home .home-hero__proof strong {
    font-size: 1.08rem;
}

body.home .home-hero__proof span {
    color: #b9cbe0;
}

body.home .home-hero__card {
    position: relative;
    overflow: hidden;
}

body.home .home-hero__card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--home-gold), rgba(244, 184, 74, 0));
}

/* Accesos: mosaico fotográfico con más aire y una transición limpia. */
body.home .home-quick-paths {
    gap: clamp(1.8rem, 3vw, 2.7rem);
    padding-top: clamp(4rem, 6vw, 6rem) !important;
    padding-bottom: clamp(4.5rem, 7vw, 6.5rem) !important;
    border: 0 !important;
    background:
        radial-gradient(circle at 88% 10%, rgba(44, 102, 200, 0.09), transparent 28%),
        linear-gradient(180deg, #f7fbff 0%, #edf5fb 100%);
}

body.home .home-quick-paths__header {
    width: min(1280px, 100%);
    grid-template-columns: minmax(340px, 0.86fr) minmax(430px, 0.82fr);
    justify-content: space-between;
    gap: clamp(2rem, 7vw, 6rem);
}

body.home .home-quick-paths__header h2,
body.home .home-company-note h2,
body.home .home-intro h2,
body.home .home-assurance h2,
body.home .home-services h2,
body.home .home-process h2,
body.home .home-featured h2 {
    letter-spacing: -0.035em;
}

body.home .home-quick-paths__header h2 {
    max-width: 14ch;
    font-size: clamp(2.5rem, 3.5vw, 3.65rem);
    line-height: 0.98;
}

body.home .home-quick-paths__header p {
    align-self: end;
    color: var(--home-copy);
    font-size: 1.08rem;
    line-height: 1.72;
}

body.home .home-quick-paths__grid {
    grid-template-rows: repeat(2, clamp(250px, 19vw, 306px));
    gap: 1.15rem;
}

body.home .home-quick-paths a {
    padding: 1.55rem 1.65rem;
    border-color: rgba(255, 255, 255, 0.13);
    border-radius: var(--home-radius);
    box-shadow: 0 22px 55px rgba(11, 29, 50, 0.16);
}

body.home .home-quick-paths a:hover {
    transform: translateY(-7px);
    box-shadow: 0 34px 72px rgba(7, 18, 33, 0.28);
}

body.home .home-quick-paths__media::after {
    background:
        linear-gradient(180deg, rgba(4, 14, 27, 0.02) 0%, rgba(4, 14, 27, 0.28) 40%, rgba(4, 14, 27, 0.94) 100%),
        linear-gradient(90deg, rgba(4, 14, 27, 0.34) 0%, transparent 62%);
}

body.home .home-quick-paths strong {
    max-width: 27ch;
    font-size: clamp(1.3rem, 1.55vw, 1.62rem);
}

/* Diferenciación de marca: una pausa oscura entre bloques visuales. */
body.home .home-company-note {
    padding-top: clamp(4.5rem, 7vw, 6.5rem);
    padding-bottom: clamp(4.5rem, 7vw, 6.5rem);
    border: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(44, 102, 200, 0.2), transparent 28%),
        radial-gradient(circle at 92% 80%, rgba(244, 184, 74, 0.12), transparent 24%),
        linear-gradient(145deg, #08182b 0%, #102b48 100%);
    color: #ffffff;
}

body.home .home-company-note__panel {
    width: min(1280px, 100%);
    grid-template-columns: minmax(300px, 0.7fr) minmax(620px, 1.3fr);
    gap: clamp(3rem, 6vw, 6rem);
}

body.home .home-company-note__content,
body.home .home-company-note h2 {
    color: #ffffff;
}

body.home .home-company-note h2 {
    max-width: 9ch;
    font-size: clamp(2.55rem, 3.6vw, 3.75rem);
    line-height: 0.98;
}

body.home .home-company-note p {
    max-width: 34rem;
    color: #c4d4e6;
    font-size: 1.08rem;
    line-height: 1.7;
}

body.home .home-company-note .home-section-kicker {
    color: var(--home-gold-light);
}

body.home .home-company-note__copy::after {
    width: 5rem;
    background: linear-gradient(90deg, var(--home-gold), rgba(244, 184, 74, 0));
}

body.home .home-company-note__split {
    gap: 1.2rem;
}

body.home .home-company-note__card {
    min-height: 390px;
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: var(--home-radius);
    box-shadow: 0 28px 66px rgba(2, 9, 18, 0.38);
}

body.home .home-company-note__card.is-active {
    border-color: rgba(244, 184, 74, 0.55);
}

/* Presentación: composición editorial más amplia. */
body.home .home-intro {
    padding-top: clamp(5rem, 8vw, 7.5rem);
    padding-bottom: clamp(5rem, 8vw, 7.5rem);
    background:
        radial-gradient(circle at 92% 12%, rgba(244, 184, 74, 0.1), transparent 24%),
        #ffffff;
}

body.home .home-intro__inner {
    max-width: 1280px;
    grid-template-columns: minmax(0, 0.88fr) minmax(480px, 1.12fr);
    column-gap: clamp(3rem, 7vw, 7rem);
}

body.home .home-intro h2 {
    max-width: 13ch;
    font-size: clamp(2.6rem, 3.65vw, 3.85rem);
    line-height: 1;
}

body.home .home-intro__copy > p {
    color: var(--home-copy);
}

body.home .home-intro__media {
    border-radius: 24px;
    box-shadow: 0 38px 80px rgba(11, 29, 50, 0.2), -22px 24px 0 -4px rgba(44, 102, 200, 0.12);
}

body.home .home-intro__facts span {
    background: var(--home-ink);
}

/* Control de obra: fondo cálido y tarjetas de entregables más legibles. */
body.home .home-assurance {
    padding-top: clamp(5rem, 7vw, 7rem);
    padding-bottom: clamp(5rem, 7vw, 7rem);
    border: 0;
    background:
        radial-gradient(circle at 8% 12%, rgba(244, 184, 74, 0.11), transparent 26%),
        linear-gradient(180deg, #fffaf1 0%, #f8f3e9 100%);
}

body.home .home-assurance__header {
    max-width: 1280px;
    gap: clamp(3rem, 7vw, 7rem);
}

body.home .home-assurance h2 {
    font-size: clamp(2.55rem, 3.4vw, 3.6rem);
}

body.home .home-assurance__grid {
    max-width: 1280px;
    gap: 1.15rem;
}

body.home .home-assurance__grid article {
    border-color: rgba(11, 29, 50, 0.09);
    border-radius: var(--home-radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 48px rgba(75, 54, 20, 0.09);
}

body.home .home-assurance__grid article:hover {
    border-color: rgba(244, 184, 74, 0.7);
    box-shadow: 0 30px 64px rgba(75, 54, 20, 0.15);
}

/* Servicios: escenario oscuro para distinguirlo del mosaico inicial. */
body.home .home-services {
    padding-top: clamp(5rem, 7vw, 7rem);
    padding-bottom: clamp(5rem, 7vw, 7rem);
    border: 0;
    background:
        radial-gradient(circle at 90% 8%, rgba(44, 102, 200, 0.22), transparent 25%),
        linear-gradient(150deg, #08192d 0%, #112d4c 100%);
}

body.home .home-services__inner {
    width: min(1280px, 100%);
    margin: 0 auto;
    gap: clamp(2.4rem, 4vw, 3.5rem);
}

body.home .home-services__header {
    max-width: 920px;
}

body.home .home-services h2 {
    max-width: 18ch;
    color: #ffffff;
    font-size: clamp(2.55rem, 3.5vw, 3.7rem);
    line-height: 1;
}

body.home .home-services__header p {
    color: #c3d4e7;
    font-size: 1.08rem;
}

body.home .home-services .home-section-kicker {
    color: var(--home-gold-light);
}

body.home .home-services__grid {
    gap: 1.15rem;
}

body.home .home-service-card {
    min-height: 410px;
    padding: 0 1.3rem 1.35rem;
    border-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--home-radius);
    box-shadow: 0 22px 54px rgba(2, 9, 18, 0.3);
}

body.home .home-service-card__media {
    height: 148px;
    margin-right: -1.3rem;
    margin-left: -1.3rem;
    border-radius: 19px 19px 0 0;
}

body.home .home-service-card::before {
    height: 3px;
}

/* Proceso y proyecto destacado. */
body.home .home-process {
    padding-top: clamp(5rem, 8vw, 7.5rem);
    padding-bottom: clamp(5rem, 8vw, 7.5rem);
    background:
        radial-gradient(circle at 6% 16%, rgba(44, 102, 200, 0.08), transparent 24%),
        #ffffff;
}

body.home .home-process__inner {
    width: min(1280px, 100%);
    margin: 0 auto;
    gap: clamp(4rem, 8vw, 8rem);
}

body.home .home-process h2 {
    max-width: 14ch;
    font-size: clamp(2.6rem, 3.6vw, 3.8rem);
    line-height: 1;
}

body.home .home-process__steps li {
    min-height: 128px;
    padding: 1.6rem 0;
}

body.home .home-featured {
    padding-top: clamp(5rem, 7vw, 7rem);
    padding-bottom: clamp(5rem, 7vw, 7rem);
    background:
        radial-gradient(circle at 92% 10%, rgba(244, 184, 74, 0.18), transparent 25%),
        var(--home-warm);
}

body.home .home-featured__inner {
    width: min(1280px, 100%);
    margin: 0 auto;
    grid-template-columns: minmax(420px, 1.05fr) minmax(420px, 0.95fr);
    gap: clamp(3.5rem, 7vw, 7rem);
}

body.home .home-featured__media {
    border-radius: 24px;
    box-shadow: 0 34px 72px rgba(11, 29, 50, 0.2), 22px 22px 0 -4px rgba(244, 184, 74, 0.46);
}

body.home .home-featured h2 {
    font-size: clamp(2.6rem, 3.4vw, 3.65rem);
    line-height: 1;
}

body.home .home-contact-band {
    padding-top: 3.2rem;
    padding-bottom: 3.2rem;
}

body.home .home-contact-band__inner {
    width: min(1280px, 100%);
    margin: 0 auto;
}

body.home .home-contact-band__title {
    font-size: clamp(1.7rem, 2.4vw, 2.25rem);
}

@media (min-width: 1100px) {
    body.home .home-hero__content {
        flex: 1 1 760px;
        max-width: 760px;
    }

    body.home .home-hero__card {
        flex-basis: clamp(330px, 24vw, 390px);
        gap: 1.1rem;
        padding: 1.9rem 1.8rem;
        border-color: rgba(255, 215, 127, 0.2);
        border-radius: var(--home-radius);
        background: linear-gradient(160deg, rgba(16, 42, 70, 0.86), rgba(5, 17, 32, 0.8));
        box-shadow: 0 36px 80px rgba(2, 9, 18, 0.5);
    }

    body.home .home-hero__card-title {
        font-size: 1.35rem;
        line-height: 1.35;
    }

    body.home .home-hero__card-phone {
        padding: 0.9rem 1rem;
    }
}

@media (max-width: 1099px) {
    body.home .home-hero h1 {
        max-width: 14ch;
    }
}

/* Ventanas de escritorio bajas: compacta el hero para que título, botones
   y banda de datos entren en una sola pantalla sin scroll. */
@media (min-width: 681px) and (max-height: 860px) {
    body.home .home-hero {
        padding-top: clamp(1.6rem, 4svh, 3rem);
        padding-bottom: clamp(1.4rem, 3.5svh, 2.4rem);
    }

    body.home .home-hero h1 {
        margin-top: 0.85rem;
        margin-bottom: 0.8rem;
        font-size: clamp(2.5rem, 6.4svh, 4.6rem);
    }

    body.home .home-hero__lead {
        font-size: clamp(0.98rem, 2svh, 1.18rem);
        line-height: 1.5;
    }

    body.home .home-hero__note {
        margin-top: 0.8rem;
    }

    body.home .home-hero__actions {
        margin-top: 1.1rem;
    }

    body.home .home-hero .home-button {
        min-height: 48px;
    }

    body.home .home-hero__proof {
        margin-top: 1.15rem;
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }
}

@media (min-width: 681px) and (max-height: 700px) {
    body.home .home-hero h1 {
        font-size: clamp(2.1rem, 6svh, 3.4rem);
    }

    body.home .home-hero__eyebrow {
        min-height: 30px;
        font-size: 0.78rem;
    }

    body.home .home-hero__proof strong {
        font-size: 0.98rem;
    }

    body.home .home-hero__proof span {
        font-size: 0.78rem;
    }
}

@media (max-width: 980px) {
    body.home {
        --home-gutter: max(1rem, calc((100vw - 760px) / 2 + 1rem));
    }

    body.home .home-hero {
        min-height: calc(100svh - var(--site-header-height, 78px));
    }

    body.home .home-hero__content {
        width: min(720px, 100%);
    }

    body.home .home-quick-paths__header,
    body.home .home-company-note__panel {
        grid-template-columns: 1fr;
    }

    body.home .home-company-note h2 {
        max-width: 13ch;
    }

    body.home .home-company-note__content {
        max-width: 680px;
    }

    body.home .home-intro__inner,
    body.home .home-featured__inner {
        grid-template-columns: 1fr;
    }

    body.home .home-intro__media {
        max-width: 760px;
    }
}

@media (max-width: 680px) {
    body.home {
        --home-gutter: 1rem;
    }

    body.home .home-hero {
        min-height: max(700px, calc(100dvh - var(--site-header-height, 75px)));
        padding: 1.25rem 1rem 1.2rem;
    }

    body.home .home-hero::before {
        background-position: 57% 18%;
        transform: none;
    }

    body.home .home-hero::after {
        background:
            linear-gradient(180deg, rgba(4, 14, 27, 0.05) 0%, rgba(4, 14, 27, 0.22) 30%, rgba(4, 14, 27, 0.93) 67%, #040e1b 100%);
    }

    body.home .home-hero h1 {
        max-width: 15ch;
        margin: 0.85rem 0 0.7rem;
        font-size: clamp(2.25rem, 10.6vw, 3.05rem);
        line-height: 0.98;
    }

    body.home .home-hero__lead {
        font-size: 0.98rem;
        line-height: 1.5;
    }

    body.home .home-hero__note {
        margin-top: 0.8rem;
        font-size: 0.82rem;
    }

    body.home .home-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        margin-top: 1rem;
    }

    body.home .home-hero .home-button {
        min-height: 48px;
    }

    body.home .home-hero .home-button--secondary.home-button--text {
        width: auto;
        min-height: 0;
        margin-inline: auto;
        padding: 0.3rem;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    body.home .home-hero__proof {
        margin-top: 0.9rem;
        padding: 0.7rem 0.25rem 0.7rem 0.8rem;
        border-radius: 12px;
    }

    body.home .home-hero__proof strong {
        font-size: 0.88rem;
    }

    body.home .home-hero__proof span {
        font-size: 0.72rem;
    }

    body.home .home-quick-paths,
    body.home .home-company-note,
    body.home .home-intro,
    body.home .home-assurance,
    body.home .home-services,
    body.home .home-process,
    body.home .home-featured {
        padding-top: 3.75rem !important;
        padding-bottom: 3.75rem !important;
    }

    body.home .home-quick-paths__header h2,
    body.home .home-company-note h2,
    body.home .home-intro h2,
    body.home .home-assurance h2,
    body.home .home-services h2,
    body.home .home-process h2,
    body.home .home-featured h2 {
        max-width: none;
        font-size: clamp(2rem, 9vw, 2.55rem);
        line-height: 1.02;
    }

    body.home .home-quick-paths__grid {
        gap: 1rem;
    }

    body.home .home-quick-paths a {
        min-height: 270px;
        padding: 1.3rem;
        border-radius: 16px;
    }

    body.home .home-company-note__panel {
        gap: 2rem;
    }

    body.home .home-company-note__split {
        gap: 1rem;
    }

    body.home .home-company-note__card {
        min-height: 320px;
        border-radius: 16px;
    }

    body.home .home-intro__copy {
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    body.home .home-intro__media,
    body.home .home-featured__media {
        border-radius: 16px;
        box-shadow: 0 24px 52px rgba(11, 29, 50, 0.16);
    }

    body.home .home-assurance__header {
        gap: 1.5rem;
    }

    body.home .home-assurance__grid article,
    body.home .home-service-card {
        border-radius: 16px;
    }

    body.home .home-service-card {
        min-height: 0;
    }

    body.home .home-service-card__media {
        border-radius: 15px 15px 0 0;
    }

    body.home .home-process__inner {
        gap: 1.5rem;
    }

    body.home .home-contact-band {
        padding-top: 2.6rem;
        padding-bottom: 2.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home .home-quick-paths a,
    body.home .home-company-note__card,
    body.home .home-assurance__grid article,
    body.home .home-service-card,
    body.home .home-intro__media img,
    body.home .home-featured__media img {
        transition: none;
    }

    body.home .home-quick-paths a:hover,
    body.home .home-company-note__card:hover,
    body.home .home-assurance__grid article:hover,
    body.home .home-service-card:hover {
        transform: none;
    }
}
