/* Estilos exclusivos de la nueva web de Somos Impacto. */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  --navy: #102A43;
  --cream: #F3EEE5;
  --white: #FFFFFF;
  --text: #172B3A;
  --muted: #66717A;
}

/* Texto general */
body {
  font-family: var(--font-body);
  color: var(--text);
  overflow-x: hidden;
}


/* Navegación */
nav,
nav a {
  font-family: var(--font-body);
  font-weight: 500;
}

/* Botones */
button,
.btn {
  font-family: var(--font-body);
  font-weight: 500;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 5%;
    background-color: transparent;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    border-radius: 0;
    transition: top 280ms ease, left 280ms ease, width 280ms ease,
        padding 280ms ease, background-color 280ms ease,
        border-radius 280ms ease, box-shadow 280ms ease;
}

.logocont {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80%;
}

.logocont img{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

header nav {
    display: flex;
    align-items: center;
    width: 70%;
}

header nav ul {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    list-style: none;
}

header nav ul a {
    color: var(--white);
    text-decoration: none;
    transition: color 280ms ease;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    margin: 5px auto;
    background: var(--white);
    transition: transform 220ms ease, opacity 180ms ease, background-color 280ms ease;
}

header.is-scrolled {
    top: 20px;
    left: 15%;
    width: 70%;
    padding: 0 3%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.28);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    border-radius: 60px;
    box-shadow: 0 12px 32px rgba(16, 42, 67, 0.2);
}

header.is-scrolled nav ul a {
    color: var(--white);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

header.is-scrolled .menu-toggle span {
    background: var(--white);
}

.hero {
    min-height: 100vh;
    background-image: url("../img/herof.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.capahero {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(transparent, rgba(0, 0, 0, 0.612), black);
}

.txthero {
    position: absolute;
    bottom: 6%;
    left: 3%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.txthero h2 {
    font-family: 'Jost', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: start;
    font-weight: 200;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 0.92;
    letter-spacing: -0.035em;
    color: var(--cream);
    text-transform: uppercase;
}

.txthero a {
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid var(--white);
    width: fit-content;
}

.trabajo {
    background-color: var(--cream);
    display: grid;
    grid-template-columns: 3fr 7fr;
    padding: 100px 10%;
}

.txttrab {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 50px;
    width: 100%;
    height: 100%;
}

.txttrab h4 {
    color: var(--text);
    font-weight: 300;

}

.txttrab h2 {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.txttrab h2 strong {
    font-weight: 900;
}

.txttrab p {
    font-size: 1.3rem;
}

.txttrab a {
    font-size: 1.3rem;
    text-decoration: none;
    color: var(--navy);
    transition: .3s all;
    padding: 5px;
    transition: all .3s;
    border-bottom: transparent 1px solid;
}

.txttrab a:hover {
    transform: translateY(-5px);
    border-bottom: #102A43 1px solid;
}

.txttrab a span {
    transition: all .3s;
}

.txttrab a:hover span {
    margin-left: 5px;
}

.imgtrab {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: stretch;
}

.imgtrab img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.servicios {
    background-color: var(--cream);
    display: grid;
    grid-template-columns: 3fr 4fr;
    gap: 100px;
    padding: 100px 10%;
}

.imgserv {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 100%;
}

.imgserv img {
    display: flex;
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.txtserv {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 30px;
    width: 100%;
    height: 100%;
}

.txtserv h4 {
    color: var(--text);
    font-weight: 300;

}

.txtserv h2 {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.contservicios {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px 40px;
}

.servicio {
    display: flex;
    flex-direction: column;
    gap: 10px 5px;
}

.servicio h3 {
    font-size: 1.1rem;
    margin: auto;
}

.servicio h5 {
    font-size: .9rem;
}

.servicio p {
    font-size: 1rem;
}

.servicio a {
    text-decoration: none;
    color: #102A43;
    padding: 10px 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.28);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    border-radius: 60px;
    box-shadow: 0 12px 32px rgba(16, 42, 67, 0.2);
    width: fit-content;
    margin: auto;
}

.proceso {
    background: var(--cream);
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 60px;
    padding: 120px 8%;
    box-sizing: border-box;
}

.proceso-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.proceso-intro .eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--navy);
    margin-bottom: 25px;
}

.proceso-intro h2 {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.proceso-intro p {
    font-size: 1.3rem;
}

.proceso-linea {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: start;
}

.proceso-paso {
    position: relative;
    padding-right: 30px;
}

.proceso-numero {
    position: relative;
    z-index: 2;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--navy);
    border-radius: 50%;

    background: var(--cream);

    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--navy);

    margin-bottom: 28px;
}

.proceso-conector {
    position: absolute;
    top: 22px;
    left: 44px;
    right: 0;

    height: 1px;
    background: rgba(16, 42, 67, 0.25);
}

.proceso-paso h3 {
    margin: 0 0 12px;

    font-family: 'Sora', sans-serif;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 500;
    color: var(--navy);
}

.proceso-paso p {
    margin: 0;
    max-width: 190px;

    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
}



@media (max-width: 760px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        padding: 0 1.25rem;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    header.is-scrolled {
        top: 12px;
        left: 4%;
        width: 92%;
        height: 64px;
        padding: 0 1.25rem;
        background: rgba(16, 42, 67, 0.68);
        border: 1px solid rgba(255, 255, 255, 0.22);
        box-shadow: 0 12px 30px rgba(16, 42, 67, 0.28);
        -webkit-backdrop-filter: blur(22px) saturate(140%);
        backdrop-filter: blur(22px) saturate(140%);
    }

    header.is-scrolled .logocont img {
        filter: brightness(0) invert(1);
    }

    .logocont {
        height: 38px;
        flex-shrink: 0;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 2;
        flex-shrink: 0;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    header nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 1rem;
        left: 1rem;
        width: auto;
        padding: 0;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.28);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
        -webkit-backdrop-filter: blur(22px) saturate(160%);
        backdrop-filter: blur(22px) saturate(160%);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease,
            background-color 280ms ease, border-color 280ms ease;
    }

    header.menu-open nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    header nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.55rem;
    }

    header nav ul a {
        display: block;
        padding: 0.9rem 1rem;
        border-radius: 16px;
    }

    header.is-scrolled nav {
        border-color: rgba(255, 255, 255, 0.24);
        background: rgba(16, 42, 67, 0.78);
        -webkit-backdrop-filter: blur(22px) saturate(140%);
        backdrop-filter: blur(22px) saturate(140%);
    }

    header.is-scrolled nav ul a {
        color: var(--white);
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
    }

    header.is-scrolled .menu-toggle span {
        background: var(--white);
    }


    .txthero {
        text-align: center;
        align-items: center;
        justify-content: center;
        left: 0;
        width: 100%;
    }

    .txthero h2 {
        align-items: center;
        font-weight: 300;
    }
    
    .trabajo {
        grid-template-columns: 1fr;
    }

    .servicios {
        padding: 100px 10px;
        width: 100%;
        grid-template-columns: 1fr;
    }

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



    .proceso {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 80px 6%;
    }

    .proceso-linea {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .proceso-paso {
        padding-left: 70px;
        padding-right: 0;
    }

    .proceso-numero {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
    }

    .proceso-conector {
        left: 21px;
        top: 44px;
        bottom: -40px;
        width: 1px;
        height: auto;
        right: auto;
    }

    .proceso-paso:last-child .proceso-conector {
        display: none;
    }

    .proceso-paso h3 {
        font-size: 17px;
    }

    .proceso-paso p {
        max-width: 100%;
    }
}
