/* ==================================================
   PÁGINA SERVICIOS
================================================== */

.services-hero {
    position: relative;
    min-height: 610px;
    padding-top: 86px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #111111;
}

.services-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.services-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(7, 7, 7, 0.88) 0%, rgba(7, 7, 7, 0.68) 48%, rgba(7, 7, 7, 0.32) 100%);
}

.services-hero-content {
    position: relative;
    z-index: 2;
    max-width: 770px;
    color: #ffffff;
}

.services-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--color-orange);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.services-eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--color-orange);
}

.services-hero-content h1 {
    max-width: 760px;
    margin-bottom: 22px;
    font-size: clamp(44px, 6vw, 74px);
    font-weight: 900;
    line-height: 1.01;
    letter-spacing: -2px;
}

.services-hero-content p {
    max-width: 680px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.7;
}

.services-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.services-hero-actions .btn {
    gap: 9px;
}

/* ==================================================
   FRANJA DE CONFIANZA
================================================== */

.services-trust-strip {
    background: #181818;
    color: #ffffff;
}

.services-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.services-trust-grid > div {
    min-height: 92px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.services-trust-grid > div:last-child {
    border-right: none;
}

.services-trust-grid i {
    color: var(--color-orange);
    font-size: 21px;
}

.services-trust-grid span {
    font-size: 14px;
    font-weight: 800;
}

/* ==================================================
   OFERTA DE SERVICIOS
================================================== */

.services-offer-section {
    padding: 100px 0 105px;
    background: #ffffff;
}

.services-heading {
    margin-bottom: 54px;
}

.services-offer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.service-offer-card {
    position: relative;
    min-height: 320px;
    padding: 30px 26px;
    overflow: hidden;
    border: 1px solid #edf0f3;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
    transition: 0.3s ease;
}

.service-offer-card::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -55px;
    width: 135px;
    height: 135px;
    border-radius: 50%;
    background: rgba(255, 122, 24, 0.08);
    transition: 0.3s ease;
}

.service-offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 58px rgba(15, 23, 42, 0.12);
}

.service-offer-card:hover::after {
    transform: scale(1.25);
}

.service-offer-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: rgba(255, 122, 24, 0.11);
    color: var(--color-orange);
    font-size: 24px;
}

.service-offer-card h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
    color: #171717;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.2;
}

.service-offer-card p {
    position: relative;
    z-index: 1;
    color: #5c6575;
    font-size: 15px;
    line-height: 1.75;
}

/* ==================================================
   PROCESO DE TRABAJO
================================================== */

.services-process-section {
    padding: 100px 0;
    background: #f2f4f7;
}

.services-process-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.services-process-intro {
    position: sticky;
    top: 125px;
}

.services-process-intro h2 {
    margin-bottom: 22px;
    color: #171717;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -1.5px;
}

.services-process-intro p {
    margin-bottom: 30px;
    color: #5c6575;
    font-size: 17px;
    line-height: 1.75;
}

.services-process-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.services-process-list li {
    list-style: none;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 20px;
    padding: 25px 26px;
    border: 1px solid #e5e9ef;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.055);
}

.services-process-list > li > span {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: #181818;
    color: var(--color-orange);
    font-size: 18px;
    font-weight: 900;
}

.services-process-list h3 {
    margin-bottom: 8px;
    color: #1b1b1b;
    font-size: 21px;
    font-weight: 900;
}

.services-process-list p {
    color: #667085;
    font-size: 15px;
    line-height: 1.65;
}

/* ==================================================
   PROYECTOS
================================================== */

.projects-section {
    padding: 100px 0 110px;
    background: #ffffff;
}

.projects-heading {
    margin-bottom: 58px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.project-card {
    overflow: hidden;
    border: 1px solid #e9edf2;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    transition: 0.3s ease;
}

.project-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 30px 65px rgba(15, 23, 42, 0.13);
}

.before-after {
    --position: 50%;
    position: relative;
    width: 100%;
    height: 390px;
    overflow: hidden;
    background: #dfe3e8;
    isolation: isolate;
}

.before-after-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

.before-image-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    clip-path: inset(0 calc(100% - var(--position)) 0 0);
}

.before-image-layer .before-image {
    width: 100%;
    max-width: none;
}

.comparison-label {
    position: absolute;
    top: 16px;
    z-index: 5;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.72);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    pointer-events: none;
}

.comparison-before {
    left: 16px;
}

.comparison-after {
    right: 16px;
}

.comparison-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--position);
    z-index: 4;
    width: 2px;
    transform: translateX(-1px);
    background: #ffffff;
    pointer-events: none;
}

.comparison-handle span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-orange);
    color: #ffffff;
    font-size: 15px;
    box-shadow: 0 7px 24px rgba(0, 0, 0, 0.25);
}

.comparison-range {
    position: absolute;
    inset: 0;
    z-index: 8;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
}

.project-card-content {
    padding: 26px 27px 28px;
}

.project-card-meta {
    min-height: 27px;
    margin-bottom: 13px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.project-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff4e9;
    color: #bd5708;
    font-size: 12px;
    font-weight: 800;
}

.project-card-meta .project-video-badge {
    background: #eef4ff;
    color: #315da8;
}

.project-card-content h3 {
    margin-bottom: 12px;
    color: #171717;
    font-size: 25px;
    font-weight: 900;
    line-height: 1.2;
}

.project-card-content p {
    display: -webkit-box;
    min-height: 75px;
    margin-bottom: 22px;
    overflow: hidden;
    color: #667085;
    font-size: 15px;
    line-height: 1.7;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.project-details-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: none;
    background: transparent;
    color: #171717;
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.25s ease;
}

.project-details-button i {
    color: var(--color-orange);
    transition: 0.25s ease;
}

.project-details-button:hover {
    color: var(--color-orange);
}

.project-details-button:hover i {
    transform: translateX(4px);
}

.projects-empty-state {
    max-width: 760px;
    margin: 0 auto;
    padding: 55px 38px;
    text-align: center;
    border: 1px solid #e7ebf0;
    border-radius: 26px;
    background: #f8fafc;
}

.projects-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(255, 122, 24, 0.12);
    color: var(--color-orange);
    font-size: 30px;
}

.projects-empty-state h3 {
    margin-bottom: 13px;
    font-size: 29px;
    font-weight: 900;
}

.projects-empty-state p {
    max-width: 590px;
    margin: 0 auto 24px;
    color: #667085;
    font-size: 16px;
    line-height: 1.7;
}

/* ==================================================
   CTA FINAL
================================================== */

.services-final-cta {
    padding: 58px 0;
    background: var(--color-orange);
}

.services-final-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.services-final-cta-content > div {
    max-width: 760px;
}

.services-final-cta-content span {
    display: block;
    margin-bottom: 9px;
    color: rgba(24, 24, 24, 0.78);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.services-final-cta-content h2 {
    margin-bottom: 9px;
    color: #181818;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 900;
    line-height: 1.05;
}

.services-final-cta-content p {
    color: #202020;
    font-size: 16px;
    line-height: 1.6;
}

.services-final-cta-content .btn {
    flex-shrink: 0;
    gap: 9px;
}

/* ==================================================
   MODAL DE PROYECTO
================================================== */

body.project-modal-open {
    overflow: hidden;
}

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 6000;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 8, 8, 0.84);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.25s ease;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.project-modal-dialog {
    position: relative;
    width: min(1120px, 100%);
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 32px 95px rgba(0, 0, 0, 0.42);
    transform: translateY(22px) scale(0.975);
    transition: 0.25s ease;
}

.project-modal.active .project-modal-dialog {
    transform: translateY(0) scale(1);
}

.project-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: #181818;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    transition: 0.25s ease;
}

.project-modal-close:hover {
    transform: rotate(90deg);
    background: var(--color-orange);
    color: #ffffff;
}

.project-modal-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px 16px 0;
}

.project-modal-gallery figure {
    position: relative;
    height: 370px;
    overflow: hidden;
    border-radius: 18px;
    background: #e9edf2;
}

.project-modal-gallery figure span {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.72);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.project-modal-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-modal-body {
    display: grid;
    grid-template-columns: 1fr 0.72fr;
    gap: 28px;
    padding: 30px 34px 36px;
}

.project-modal-kicker {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--color-orange);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.project-modal-copy h2 {
    margin-bottom: 14px;
    color: #171717;
    font-size: clamp(29px, 4vw, 43px);
    font-weight: 900;
    line-height: 1.08;
}

.project-modal-meta {
    margin-bottom: 17px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-modal-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f3f5f7;
    color: #475467;
    font-size: 12px;
    font-weight: 800;
}

.project-modal-copy p {
    margin-bottom: 24px;
    color: #5f6877;
    font-size: 16px;
    line-height: 1.75;
    white-space: pre-line;
}

.project-modal-quote {
    width: auto;
    max-width: 330px;
    min-width: 250px;
}

.project-modal-video[hidden] {
    display: none;
}

.project-modal-video > span {
    display: block;
    margin-bottom: 9px;
    color: #344054;
    font-size: 13px;
    font-weight: 900;
}

.project-modal-video video {
    width: 100%;
    max-height: 330px;
    display: block;
    border-radius: 16px;
    background: #111111;
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 1100px) {
    .services-offer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-process-layout {
        gap: 45px;
    }

    .project-modal-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .services-hero {
        min-height: 570px;
        padding-top: 78px;
    }

    .services-hero-overlay {
        background: rgba(7, 7, 7, 0.72);
    }

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

    .services-trust-grid > div:nth-child(2) {
        border-right: none;
    }

    .services-trust-grid > div:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .services-process-layout {
        grid-template-columns: 1fr;
    }

    .services-process-intro {
        position: static;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .services-final-cta-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 760px) {
    .services-hero {
        min-height: 540px;
    }

    .services-hero-content h1 {
        font-size: 42px;
    }

    .services-hero-content p {
        font-size: 17px;
    }

    .services-hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .services-hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .services-offer-section,
    .services-process-section,
    .projects-section {
        padding: 68px 0;
    }

    .services-offer-grid {
        grid-template-columns: 1fr;
    }

    .service-offer-card {
        min-height: 0;
    }

    .before-after {
        height: 310px;
    }

    .project-modal {
        padding: 10px;
    }

    .project-modal-dialog {
        max-height: 95vh;
        border-radius: 19px;
    }

    .project-modal-gallery {
        grid-template-columns: 1fr;
        padding: 12px 12px 0;
    }

    .project-modal-gallery figure {
        height: 245px;
        border-radius: 14px;
    }

    .project-modal-body {
        padding: 24px 21px 28px;
    }

    .project-modal-quote {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    .services-trust-grid {
        grid-template-columns: 1fr;
    }

    .services-trust-grid > div,
    .services-trust-grid > div:nth-child(2) {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .services-trust-grid > div:last-child {
        border-bottom: none;
    }

    .services-process-list li {
        grid-template-columns: 54px 1fr;
        gap: 14px;
        padding: 21px 18px;
    }

    .services-process-list > li > span {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 15px;
    }

    .before-after {
        height: 260px;
    }

    .project-card-content {
        padding: 22px 20px 24px;
    }

    .project-card-content h3 {
        font-size: 22px;
    }

    .services-final-cta {
        padding: 42px 0;
    }
}
