/* ==========================================================
   LV SISTEMAS
   Página inspirada en una estructura corporativa de software
========================================================== */


/* PORTADA */

.systems-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--navy-950);
}

.systems-hero-background {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(
            90deg,
            rgba(4, 16, 29, 0.97) 0%,
            rgba(4, 16, 29, 0.88) 48%,
            rgba(4, 16, 29, 0.55) 100%
        ),
        url("../img/sistemas/hero-software.png")
        center / cover no-repeat;
}

.systems-hero-background::after {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(22, 119, 255, 0.16),
            transparent 34%
        );
    content: "";
}

.systems-hero-grid {
    display: grid;
    min-height: 720px;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.72fr);
    gap: 70px;
    align-items: center;
    padding-top: 75px;
    padding-bottom: 75px;
}

.systems-hero-content {
    max-width: 740px;
}

.systems-eyebrow {
    margin-bottom: 18px;
    color: var(--turquoise-400);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.systems-hero h1 {
    max-width: 760px;
    margin-bottom: 25px;
    color: var(--white);
    font-size: clamp(2.8rem, 5vw, 4.65rem);
    line-height: 1.06;
}

.systems-hero-description {
    max-width: 690px;
    margin-bottom: 26px;
    color: #d3deeb;
    font-size: 1.12rem;
}

.systems-hero-benefits {
    margin-bottom: 32px;
    padding: 0;
    list-style: none;
}

.systems-hero-benefits li {
    position: relative;
    margin-bottom: 11px;
    padding-left: 29px;
    color: #edf5ff;
    font-weight: 600;
}

.systems-hero-benefits li::before {
    position: absolute;
    left: 0;
    color: var(--turquoise-400);
    content: "✓";
    font-weight: 900;
}


/* FORMULARIO DE PORTADA */

.systems-contact-card {
    position: relative;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.34);
}

.systems-contact-label {
    margin-bottom: 8px;
    color: var(--blue-600);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.systems-contact-card h2 {
    margin-bottom: 24px;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
}

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

.systems-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.systems-form-field span {
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 700;
}

.systems-form-field input,
.systems-form-field select,
.systems-form-field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fbfdff;
    color: var(--text);
    outline: none;
}

.systems-form-field input:focus,
.systems-form-field select:focus,
.systems-form-field textarea:focus {
    border-color: var(--blue-600);
    box-shadow:
        0 0 0 3px rgba(22, 119, 255, 0.12);
}

.systems-form-field textarea {
    resize: vertical;
}

.systems-form-full {
    grid-column: 1 / -1;
}

.systems-form-button {
    width: 100%;
}


/* INTRODUCCIÓN */

.systems-introduction {
    background: var(--white);
}

.systems-introduction-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: 75px;
    align-items: center;
}

.systems-introduction-content h2 {
    margin-bottom: 23px;
}

.systems-introduction-content p {
    margin-bottom: 18px;
}

.systems-introduction-visual img {
    border-radius: 26px;
    box-shadow:
        0 25px 65px rgba(6, 17, 31, 0.15);
}


/* ENCABEZADOS DE SECCIÓN */

.systems-section-heading,
.systems-pillars-heading,
.systems-process-heading,
.systems-industries-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.8fr);
    gap: 55px;
    align-items: end;
    margin-bottom: 55px;
}

.systems-section-heading h2,
.systems-pillars-heading h2,
.systems-process-heading h2,
.systems-industries-heading h2 {
    margin-bottom: 0;
}

.systems-section-heading > p,
.systems-pillars-heading > p,
.systems-process-heading > p {
    margin-bottom: 4px;
}


/* BENEFICIOS */

.systems-benefits {
    background: var(--background);
}

.systems-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.systems-benefit-card {
    position: relative;
    overflow: hidden;
    min-height: 310px;
    padding: 29px 25px;
    border: 1px solid var(--border);
    border-radius: 19px;
    background: var(--white);
    box-shadow:
        0 12px 34px rgba(6, 17, 31, 0.07);
    transition:
        transform 280ms ease,
        box-shadow 280ms ease,
        border-color 280ms ease;
}

.systems-benefit-card::after {
    position: absolute;
    right: -55px;
    bottom: -55px;
    width: 145px;
    height: 145px;
    border-radius: 50%;
    background: rgba(22, 119, 255, 0.07);
    content: "";
    transition: transform 350ms ease;
}

.systems-benefit-card:nth-child(even)::after {
    background: rgba(0, 194, 168, 0.08);
}

.systems-benefit-card:hover {
    border-color: rgba(22, 119, 255, 0.35);
    box-shadow:
        0 24px 55px rgba(22, 119, 255, 0.13);
    transform: translateY(-8px);
}

.systems-benefit-card:hover::after {
    transform: scale(1.22);
}

.systems-benefit-number {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
    border-radius: 13px;
    background:
        linear-gradient(
            135deg,
            var(--blue-600),
            var(--turquoise-500)
        );
    color: var(--white);
    font-weight: 800;
}

.systems-benefit-card h3 {
    margin-bottom: 13px;
}

.systems-benefit-card p {
    margin-bottom: 20px;
}

.systems-benefit-card strong {
    position: relative;
    z-index: 2;
    display: block;
    color: var(--navy-800);
    font-size: 0.9rem;
}


/* SERVICIOS */

.systems-services {
    background: var(--white);
}

.systems-services-heading {
    max-width: 830px;
    margin-bottom: 50px;
}

.systems-services-heading h2 {
    margin-bottom: 18px;
}

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

.systems-flip-card {
    height: 430px;
    perspective: 1300px;
    outline: none;
}

.systems-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition:
        transform 720ms
        cubic-bezier(0.2, 0.75, 0.25, 1);
}

.systems-flip-card:hover .systems-flip-inner,
.systems-flip-card:focus .systems-flip-inner,
.systems-flip-card:focus-within .systems-flip-inner {
    transform: rotateY(180deg);
}

.systems-flip-front,
.systems-flip-back {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 22px;
    box-shadow:
        0 18px 46px rgba(6, 17, 31, 0.13);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.systems-flip-front {
    display: flex;
    flex-direction: column;
    background: var(--navy-950);
}

.systems-flip-front img {
    width: 100%;
    height: 58%;
    object-fit: cover;
    transition: transform 600ms ease;
}

.systems-flip-card:hover .systems-flip-front img {
    transform: scale(1.08);
}

.systems-flip-title {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    background:
        linear-gradient(
            145deg,
            #071629,
            #0b1f33
        );
}

.systems-flip-title span,
.systems-flip-back > span {
    margin-bottom: 12px;
    color: var(--turquoise-400);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.systems-flip-title h3,
.systems-flip-back h3 {
    margin: 0;
    color: var(--white);
    font-size: 1.55rem;
    line-height: 1.15;
}

.systems-flip-back {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 29px 26px;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(0, 194, 168, 0.18),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #061321,
            #0d3155
        );
    color: var(--white);
    transform: rotateY(180deg);
}

.systems-flip-back h3 {
    margin-bottom: 16px;
}

.systems-flip-back p {
    margin-bottom: 22px;
    color: #cbd8e7;
    font-size: 0.94rem;
}

.systems-flip-back a {
    color: var(--turquoise-400);
    font-weight: 800;
}

.systems-flip-card:focus-visible {
    border-radius: 22px;
    outline: 3px solid var(--turquoise-400);
    outline-offset: 5px;
}

.systems-services-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-top: 48px;
    text-align: center;
}

.systems-services-cta p {
    margin: 0;
    color: var(--text);
    font-weight: 700;
}


/* PILARES */

.systems-pillars {
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(22, 119, 255, 0.14),
            transparent 29%
        ),
        linear-gradient(
            145deg,
            var(--navy-950),
            var(--navy-800)
        );
}

.systems-pillars .section-label {
    color: var(--turquoise-400);
}

.systems-pillars-heading h2 {
    color: var(--white);
}

.systems-pillars-heading > p {
    color: var(--text-light);
}

.systems-pillars-list {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.systems-pillars-list article {
    display: grid;
    grid-template-columns: 85px 1fr;
    gap: 25px;
    padding: 29px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition:
        padding-left 250ms ease,
        background 250ms ease;
}

.systems-pillars-list article:hover {
    padding-left: 18px;
    background: rgba(255, 255, 255, 0.025);
}

.systems-pillars-list span {
    color: var(--turquoise-400);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
}

.systems-pillars-list h3 {
    margin-bottom: 9px;
    color: var(--white);
}

.systems-pillars-list p {
    max-width: 850px;
    margin-bottom: 0;
    color: var(--text-light);
}


/* PROCESO */

.systems-process {
    background: var(--background);
}

.systems-process-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.systems-process-grid li {
    position: relative;
    min-height: 265px;
    padding: 28px 23px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
    box-shadow:
        0 10px 28px rgba(6, 17, 31, 0.06);
}

.systems-process-grid li::after {
    position: absolute;
    top: 48px;
    right: -19px;
    width: 19px;
    height: 2px;
    background:
        linear-gradient(
            90deg,
            var(--blue-600),
            var(--turquoise-500)
        );
    content: "";
}

.systems-process-grid li:last-child::after {
    display: none;
}

.systems-process-grid span {
    display: inline-flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    margin-bottom: 27px;
    border-radius: 13px;
    background:
        linear-gradient(
            135deg,
            var(--blue-600),
            var(--turquoise-500)
        );
    color: var(--white);
    font-weight: 800;
}

.systems-process-grid h3 {
    margin-bottom: 12px;
}

.systems-process-grid p {
    margin-bottom: 0;
    font-size: 0.93rem;
}


/* SECTORES */

.systems-industries {
    background: var(--white);
}

.systems-industries-heading {
    display: block;
    max-width: 770px;
}

.systems-industries-heading h2 {
    margin-bottom: 0;
}

.systems-industries-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.systems-industries-grid article {
    position: relative;
    overflow: hidden;
    min-height: 235px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 19px;
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f4f8ff
        );
    transition:
        transform 280ms ease,
        box-shadow 280ms ease,
        border-color 280ms ease;
}

.systems-industries-grid article::after {
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(22, 119, 255, 0.08);
    content: "";
}

.systems-industries-grid article:nth-child(even)::after {
    background: rgba(0, 194, 168, 0.08);
}

.systems-industries-grid article:hover {
    border-color: rgba(22, 119, 255, 0.36);
    box-shadow:
        0 20px 50px rgba(22, 119, 255, 0.12);
    transform: translateY(-7px);
}

.systems-industries-grid span {
    display: block;
    margin-bottom: 25px;
    color: var(--blue-600);
    font-weight: 800;
}

.systems-industries-grid h3,
.systems-industries-grid p {
    position: relative;
    z-index: 2;
}


/* FAQ */

.systems-faq {
    background: var(--background);
}

.systems-faq-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
    gap: 70px;
    align-items: start;
}

.systems-faq-intro {
    position: sticky;
    top: 125px;
}

.systems-faq-intro h2 {
    margin-bottom: 20px;
}

.systems-faq-list details {
    margin-bottom: 13px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--white);
    box-shadow:
        0 8px 24px rgba(6, 17, 31, 0.05);
}

.systems-faq-list summary {
    position: relative;
    padding: 21px 55px 21px 22px;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.systems-faq-list summary::-webkit-details-marker {
    display: none;
}

.systems-faq-list summary::after {
    position: absolute;
    top: 50%;
    right: 22px;
    color: var(--blue-600);
    content: "+";
    font-size: 1.45rem;
    transform: translateY(-50%);
}

.systems-faq-list details[open] summary::after {
    content: "−";
}

.systems-faq-list details p {
    padding: 0 22px 21px;
    margin: 0;
}


/* CTA FINAL */

.systems-final-cta {
    position: relative;
    overflow: hidden;
    padding: 92px 0;
    background:
        linear-gradient(
            125deg,
            var(--blue-700),
            var(--blue-600) 55%,
            var(--turquoise-600)
        );
}

.systems-final-cta::before {
    position: absolute;
    top: -170px;
    right: 7%;
    width: 390px;
    height: 390px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    content: "";
}

.systems-final-cta-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 55px;
}

.systems-final-cta .section-label {
    color: rgba(255, 255, 255, 0.8);
}

.systems-final-cta h2 {
    max-width: 780px;
    margin-bottom: 14px;
    color: var(--white);
}

.systems-final-cta p {
    max-width: 720px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.84);
}

.systems-final-cta .button {
    flex-shrink: 0;
    max-width: 290px;
    background: var(--white);
    color: var(--blue-700);
}


/* RESPONSIVO */

@media (max-width: 1120px) {

    .systems-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(350px, 0.72fr);
        gap: 40px;
    }

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

    .systems-process-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .systems-process-grid li::after {
        display: none;
    }

}


@media (max-width: 860px) {

    .systems-hero-grid {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-top: 75px;
        padding-bottom: 75px;
    }

    .systems-contact-card {
        max-width: 680px;
    }

    .systems-introduction-grid,
    .systems-section-heading,
    .systems-pillars-heading,
    .systems-process-heading,
    .systems-faq-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .systems-introduction-visual {
        max-width: 700px;
    }

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

    .systems-faq-intro {
        position: static;
    }

    .systems-final-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

}


@media (max-width: 620px) {

    .systems-hero-grid {
        padding-top: 58px;
        padding-bottom: 58px;
    }

    .systems-hero h1 {
        font-size: clamp(2.35rem, 12vw, 3.35rem);
    }

    .systems-contact-card {
        padding: 28px 22px;
    }

    .systems-form-grid,
    .systems-benefits-grid,
    .systems-services-grid,
    .systems-process-grid,
    .systems-industries-grid {
        grid-template-columns: 1fr;
    }

    .systems-form-full {
        grid-column: auto;
    }

    .systems-flip-card {
        height: 405px;
    }

    .systems-services-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .systems-services-cta .button,
    .systems-final-cta .button {
        width: 100%;
        max-width: none;
    }

    .systems-pillars-list article {
        grid-template-columns: 55px 1fr;
        gap: 15px;
    }

    .systems-final-cta {
        padding: 72px 0;
    }

}
/* ==========================================================
   PASO 13 · LV SISTEMAS EN MÓVIL
========================================================== */

@media (max-width: 620px) {

    .systems-flip-back a {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
    }

    .systems-form-field input,
    .systems-form-field select,
    .systems-form-field textarea {
        font-size: 16px;
    }

}

@media (max-width: 390px) {

    .systems-hero h1 {
        font-size: 2.15rem;
    }

    .systems-contact-card {
        padding: 24px 18px;
    }

}
