/* ================================
   HOME / INDEX
================================ */
.section-heading {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 72px;
    background:
        radial-gradient(circle at top left, rgba(98, 184, 50, 0.14), transparent 34%),
        linear-gradient(135deg, #f7fbff 0%, #ffffff 52%, #f4faf2 100%);
}

.hero::after {
    content: "";
    position: absolute;
    right: -180px;
    bottom: -220px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(31, 159, 229, 0.08);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
    align-items: center;
    gap: 64px;
}

.hero__text p {
    font-size: clamp(1.05rem, 2vw, 1.22rem);
    line-height: 1.75;
}

.hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero__image {
    position: relative;
}

.hero__image::before {
    content: "";
    position: absolute;
    inset: 28px -18px -18px 28px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(98, 184, 50, 0.18), rgba(31, 159, 229, 0.16));
    z-index: -1;
}

.hero__image img {
    width: 100%;
    min-height: 520px;
    max-height: 620px;
    display: block;
    object-fit: cover;
    border-radius: 34px;
    box-shadow: 0 28px 70px rgba(15, 45, 82, 0.16);
    image-rendering: auto;
    backface-visibility: hidden;
}

.who-we-serve {
    background:
        linear-gradient(180deg,
            #ffffff 0%,
            #f7fbff 100%);
}

/* Who we serve */
.serve-grid {
    max-width: 900px;
    margin-inline: auto;
    text-align: left;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(15, 45, 82, 0.08);
}

.serve-card {
    position: relative;
    padding-left: 25px;
}

.serve-card span {
    color: var(--color-navy);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.6;
}

.serve-card::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    display: grid;
    place-items: center;
    color: var(--color-green);
    font-size: 1rem;
    font-weight: 900;
}

.serve-card h3 {
    margin: 0;
    color: var(--color-navy);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
}

/* Services */
.services-preview {
    background: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.service-card {
    position: relative;
    display: flex;
    min-height: 320px;
    flex-direction: column;
    padding: 26px;
    border: 1px solid rgba(15, 45, 82, 0.08);
    border-radius: 24px;
    background: var(--color-white);
    box-shadow: 0 14px 36px rgba(15, 45, 82, 0.06);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    border-color: rgba(98, 184, 50, 0.22);
    box-shadow: 0 20px 40px rgba(15, 45, 82, 0.08);
}

.service-card__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 16px;
    background: rgba(98, 184, 50, 0.11);
    font-size: 1.35rem;
}

.service-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(98, 184, 50, .12);
    color: var(--color-green);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin: 0 0 12px;
    color: var(--color-navy);
    font-size: 1.15rem;
    line-height: 1.25;
}

.service-card p {
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.65;
}

.service-card a {
    margin-top: auto;
    color: var(--color-green);
    font-size: 0.9rem;
    font-weight: 800;
}

.service-card a:hover {
    color: var(--color-navy);
}

.section-action {
    display: flex;
    justify-content: center;
    margin-top: 42px;
}

.industries {
    background: #f7fbff;
}

.industries-list {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.industries-list span {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--color-white);
    border: 1px solid rgba(15, 45, 82, 0.08);
    color: var(--color-navy);
    font-size: 0.92rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(15, 45, 82, 0.04);
}

/*Recent Work*/
.recent-work {
    background: #f7fbff;
}

.before-after {
    --position: 50%;
    position: relative;
    overflow: hidden;
    max-width: 980px;
    margin: 48px auto 0;
    border-radius: 28px;
    box-shadow: 0 22px 55px rgba(15, 45, 82, 0.12);
    aspect-ratio: 16 / 10;
    background: #fff;
}

.before-after__image,
.before-after__after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    pointer-events: none;
}

.before-after__after {
    position: absolute;
    inset: 0;
    width: 100%;
    overflow: hidden;
    clip-path: inset(0 calc(100% - var(--position)) 0 0);
}

.before-after__after img {
    width: 100%;
    max-width: none;
}

.before-after__range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 5;
    /* Lo siguiente es para neutralizar estilos raros en móvil */
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
}

.before-after__divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--position);
    width: 3px;
    background: #fff;
    transform: translateX(-50%);
    z-index: 4;
    pointer-events: none;
}

.before-after__handle {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 4px;
    width: 54px;
    height: 44px;
    transform: translate(-50%, -50%);
    justify-content: center;
    background: #fff;
    color: var(--color-navy);
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(15, 45, 82, 0.22);
    font-size: 1.6rem;
    font-weight: 700;
}

.before-after__label {
    position: absolute;
    bottom: 24px;
    z-index: 3;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.before-after__label--before {
    left: 24px;
}

.before-after__label--after {
    right: 24px;
}

.recent-work__content {
    max-width: 760px;
    margin: 34px auto 0;
    text-align: center;
}

.recent-work__tag {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--color-green);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.recent-work__content h3 {
    color: var(--color-navy);
    font-size: clamp(1.4rem, 1.2rem + 0.8vw, 2rem);
    line-height: 1.15;
}

.recent-work__content p {
    margin: 14px auto 0;
    line-height: 1.75;
}

.recent-work__actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

/* Why us */
.why-us {
    background:
        linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.why-us__grid {
    display: grid;
    grid-template-columns: minmax(420px, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 72px;
}

.why-us__image img {
    width: 100%;
    min-height: 560px;
    display: block;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 24px 60px rgba(15, 45, 82, 0.14);
}

.check-list {
    display: grid;
    gap: 14px;
    margin: 28px 0 34px;
}

.check-list li {
    position: relative;
    padding-left: 34px;
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.55;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(98, 184, 50, 0.14);
    color: var(--color-green);
    font-size: 0.8rem;
    font-weight: 900;
}

/* Service areas */
.areas-list {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.areas-list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: #fbfdff;
    border: 1px solid rgba(15, 45, 82, 0.08);
    color: var(--color-navy);
    font-size: 0.92rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(15, 45, 82, 0.04);
}

.areas-list a:hover {
    color: var(--color-green);
    border-color: rgba(98, 184, 50, 0.28);
    background: rgba(98, 184, 50, 0.06);
}

.featured-power {
    background: #f7fbff;
}

.featured-power__grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 56px;
    align-items: center;
}

.featured-power__content p {
    margin-bottom: 28px;
}

.featured-power__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.featured-power__list span {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 82px;
    padding: 22px 24px 22px 52px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(15, 45, 82, 0.08);
    color: var(--color-navy);
    font-weight: 800;
    box-shadow: 0 14px 34px rgba(15, 45, 82, 0.05);
}

.featured-power__list span::before {
    content: "";
    position: absolute;
    left: 24px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-green);
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 1366px) {
    .hero__image {
        margin-right: 16px;
    }

    .hero::after {
        right: -120px;
        bottom: -160px;
        width: 420px;
        height: 420px;
    }
}

@media (max-width: 1200px) {
    .hero__content {
        grid-template-columns: 1fr 0.9fr;
        gap: 44px;
    }
}

@media (max-width: 980px) {
    .hero {
        padding: 72px 0 56px;
    }

    .hero__content,
    .why-us__grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .hero__text {
        text-align: center;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__image img,
    .why-us__image img {
        min-height: 420px;
    }

    .hero::after {
        right: -140px;
        bottom: -180px;
        width: 320px;
        height: 320px;
    }

    .services-grid,
    .areas-grid,
    .serve-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .serve-grid {
        max-width: 620px;
    }

    .why-us__content {
        text-align: center;
    }

    .check-list {
        max-width: 620px;
        margin-inline: auto;
        text-align: left;
    }

    .featured-power__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .featured-power__content {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .hero__image {
        margin-right: 8px;
    }

    .section-heading {
        margin-bottom: 34px;
    }

    .hero {
        padding: 64px 0 46px;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .hero__image::before {
        inset: 18px -10px -10px 18px;
        border-radius: 24px;
    }

    .hero__image img,
    .why-us__image img {
        min-height: 330px;
        border-radius: 24px;
    }

    .services-grid,
    .areas-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }

    .areas-grid a {
        min-height: 68px;
    }

    .featured-power__list {
        grid-template-columns: 1fr;
    }

    .featured-power__list span {
        min-height: 72px;
    }

    .before-after {
        aspect-ratio: 4 / 5;
        border-radius: 22px;
    }

    .before-after__handle {
        width: 48px;
        height: 40px;
    }

    .before-after__label {
        bottom: 18px;
    }

    .recent-work__actions .btn {
        width: 100%;
    }
}