/* =========================================================
   LETGO EMPRESARIAL
   styles.css
========================================================= */


/* =========================================================
   1. VARIABLES
========================================================= */

:root {
    /* Identidad Letgo */
    --color-primary: #003645;
    --color-primary-dark: #002b37;
    --color-accent: #abc456;
    --color-accent-dark: #94ad43;

    --color-white: #ffffff;
    --color-background: #f8faf9;
    --color-background-soft: #f2f5f3;

    --color-text: #17333c;
    --color-text-light: #66767b;
    --color-border: #dfe6e3;

    /* Tipografía */
    --font-primary: "DM Sans", sans-serif;

    /* Layout */
    --container-width: 1200px;
    --container-padding: 24px;

    /* Bordes */
    --radius-small: 6px;
    --radius-medium: 12px;
    --radius-large: 20px;

    /* Sombras */
    --shadow-small: 0 4px 14px rgba(0, 54, 69, 0.08);
    --shadow-medium: 0 10px 30px rgba(0, 54, 69, 0.12);

    /* Transiciones */
    --transition: 0.25s ease;
}


/* =========================================================
   2. RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;

    font-family: var(--font-primary);
    color: var(--color-text);
    background: var(--color-white);

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

address {
    font-style: normal;
}


/* =========================================================
   3. UTILIDADES
========================================================= */

.container {
    width: min(
        calc(100% - (var(--container-padding) * 2)),
        var(--container-width)
    );

    margin-inline: auto;
}

.section {
    padding: 90px 0;
}


/* =========================================================
   4. BOTONES
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 12px 24px;

    border: 1px solid transparent;
    border-radius: var(--radius-small);

    font-size: 0.95rem;
    font-weight: 600;

    transition:
        background-color var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    color: var(--color-white);
    background: var(--color-accent);
}

.btn--primary:hover {
    background: var(--color-accent-dark);
    box-shadow: var(--shadow-small);
}

.btn--secondary {
    color: var(--color-white);
    background: var(--color-primary);
}

.btn--secondary:hover {
    background: var(--color-primary-dark);
}

.btn--outline-light {
    color: var(--color-white);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.8);
}

.btn--outline-light:hover {
    color: var(--color-primary);
    background: var(--color-white);
}


/* =========================================================
   5. HEADER
========================================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    height: 82px;

    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(0, 54, 69, 0.08);

    backdrop-filter: blur(10px);
}

.header__container {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 32px;
}

.header__logo {
    flex-shrink: 0;
}

.header__logo img {
    width: 145px;
    height: auto;
}

.nav {
    margin-left: auto;
}

.nav__list {
    display: flex;
    align-items: center;

    gap: 38px;
}

.nav__link {
    position: relative;

    padding: 29px 0 25px;

    color: var(--color-primary);

    font-size: 0.95rem;
    font-weight: 600;
}

.nav__link::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 20px;

    width: 0;
    height: 2px;

    background: var(--color-accent);

    transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.header__cta {
    margin-left: 15px;
}


/* Menú móvil */

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    padding: 8px;

    border: 0;
    background: transparent;
}

.menu-toggle span {
    display: block;

    width: 100%;
    height: 2px;

    margin: 6px 0;

    background: var(--color-primary);

    transition: 
            transform 0.25s ease,
            opacity 0.25s ease;
}

.menu-toggle.menu-toggle--open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.menu-toggle--open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.menu-toggle--open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* =========================================================
   6. HERO
========================================================= */

.hero {
    position: relative;
    overflow: hidden;

    min-height: 640px;

    color: var(--color-white);
    background: var(--color-primary);
}


/* Imagen que cubre todo el hero */

.hero__background {
    position: absolute;
    inset: 0;

    z-index: 1;
}

.hero__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

/*
   Capa azul para mejorar la lectura del texto.
   Es más intensa del lado izquierdo y desaparece
   progresivamente hacia la derecha.
*/

.hero__background::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 54, 69, 0.98) 0%,
            rgba(0, 54, 69, 0.90) 25%,
            rgba(0, 54, 69, 0.55) 45%,
            rgba(0, 54, 69, 0.05) 68%,
            rgba(0, 54, 69, 0) 100%
        );
}


/* Contenedor */

.hero__container {
    position: relative;
    z-index: 5;

    min-height: 640px;

    display: flex;
    align-items: center;
}


/* Contenido */

.hero__content {
    width: 52%;
    max-width: 620px;

    padding: 80px 0;
}


.hero__title {
    margin-bottom: 22px;

    font-size: clamp(3rem, 4.6vw, 4.7rem);
    font-weight: 700;

    line-height: 1.04;
    letter-spacing: -0.045em;
}


.hero__title span {
    display: block;

    color: var(--color-accent);
}


.hero__description {
    max-width: 500px;

    margin-bottom: 32px;

    color: rgba(255, 255, 255, 0.92);

    font-size: 1.1rem;
    line-height: 1.7;
}


/* Botones */

.hero__actions {
    display: flex;
    flex-wrap: wrap;

    gap: 16px;

    margin-bottom: 42px;
}


/* Valores */

.hero__values {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 24px;

    color: rgba(255, 255, 255, 0.92);

    font-size: 0.88rem;
    font-weight: 500;
}


.hero__values span {
    position: relative;

    padding-left: 17px;
}


.hero__values span::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 0;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--color-accent);

    transform: translateY(-50%);
}


/* =========================================================
   8. SERVICIOS
========================================================= */

.services {
    background: var(--color-white);
}


/* Encabezado */

.services .section-header {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.services .section-header__eyebrow {
    display: block;
    margin-bottom: 10px;

    color: var(--color-accent-dark);

    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.services .section-header__title {
    margin-bottom: 18px;

    color: var(--color-primary);

    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1.15;
}

.section-header__description {
    max-width: 560px;
    margin: 0 auto;

    color: var(--color-text-light);

    font-size: 0.98rem;
    line-height: 1.65;
}


/* Línea decorativa */

.services .section-header::after {
    content: "";

    display: block;

    width: 62px;
    height: 3px;

    margin: 18px auto 0;

    background: var(--color-accent);

    border-radius: 20px;
}


/* Grid */

.services__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);

    gap: 20px;

    max-width: 980px;
    margin: 0 auto;
}


/* Primera fila */

.service-card:nth-child(1),
.service-card:nth-child(2),
.service-card:nth-child(3) {
    grid-column: span 2;
}


/* Segunda fila centrada */

.service-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.service-card:nth-child(5) {
    grid-column: 4 / span 2;
}


/* Tarjetas */

.service-card {
    position: relative;

    min-height: 275px;

    display: flex;
    flex-direction: column;

    padding: 28px 26px 24px;

    text-align: left;

    background: var(--color-white);

    border: 1px solid var(--color-border);
    border-radius: 12px;

    box-shadow:
        0 5px 18px rgba(0, 54, 69, 0.06);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


.service-card:hover {
    transform: translateY(-6px);

    border-color: rgba(171, 196, 86, 0.55);

    box-shadow:
        0 14px 32px rgba(0, 54, 69, 0.11);
}


/* Iconos */

.service-card__icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    color: var(--color-accent-dark);

    background: rgba(171, 196, 86, 0.12);

    border-radius: 50%;
}


.service-card__icon svg {
    width: 28px;
    height: 28px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Texto */

.service-card h3 {
    margin-bottom: 10px;

    color: var(--color-primary);

    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
}


.service-card p {
    margin-bottom: 20px;

    color: var(--color-text-light);

    font-size: 0.9rem;
    line-height: 1.6;
}


/* Link */

.service-card__link {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-top: auto;

    color: var(--color-primary);

    font-size: 0.88rem;
    font-weight: 700;

    transition:
        color 0.25s ease,
        gap 0.25s ease;
}

.service-card__link span {
    color: var(--color-accent-dark);

    font-size: 1.15rem;
}

.service-card__link:hover {
    gap: 12px;
    color: var(--color-accent-dark);
}

/* =========================================================
   9. NOSOTROS
========================================================= */

.about {
    background: var(--color-background-soft);
}

.about__container {
    display: grid;
    grid-template-columns: 0.85fr 1.65fr;

    gap: 70px;

    align-items: center;
}

.about__intro h2 {
    margin-bottom: 20px;

    color: var(--color-primary);

    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.15;

    letter-spacing: -0.03em;
}

.about__intro p {
    margin-bottom: 28px;

    color: var(--color-text-light);
}

.about__principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.principle {
    padding: 20px 30px;

    text-align: center;

    border-left: 1px solid var(--color-border);
}

.principle__icon {
    width: 78px;
    height: 78px;

    display: grid;
    place-items: center;

    margin: 0 auto 18px;

    color: var(--color-accent-dark);

    background: rgba(171, 196, 86, 0.12);

    border-radius: 50%;

    font-size: 2rem;
}

.principle h3 {
    margin-bottom: 12px;

    color: var(--color-primary);

    font-size: 1.25rem;
}

.principle p,
.principle li {
    color: var(--color-text-light);

    font-size: 0.88rem;
}

.principle ul {
    display: inline-block;

    text-align: left;
}

.principle li {
    position: relative;

    padding-left: 16px;
    margin-bottom: 4px;
}

.principle li::before {
    content: "";

    position: absolute;
    top: 9px;
    left: 0;

    width: 5px;
    height: 5px;

    background: var(--color-accent);

    border-radius: 50%;
}


/* =========================================================
   10. CTA
========================================================= */

.cta {
    position: relative;
    overflow: hidden;

    padding: 45px 0;

    color: var(--color-white);

    background:
        linear-gradient(
            45deg,
            var(--color-primary) 20%,
            #145c58 60%,
            var(--color-accent) 100%
        );
}

.cta::after {
    content: "";

    position: absolute;

    width: 400px;
    height: 400px;

    right: -150px;
    top: -260px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.cta__container {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1.2fr 1fr auto;

    gap: 50px;

    align-items: center;
}

.cta__title {
    display: flex;
    align-items: center;

    gap: 20px;
}

.cta__title h2 {
    margin: 0;

    font-size: 1.9rem;
    line-height: 1.2;
}

.cta__title h2 span {
    color: var(--color-accent);
}

.cta__icon {
    color: var(--color-accent);

    font-size: 3rem;
}

.cta p {
    margin: 0;

    color: rgba(255, 255, 255, 0.88);

    font-size: 0.95rem;
}


/* =========================================================
   11. CONTACTO
========================================================= */

.contact {
    background: var(--color-white);
}

.contact__container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;

    gap: 90px;

    align-items: center;
}

.contact__information h2 {
    margin-bottom: 18px;

    color: var(--color-primary);

    font-size: 2.4rem;
    line-height: 1.15;
}

.contact__description {
    max-width: 430px;

    margin-bottom: 0;

    color: var(--color-text-light);

    font-size: 1rem;
    line-height: 1.7;
}

.contact__details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 30px;
}

.contact__item {
    padding-left: 20px;

    border-left: 2px solid var(--color-accent);
}

.contact__label {
    display: block;

    margin-bottom: 7px;

    color: var(--color-primary);

    font-size: 0.82rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact__item a,
.contact__item p {
    margin: 0;

    color: var(--color-text-light);

    font-size: 0.92rem;
    line-height: 1.5;

    transition: color var(--transition);
}

.contact__item a:hover {
    color: var(--color-accent-dark);
}

.contact__details p {
    margin-bottom: 24px;

    color: var(--color-text-light);
}

.contact__details strong {
    color: var(--color-primary);

    font-size: 0.9rem;
}

/* Botón */

.contact__button {
    grid-column: 1 / -1;

    justify-self: start;

    margin-top: 8px;
}



/* =========================================================
   12. FOOTER
========================================================= */

.footer {
    padding-top: 65px;

    color: rgba(255, 255, 255, 0.85);

    background: var(--color-primary);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;

    gap: 60px;

    padding-bottom: 50px;
}

.footer__logo {
    width: 165px;

    margin-bottom: 20px;
}

.footer__brand p {
    max-width: 270px;

    color: rgba(255, 255, 255, 0.7);

    font-size: 0.9rem;
}

.footer__column h3 {
    margin-bottom: 18px;

    color: var(--color-white);

    font-size: 1rem;
}

.footer__column li {
    margin-bottom: 9px;
}

.footer__column a,
.footer__column p {
    color: rgba(255, 255, 255, 0.7);

    font-size: 0.88rem;

    transition: color var(--transition);
}

.footer__column a:hover {
    color: var(--color-accent);
}

.footer__bottom {
    min-height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__bottom p {
    margin: 0;

    color: rgba(255, 255, 255, 0.6);

    font-size: 0.8rem;
}

.footer__legal {
    display: flex;

    gap: 25px;
}

.footer__legal a {
    color: rgba(255, 255, 255, 0.6);

    font-size: 0.8rem;

    transition: color var(--transition);
}

.footer__legal a:hover {
    color: var(--color-accent);
}


/* =========================================================
   RESPONSIVE — LAPTOP / TABLET HORIZONTAL
   <= 1050px
========================================================= */

@media (max-width: 1050px) {

    /* =====================================================
       SERVICIOS
    ====================================================== */

    .services__grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 900px;
    }

    .service-card:nth-child(n) {
        grid-column: auto;
        width: auto;
    }

    .service-card:nth-child(4) {
        grid-column: 1 / 2;
    }

    .service-card:nth-child(5) {
        grid-column: 2 / 3;
    }


    /* =====================================================
       NOSOTROS
    ====================================================== */

    .about__container {
        grid-template-columns: 1fr;
        gap: 50px;
    }


    /* =====================================================
       CTA
    ====================================================== */

    .cta__container {
        grid-template-columns: 1fr auto;
    }

    .cta__container > p {
        display: none;
    }


    /* =====================================================
       FOOTER
    ====================================================== */

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 45px;
    }

}

/* =========================================================
   RESPONSIVE — TABLET
   <= 850px
========================================================= */

@media (max-width: 850px) {

    /* =====================================================
       HEADER
    ====================================================== */

    .header {
        height: 72px;
    }

    .header__logo img {
        width: 125px;
    }

    .header__cta {
        display: none;
    }

    .menu-toggle {
        display: block;
    }


    /* Menú desplegable */

    .nav {
        position: absolute;

        top: 72px;
        left: 0;

        width: 100%;

        padding: 20px var(--container-padding) 30px;

        background: var(--color-white);

        border-bottom: 1px solid var(--color-border);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-10px);

        transition:
            opacity var(--transition),
            visibility var(--transition),
            transform var(--transition);
    }

    .nav.nav--open {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;

        gap: 5px;
    }

    .nav__link {
        display: block;

        width: 100%;

        padding: 12px 0;
    }

    .nav__link::after {
        bottom: 7px;
    }


    /* =====================================================
       HERO
    ====================================================== */

    .hero {
        min-height: 650px;
    }

    .hero__container {
        min-height: 650px;
    }

    .hero__background img {
        object-position: 62% center;
    }

    .hero__background::after {
        background:
            linear-gradient(
                90deg,
                rgba(0, 54, 69, 0.98) 0%,
                rgba(0, 54, 69, 0.92) 40%,
                rgba(0, 54, 69, 0.45) 72%,
                rgba(0, 54, 69, 0.15) 100%
            );
    }

    .hero__content {
        width: 65%;
        max-width: 560px;

        padding: 70px 0;
    }

    .hero__title {
        font-size: 3.25rem;
    }


    /* =====================================================
       SERVICIOS
    ====================================================== */

    .services__grid {
        grid-template-columns: repeat(2, 1fr);

        max-width: 720px;

        gap: 20px;
    }

    .service-card:nth-child(n) {
        grid-column: auto;
        width: auto;
    }

    .service-card:last-child {
        grid-column: 1 / -1;

        width: calc(50% - 10px);

        justify-self: center;
    }


    /* =====================================================
       CONTACTO
    ====================================================== */

    .contact__container {
        grid-template-columns: 1fr;
        gap: 45px;
    }


    /* =====================================================
       FOOTER
    ====================================================== */

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* =========================================================
   RESPONSIVE — MÓVIL
   <= 650px
========================================================= */

@media (max-width: 650px) {

    :root {
        --container-padding: 18px;
    }


    /* =====================================================
       GENERAL
    ====================================================== */

    .section {
        padding: 65px 0;
    }


    /* =====================================================
       HEADER
    ====================================================== */

    .header {
        height: 70px;
    }

    .header__logo img {
        width: 115px;
    }

    .nav {
        top: 70px;
    }


    /* =====================================================
       HERO
    ====================================================== */

    .hero {
        min-height: 630px;
    }

    .hero__container {
        min-height: 630px;

        align-items: flex-start;
    }

    .hero__background img {
        object-position: 67% center;
    }

    .hero__background::after {
        background:
            linear-gradient(
                180deg,
                rgba(0, 54, 69, 0.98) 0%,
                rgba(0, 54, 69, 0.94) 42%,
                rgba(0, 54, 69, 0.62) 72%,
                rgba(0, 54, 69, 0.30) 100%
            );
    }

    .hero__content {
        width: 100%;
        max-width: none;

        padding: 55px 0 45px;
    }

    .hero__title {
        max-width: 500px;

        font-size: clamp(2.35rem, 11vw, 2.8rem);

        line-height: 1.05;
    }

    .hero__description {
        max-width: 430px;

        font-size: 1rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;

        gap: 12px;

        margin-bottom: 32px;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .hero__values {
        gap: 10px 16px;

        font-size: 0.8rem;
    }


    /* =====================================================
       SERVICIOS
    ====================================================== */

    .services .section-header {
        margin-bottom: 30px;

        text-align: left;
    }

    .services .section-header__eyebrow {
        text-align: left;
    }

    .services .section-header__description {
        margin-left: 0;

        text-align: left;
    }

    .services .section-header::after {
        margin-left: 0;
    }

    .services__grid {
        grid-template-columns: 1fr;

        max-width: 100%;

        gap: 18px;
    }

    .service-card:nth-child(n),
    .service-card:last-child {
        grid-column: auto;

        width: 100%;
    }

    .service-card {
        min-height: auto;

        padding: 28px 24px;
    }


    /* =====================================================
       NOSOTROS
    ====================================================== */

    .about__container {
        gap: 40px;
    }

    .about__intro h2 {
        font-size: 2rem;
    }

    .about__principles {
        grid-template-columns: 1fr;
    }

    .principle {
        padding: 32px 10px;

        border-left: 0;
        border-top: 1px solid var(--color-border);
    }

    .principle:first-child {
        border-top: 1px solid var(--color-border);
    }


    /* =====================================================
       CTA
    ====================================================== */

    .cta {
        padding: 45px 0;
    }

    .cta__container {
        grid-template-columns: 1fr;

        gap: 28px;

        text-align: center;
    }

    .cta__title {
        justify-content: center;
    }

    .cta__title h2 {
        font-size: 1.8rem;
    }

    .cta .btn {
        width: 100%;
    }


    /* =====================================================
       CONTACTO
    ====================================================== */

    .contact__container {
        gap: 35px;
    }

    .contact__information h2 {
        font-size: 2.2rem;
    }

    .contact__details {
    grid-template-columns: 1fr;

    gap: 24px;
    }

.contact__button {
    width: 100%;

    margin-top: 5px;
    }


    /* =====================================================
       FOOTER
    ====================================================== */

    .footer {
        padding-top: 35px;
    }

    .footer__services {
        display: none;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 28px;
    }

    .footer__logo {
        width: 135px;
    }

    .footer__brand p {
        margin-top: 12px;
    }

    .footer__column h3 {
        margin-bottom: 10px;
    }

    .footer__column li {
        margin-bottom: 5px;
    }


    /* Parte inferior */

    .footer__bottom {
        padding: 18px 0;
        gap: 12px;
    }

    .footer__legal {
        width: 100%;

        display: flex;
        flex-direction: row;
        flex-wrap: wrap;

        gap: 10px 20px;
    }

}