/* SOLUCIÓN ERROR LIGHTHOUSE: Font-display */
/* Sobrescribimos la regla de FontAwesome para agregar 'swap' */

@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: swap; /* <--- ESTA ES LA CLAVE */
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-brands-400.woff2") format("woff2"),
        url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-brands-400.ttf") format("truetype");
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-solid-900.woff2") format("woff2"),
        url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-solid-900.ttf") format("truetype");
}

@font-face {
    font-family: "montserrat";
    /* Recomiendo usar WOFF2 para mejor compresión */
    src: url('../fonts/Montserrat-VariableFont_wght.ttf') format('truetype-variations');
    
    /* LA CLAVE: Define el rango disponible (Mínimo Máximo) */
    font-weight: 100 900; 
    
    /* Si la fuente también tiene ancho variable (condensed/expanded) */
    font-stretch: 50% 200%;
    
    /* Si incluye itálicas en el mismo archivo */
    font-style: normal italic;
    
    font-display: swap;
}

@font-face {
    font-family: "open-sans";
    /* Recomiendo usar WOFF2 para mejor compresión */
    src: url('../fonts/OpenSans-VariableFont_wdth,wght.ttf') format('truetype-variations');
    
    /* LA CLAVE: Define el rango disponible (Mínimo Máximo) */
    font-weight: 100 900; 
    
    /* Si la fuente también tiene ancho variable (condensed/expanded) */
    font-stretch: 50% 200%;
    
    /* Si incluye itálicas en el mismo archivo */
    font-style: normal italic;
    
    font-display: swap;
}

:root {
    --color-primary: #2c4e7a;
    --color-secundary: rgb(77, 167, 197);
    --color-text: #000;
    --color-background: #ccc;

    --font-family: 'montserrat', 'open-sans', arial;
    --font-size-base: 16px;

    --header-height: 21dvh;

    --section-vertical-padding: 4rem;

    scroll-behavior: smooth;
}

html {
    will-change: auto;
}

body {
    margin:0;
    font-family: var(--font-family);
    background-color: transparent;

    interpolate-size: allow-keywords;
}

* {
    box-sizing: border-box;
}

/*--HEADER--*/

.header {
    z-index:5;
}

.header__container {
    display: flex;
    height: var(--header-height);
    justify-content: space-between;
    align-items: center;
    padding:0 min(10rem, 15%);
    border-bottom:0.25rem solid #ccc;
    box-shadow: 0 0.3rem 1rem #0003;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.header__logo {
    min-height: max-content;
    display:grid;
    grid-template-columns: 1fr;
    grid-template-rows: 2fr 1fr;
    justify-items: center;
    align-items: center;
    text-decoration: none;
    color:var(--color-primary);
    font-size: calc(var(--font-size-base)*1.5);
}

.header__logo-img {
    padding:0;
    margin:auto;
    width: 100px;
    fill:var(--color-primary);
    grid-row: span 1;
    transition: transform 0.2s;
    overflow: visible !important;
    pointer-events: none;
}

.header__logo-text {
    color: inherit;
    padding:0;
    margin:0;
    display: block;
    transition: color 0.2s;
    transition: transform 0.3s;
    pointer-events: none;
}

.header__logo-img .path_1, .path_2 {
    transition: transform 0.2s;
    pointer-events: none;
}

.header__logo:hover .header__logo-text {
    transform: translateY(-3rem);
}

.header__logo:hover .header__logo-img {
    transform: translateY(25px);
}

.header__logo:hover .header__logo-img .path_1 {
    transform: translateX(35rem);
}

.header__logo:hover .header__logo-img .path_2 {
    transform: translateX(-35rem);
}

.hamburger {
    background-color: transparent;
    border: none;
    outline: none;
    color: var(--color-text);
    transition: color 0.2s;
    display: none;
}

.hamburger span {
    font-size: 3rem;
    cursor: pointer;
}

.hamburger:hover {
    color: var(--color-primary);
}

.nav__close-button {
    list-style-type: none;
    display:none;
}

.close-button {
    background-color: transparent;
    outline: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: transform 0.2s;
    padding:0;
}

.close-button:hover {
    cursor: pointer;
    transform: scale(1.25);
    color: var(--color-primary);
}

.nav__close-button span {
    font-size: 2rem;
}

.nav {
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}

.nav__list li {
    list-style: none;
}

.nav__list {
    display: flex;
    justify-content: space-evenly;
    align-items: inherit;
    gap: min(5rem, 5vw);
    position: relative;
    z-index: 20;
}

.nav__item {
    list-style-type: none;
    font-size: calc(var(--font-size-base)*1.25);
    position: relative;
}

.nav__link {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
}

.nav__link:hover {
    color:var(--color-primary);
}

.nav__link::before {
    content: '';
    background-color: var(--color-primary);
    display: block;
    height: 0.25rem;
    width:0%;
    z-index: -1;
    position: absolute;
    bottom: -0.25rem;
    left:0;
    right: 0;
    opacity: 1;
    margin: auto;
    border-radius: 5px;
    transition: width 0.2s;
}

.nav__link:hover::before {
    width: 100%;
}

.choose-language {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    user-select: none;
}

.choose-language .button-language {
    list-style: none;
    cursor: pointer;
}

.language-content {
    position:absolute;
    z-index: 20;
    top:2rem;
    left: -200%;
    margin:auto;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 0 15px #0005;
    width: fit-content;
    height: 0;
    align-items: center;
    justify-items: center;
    padding: 0 1rem;
    overflow: hidden;
    transition: height 0.2s;
    transition-behavior: allow-discrete;
}

.button-content {
    display: flex;
}

.choose-language[open] .language-content {
    height: auto;
}

.choose-language::details-content {
    opacity: 0;
    transition: block-size 0.3s, opacity 0.3s, content-visibility 0.3s;

    transition-behavior: allow-discrete;
}

.choose-language[open]::details-content{
    opacity: 1;
}

.language-arrow, .language-icon {
    color: var(--color-text);
    transition: transform 0.5s, color 0.2s, text-shadow 0.2s;
}

.choose-language[open] .language-arrow {
    transform: rotate(180deg);
}

.button-content:hover span {
    color: var(--color-primary);
    text-shadow: 0 5px 15px #0005;
}

.language-list {
    display: flex;
    flex-direction: column;
    padding:0;
    margin:0;
}

.language-item {
    display: flex;
    padding:1rem 1rem;
    margin: 0.5rem 0;
    border-radius: 30px;
    color: var(--color-text);
    transition: box-shadow 0.2s, color 0.2s;
}

.language-item:has(.language-choose:hover) {
    box-shadow: 0 5px 10px #0005;
    color:var(--color-primary);
}

.language-choose {
    color:inherit;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-items: start;
}

.language-shortcut {
    font-size: calc(var(--font-size-base)*1.56);
    margin:0;
    color:inherit;
}

.language-name {
    margin:0;
    margin-left: 1rem;
    color:inherit;
}

/*--HEADER ENDS--*/

/*--HOME--*/

main {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: transparent;
    z-index: 5;
    box-shadow: 0 20px 20px #0005;
}

.go-up-container {
    width: 3rem;
    height: 3rem;
    color: #fff;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    
    /* ESTADO INICIAL: OCULTO */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    
    /* Transición suave */
    transition: all 0.3s ease-in-out;
    
    display: block;
    text-decoration: none;
}

.go-up-container.show {
    opacity: 0.5; /* O la opacidad base que quieras */
    visibility: visible;
    transform: translateY(0);
}

.go-up-container.show:hover {
    opacity: 1;
    transform: scale(1.1);
}

.go-up-container.show:active .icon-container {
    background-color: #fff;
    color: var(--color-primary);
}

.icon-container {
    width: 100%;
    height: 100%;
    box-shadow: 0 0 15px #000;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}

.background-hero {
    position: absolute;
    top:0;
    left: 0;
    height: 100dvh;
    width: 100%;
    margin:0;
    padding:0;
    z-index: 3;
    filter: blur(3px);
}

.background-shadow-hero {
    position: absolute;
    top:0;
    left: 0;
    height: 100dvh;
    width: 100%;
    margin:0;
    padding:0;
    z-index: 3;
    box-shadow: 0 20px 20px #0005;
}

.hero {
    display: flex;
    height: calc(100dvh - var(--header-height));
    width: calc(100dvw - 10dvw);
    background-color: transparent;
    margin:auto;
    position: relative;
    z-index: 5;
}

.hero__title {
    font-size: calc(var(--font-size-base)*1.25);
    font-weight: bold;
}

.hero__epigraph {
    font-size: calc(var(--font-size-base)*1.25);
    font-weight: 500;
}

.hero__subtitle {
    font-size: calc(var(--font-size-base)*2.1);
    color:var(--color-primary);
    flex: 0 0 8rem;
    height: fit-content;
    width: 100%;
    padding: 1rem;
    margin:0;
}

.container-scroll-animation {
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
    height: 100px;
    width: fit-content;
}

.track-scroll {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    height: auto;
    width: 100%;
    animation: scroll-vertical 5s infinite linear;
}

.hero__text {
    padding:3rem;
    margin:0;
}

.text-highlight {
    font-weight: 800;
}

.btn {
    text-decoration: none;
    color: inherit;
    font-size: calc(var(--font-size-base)*1.25);
    font-weight: 600;
}

.hero__actions {
    margin-top: 3rem;
    width: fit-content;
}

.btn--primary {
    background-color: var(--color-primary);
    padding:0.9rem 1rem;
    border-radius: 1rem;
    color: #fff;
    transition: background-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.btn--primary:hover {
    background-color: #fff;
    box-shadow: 0 5px 15px #0005;
    color: var(--color-primary);
}

.btn--primary:active {
    color:#fff;
}

.hero__video {
    background-color: transparent;
    width: auto;
    margin:0;
    align-content: center;
}

.hero__video-bg {
    width: clamp(100px, 45dvw, 100%);
}

.stats {
    display:flex;
    gap:3rem;
    flex-direction: row;
    text-align: center;
    margin-top:5rem;
}

.stats__number {
    font-size: calc(var(--font-size-base)*1.95);
    color: var(--color-primary);
}

.stats__label {
    font-size: var(--font-size-base);
    font-weight: 600;
}

.stats__symbol {
    font-size: calc(var(--font-size-base)*1.95);
    color: var(--color-primary);
}

/*--HOME ENDS--*/

/*--TEAM--*/

.team {
    padding: 0;
    height: 100dvh;
    position: relative;
    z-index: 10;
}

.container {
    display: flex;
    flex-direction: column;

}

.section-header {
    margin:auto;
    text-align: center;
}

.team__grid {
    display:flex;
    gap:6rem;
    margin:auto;
}

.section-title {
    font-size: calc(var(--font-size-base)*3.05);
    text-align: center;
}

.title-1 {
    text-transform: uppercase;
    color:var(--color-primary);
}

.member {
    background-color: #fff;
    height: auto;
    width: 30dvw;
    box-shadow: 0 0 15px #0004;
    padding:2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items:center;
    justify-items: center;
    transition: box-shadow 0.2s, transform 0.2s;
}

.member:hover {
    box-shadow: 0 20px 25px #000a;
    transform: translateY(-1rem);
}

.member__name {
    font-size: calc(var(--font-size-base)*1.56);
    margin:0;
    margin-top:2rem;
}

.member__role {
    margin:0;
    margin-top:1rem;
    font-size: calc(var(--font-size-base)*1.25);
    color:var(--color-primary);
}

.member__photo {
    width: 80%;
    border-radius: 50%;
}

.member .social-network {
    margin-top: 2rem;
    display: flex;
    flex-direction: row;
    gap:20px;
    align-items: center;
    justify-content: center;
}

/*--TEAM ENDS--*/

/*--SERVICES--*/

.grid-background {
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: blur(5px);
}

.services__background {
    background-color: #000;
    position: absolute;
    top:0;
    left:0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    z-index: -1;
}

.services {
    background-color: transparent;
    padding: var(--section-vertical-padding) 0;
    height: fit-content;
    position: relative;
    z-index: 10;
}

.services .container {
    max-width: 1200px;
    margin:auto;
    position: relative;
    z-index: 10;
}

.section-description {
    font-size: calc(var(--font-size-base)*1.95);
    text-align: center;
    color:#fff;
}

.title-2 {
    color:#fff;
    margin:2rem 0 0.5rem 0;
}

.services__grid {
    display: grid;
    padding: 2rem;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-flow: column;
    gap: 4rem;
}

.card {
    height: 45dvh;
    text-align:center;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 2fr 2fr 1fr;
    justify-items: center;
    align-items: center;
}

.service-card__title {
    color:#fff;
    font-weight: 500;
    font-size: calc(var(--font-size-base)*1.25);
}

.service-image {
    width: 90%;
    border-radius: 30px;
    transition: width 0.2s, box-shadow 0.2s;
}

.service-image:hover {
    width: 100%;
    box-shadow: 0 0 15px #0005;
}

.card .btn-link {
    display: block;
    border-radius: 20px;
    width: fit-content;
    text-decoration: none;
    color: var(--color-primary);
    background-color: #fff;
    padding:1.3rem 1.6rem;
    transition: transform 0.2s, color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.btn-link:hover {
    background-color: var(--color-primary);
    box-shadow: 0 0 15px #000a;
    color:#fff;
    transform: translateY(-5px);
}

.btn-link:active {
    color: var(--color-primary);
    box-shadow: 0 0 25px #000;
}

/*--SERVICES ENDS--*/

/*--GENERAL-PROCESS*/

.process__step .step__icon {
    transition: transform 0.2s, color 0.2s;
}

.process__step:hover .step__icon{
    transform: translateY(-0.25rem);
    color: var(--color-primary);
}

/*--GENERAL-PROCESS ENDS*/

/*--PROCESS-SERVICE-1--*/

.title-3 {
    text-align: left;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.process-service-1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 5dvh 15dvh;
    padding-right: 0;
    min-height: 100dvh;
    position: relative;
}

.process__description {
    font-size: calc(var(--font-size-base)*1.25);
    margin-top:0;
    font-weight: 500;
}

.process__list {
    margin:0;
    padding:0;
}

.process-service-1 .process__step {
    display:flex;
    align-items: center;
    justify-content: start;
    margin:0;
}

.process-service-1 .process__step span {
    margin-right: 1.5rem;
    font-size: 2rem;
}

.process-service-1 .parallax-image {
    background: url("/images/images-small/stock-image-5.webp");
    background-position: right;
    background-repeat: no-repeat;
    background-size: 40% auto;
    background-attachment: fixed;
    height: 100%;
    width: 100%;
    justify-self: end;
    border-radius: 30px 0 0 30px;
    left: 0;
    top:0;
    z-index: 0;
}

.process-service-1 .parallax-image-gradient {
    background: linear-gradient(to left, #fff, #0000);
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.process-service-1 .parallax-image-container {
    width: 80%;
    justify-self: end;
    position: relative;
}

.services__background-1 {
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url("/images/images-medium/background-logo-left.webp");
    background-size: cover;
    opacity: 0.5;
}

/*--PROCESS-SERVICE-1 ENDS--*/

/*--PROCESS-SERVICE-2--*/

.process-service-2 {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    padding: 5dvh 0;
    text-align: center;
    min-height: 100dvh;
    position: relative;
}

.title-4 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.process-service-2 .process__step span {
    margin-right: 1.5rem;
    font-size: 2rem;
}

.process-service-2 .process__step {
    display:flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: start;
    margin:0;
}

.process-service-2 .parallax-image-container-2 {
    width: 80%;
    justify-self: end;
    position: relative;
}

.process-service-2 .parallax-image-container-1 {
    width: 80%;
    position: relative;
    clip-path: inset(0);
    height: 100%;
}

.process-service-2 .parallax-image-1 {
    background-color: #000;
    background: url("/images/images-small/stock-image-6.webp");
    background-position: right;
    background-size: 40% auto;
    background-attachment: fixed;
    height: 100%;
    width: 100%;
    justify-self: end;
    border-radius: 30px 0 0 30px;
    position: relative;
    z-index: 0;
}

.parallax-image-1 .parallax-image-gradient {
    background: linear-gradient(to left, #fff, #0000);
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.process-service-2 .parallax-image-2 {
    background-color: #000;
    background: url("/images/images-small/stock-image-7.webp");
    background-position:right;
    background-size: 40% auto;
    background-repeat: repeat;
    background-attachment: fixed;
    height: 100%;
    width: 100%;
    justify-self: start;
    border-radius: 0 30px 30px 0;
    position: relative;
    z-index: 0;
}

.parallax-image-2 .parallax-image-gradient {
    background: linear-gradient(to right, #fff, #0000);
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.services__background-2 {
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url("/images/images-medium/background-logo-middle.webp");
    background-size: cover;
    opacity: 0.5;
}

/*--PROCESS-SERVICE-2 ENDS--*/

/*--PROCESS-SERVICE-3--*/

.process-service-3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-columns: 2fr 1fr;
    padding: 5dvh 15dvh;
    padding-left: 0;
    text-align: right;
    min-height: 100dvh;
    position: relative;
    grid-template-areas: 
    "image title"
    "image text";
}

.process-service-3 .info-container {
    grid-area: title;
}

.process-service-3 .process__list {
    grid-area: text;
}

.title-5 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-align: right;
}

.process-service-3 .process__step {
    display:flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-start;
    margin:0;
}

.process-service-3 .process__step span {
    margin-left: 1.5rem;
    font-size: 2rem;
}

.process-service-3 .parallax-image {
    background-color: #000;
    background: url("/images/images-small/stock-image-8.webp");
    background-position:left;
    background-repeat: no-repeat;
    background-size: 50% auto;
    background-attachment: fixed;
    height: 100%;
    width: 100%;
    justify-self: start;
    border-radius: 0 30px 30px 0;
    position: relative;
    z-index: 0;
}

.process-service-3 .parallax-image-gradient {
    background: linear-gradient(to right, #fff, #0000);
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.process-service-3 .parallax-image-container {
    width: 80%;
    grid-area: image;
}

.services__background-3 {
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url("/images/images-medium/background-logo-right.webp");
    background-size: cover;
    opacity: 0.5;
}

/*--PROCESS-SERVICE-3 ENDS--*/

/*--BRANDS-SCROLL--*/

.brands-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brands-scroll__text {
    color: var(--color-text);
    font-size: calc(var(--font-size-base)*1.56);
    margin:0;
}

.scroll__text-title span {
    color:var(--color-primary);
    position: relative;
}

.scroll__text-title span::before {
    content: '';
    background-color: var(--color-primary);
    width: 100%;
    height: 0.3rem;
    margin:auto;
    position:absolute;
    bottom:0;
    left: 0;
    right: 0;
    border-radius: 5px;
}

.scroll__text-title {
    margin:0;
    margin-top:2rem;
}

.brands-scroll__content {
    width: 100%;
    height: 40dvh;
    background: #fff;
    display:flex;
    overflow-x: hidden;
    touch-action: none;
}

.content-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap:1rem;
    flex-shrink: 0;
    min-width: 100%;
    animation: scroll 15s infinite linear;
    padding-right: 1rem;
}

.content-image {
    flex: 0 0 500px;
    height: auto;
    padding: 1rem;
}

.content-track img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: transform 0.2s, filter 0.1s, opacity 0.1s, box-shadow 0.2s;
}
.brands-scroll__content:hover .content-track {
    animation-play-state: paused;
}

.content-track img:hover {
    transform: scale(1.2);
    filter: grayscale(0%)
    opacity(1);
    filter: drop-shadow(0 1rem 15px #0005);
}


/*--BRANDS-SCROLL ENDS--*/

/*--CONTACT--*/

.contact {
    background-image: linear-gradient(to bottom, #fff, color-mix(in srgb, var(--color-primary) 100%, #fff 20%));
    box-shadow: 0 5px 20px #000a;
    position: relative;
    z-index: 10;
}

.title-6 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
}

.contact__info p {
    text-align: center;
    font-size: calc(var(--font-size-base)*1.56);
}

.contact__grid {
    display: flex;
    flex-direction: column;
}

.contact__form {
    display: flex;
    flex-direction: column;
    padding:0 20dvw;
}

.contact__form-grid {
    display: grid;
    width: 100%;
    margin:auto;
    margin-bottom: 3rem;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-template-areas:
    "name lastname"
    "email phone-number"
    "message message";
    justify-items: center;
    align-items: center;
    gap:20px;
}

.form__group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding:0;
}

.form__label {
    font-size: calc(var(--font-size-base)*1.25);
    padding:20px;
    padding-top:0;
    padding-left:0;
    height: max-content;
}

.form__label-icon {
    margin-left: 10px;
    font-size: calc(var(--font-size-base)*1.56);
    color: var(--color-primary);
    font-weight: 600;
}

.form__input {
    width: 100%;
    padding:20px;
    font-size: calc(var(--font-size-base)*1.56);
    border-radius: 20px; 
    background-color: #fff;
    border: none;
    outline:none;
    font-family: var(--font-family);
}

.form__input:focus{
    outline: 2px solid var(--color-primary);
}

.form__input::placeholder {
    font-size: calc(var(--font-size-base)*1.25);
    font-weight: 400;
    color:#0004;
}

.name {
    grid-area: name;
}

.lastname {
    grid-area: lastname;
}

.email {
    grid-area: email;
}

.phone-number {
    grid-area: phone-number;
}

.message {
    grid-area: message;
}

.form__input--textarea {
    resize: none;
    width: 100%;
    font-family: inherit;
    overflow: hidden;
}

.btn--secondary {
    color:#fff;
    height: fit-content;
    width: fit-content;
    padding: 20px 30px;
    border-radius: 20px;
    margin-top: 3rem;
    margin-bottom: 7rem;
    background-color: var(--color-primary);
    border-style: none;
    transition: color 0.3s, background-color 0.3s;
}

.btn--secondary:hover {
    background-color: #fff;
    color: var(--color-primary);
    cursor: pointer;
    box-shadow: 0 5px 15px #0005;
}

.btn--secondary:active {
    color:#fff;
    box-shadow: 0 5px 20px #0005;
}

/*--CONTACT ENDS--*/

/*--FOOTER--*/

.footer-space {
    height: 55dvh;
    width: 1px;
    position: relative;
    z-index: -1;
}

.footer {
    visibility: hidden;
    position:fixed;
    bottom:0;
    left:0;
    width: 100%;
    background-color: #fff;
    z-index: 0;
}

.footer.show {
    visibility: visible;
}

.footer__container {
    display:flex;
    flex-direction: row;
    gap:30px;
    justify-content: space-between;
    padding:5dvh 10dvw;
}

.footer__links {
    display: flex;
    flex-direction: row;
}

.footer__column {
    display: flex;
    flex-direction: column;
    padding:0 3rem;
}

.footer__column ul {
    display: flex;
    flex-direction: column;
    padding:0;
    margin:0;
}

.footer__column li {
    display: flex;
    gap:10px;
    flex-direction: row;
    margin-top:1rem;
    list-style-type:none;
    align-items: center;
    position: relative;
}

.footer__column .list__icon {
    background-color: transparent;
    position:absolute;
    left:0;
    border-radius: 2rem;
    width: 0.15rem;
    height: 100%;
    transition: background-color 0.2s;
}

.footer__column li:hover .list__icon{
    background-color: #000;
}

.footer__column li:hover a {
    transform: translateX(1rem);
}

.footer__column a {
    text-decoration: none;
    color: var(--color-text);
    transition: transform 0.2s;
}

.footer__column h4 {
    font-size: calc(var(--font-size-base)*1.25);
    margin:0;
}

.footer__social-networks {
    font-size: calc(var(--font-size-base)*1.56);
    margin-bottom: 1rem;
    margin-top:0;
}

.footer__logo-text {
    position: relative;
    color: var(--color-primary);
    text-decoration: none;
    padding:2rem;
    font-size: calc(var(--font-size-base)*1.96);
    transition: transform 0.2s;
}

.footer__logo-text::before {
    content: '';
    padding: 0;
    margin:0;
    margin:auto;
    height: 0.3rem;
    width: 0;
    background-color: transparent;
    position: absolute;
    bottom:2rem;
    border-radius: 1rem;
    left: 0;
    right: 0;
    transition: background-color 0.2s, width 0.2s;
}

.footer__logo {
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.social-networks__networks {
    display: flex;
    flex-direction: row;
    gap:10px;
}

.social-network-icon {
    font-size: 2rem;
    color:var(--color-primary);
    border-radius: 5px;
    height: fit-content;
    width: fit-content;
    margin:0;
    padding:0;
    display: flex;
    align-items: center;
    justify-items: center;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.social-network-icon span {
    padding: 0.25rem;
    margin:0;
    width: fit-content;
    height: fit-content;
    align-items: center;
    align-content: center;
    justify-items: center;
    display: flex;
}
.social-network-icon span i {
    padding: 0.1rem;
    margin:auto;
    display: block;
}

.social-network-icon:hover {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 5px 10px #0005;
}

.footer__copyright {
    background-color: var(--color-background);
    text-align: center;
    margin:0;
    padding: 1.5rem 0;
    font-weight: 500;
}

footer .header__logo-img {
    padding:0;
    margin:0;
    width: 8rem;
    fill:var(--color-primary);
}

.footer__logo:hover .header__logo-img {
    transform: translateY(-5px) scale(1.1);
}

.footer__logo:hover .footer__logo-text {
    transform: scale(1.1) translateY(-1rem);
}

.footer__logo:hover .footer__logo-text::before {
    background-color: var(--color-primary);
    width: 70%;
}

/*--FOOTER ENDS--*/

/*--MEDIA-QUERIES--*/

@media (max-width: 895px) {
    .hamburger {
        display: block;
        position: relative;
        z-index: 50;
    }

    .header__logo {
        position: relative;
        z-index: 50;
    }

    .nav__close-button {
        display: block;
    }

    .nav {
        width: min(200px, 50%);
        position: fixed;
        backdrop-filter: none;
        transform: none;
        filter:none;
        top:0;
        right: -100%;
        height: 100dvh;
        z-index: 10;
        display: flex;
        flex-direction: column;
        transition: right 0.5s;
    }

    .nav__list {
        position: relative;
        width: 100%;
        height: 100dvh;
        text-align: center;
        align-items: center;
        justify-items: center;
        flex-direction: column;
        margin:0;
        background-color: white;
        padding:2rem;
        padding-bottom: 18rem;
        box-shadow: -10px 0 15px #0005;
    }

    body:has(.nav__list.show) main, body:has(.nav__list.show) footer{
        filter: blur(15px);
    }

    .nav:has(.nav__list.show) {
        z-index: 50;
        right: 0;
    }

    .nav__link {
        display: block;
        height: 50px;
    }

    .nav__link::before {
        bottom: 1rem;
    }

    .header {
        position:relative;
        padding:0;
        z-index: 50;
    }

    .header__container {
        backdrop-filter: none;
        z-index: 50;
    }

    main {
        filter:none;
        transition: filter 0.5s;
    }

    footer {
        filter:none;
        transition: filter 0.5s;
    }

    .content-image {
        width: 150px;
        margin: 0 10px;
    }

    .brands-scroll__content {
        animation-duration: 15s;
    }

    /*--CONTENT--*/

    .hero__video {
        display: none;
    }
    
    .background-hero, .hero, .background-shadow-hero {
        min-height: 120dvh;
    }

    .background-hero {
        display: none;
    }

    .hero__subtitle {
        font-size: clamp(0.5rem, 1.5dvw + 1.5rem, 2.5rem);
    }
    
    .hero__text {
        padding: clamp(1px, 5dvw, 20px);
    }

    .container-scroll-animation {
        width: 100%;
    }

    .team__grid {
        flex-direction: column;
        align-items: center;
    }

    .member {
        width: 90%;
    }

    .team {
        height: auto;
        padding-bottom: 2rem;
    }

    .services__grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .services__grid .card {
        height: auto;
    }

    .services .section-description {
        font-size: clamp(1rem, calc(1rem + 2dvw), 3rem);
    }

    .service-card__image {
        margin:auto;
        height: 70%;
        width: 70%;
    }

    .service-image {
        height: auto;
        width: 100%;
    }

    .go-up-container {
        display:none;
    }

    .process-service-1 {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 100px;
        min-height: fit-content;
        padding: 20px 20px;
    }

    .process-service-1 .parallax-image {
        background-size: cover;
        border-radius: 20px 20px 0 0;
    }

    .process-service-1 .parallax-image-container {
        height:100px;
        width: 100%;
    }
    
    .process-service-1 .parallax-image-gradient {
        background:linear-gradient(to bottom, transparent, #fff);
    }

    .process-service-2 .parallax-image-1{
        background-size: cover;
    }

    .process-service-2 .parallax-image-2 {
        display: none;
    }

    .process-service-2 {
        grid-template-columns: 0fr 1fr 1fr;
        padding-left: 1rem;
        text-align: start;
    }

    .process-service-2 .section-title {
        text-align: inherit;
    }

    .process-service-3 .parallax-image {
        background-size: cover;
    }

    .section-title {
        font-size: clamp(1.25rem, 2.5vw + 1rem, 2.5rem);
    }

    .process-service-3 {
        padding: 2rem 20px;
        padding-left: 0;
        width: fit-content;
        height: fit-content;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 2fr 1fr;
        grid-template-areas:
        "image title"
        "text text";
    }

    .process-service-3 .parallax-image-container {
        grid-area: image;
        height: 100%;
    }
    
    .process-service-3 .process__list {
        grid-area: text;
    }

    .process-service-3 .info-container {
        grid-area: title;
    }

    .brands-scroll__text {
        text-align: center;
    }

    .content-track {
        gap: 10px;
    }

    .content-image {
        flex: 0 0 10rem;
        height: auto;
        padding: 0.1rem;
    }

    .contact__form {
        padding:0 10px;
    }

    .contact__form-grid {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .contact {
        height: auto;
    }

    .footer__container {
        flex-direction: column;
        padding: clamp(5px, 5dvw, 20px);
    }
    
    .footer__logo-text {
        font-size: clamp(1rem, 1dvw + 1.5rem, 3rem);
    }

    .footer-space {
        height: 80dvh;
    }

    .footer__logo-text {
        padding: clamp(5px, 5dvw, 20px);
    }

    .footer__column {
        padding: clamp(5px, 5dvw, 20px);
    }

    .title-1 {
        font-size: 10dvw;
    }

    .brands-scroll__content {
        height: 20dvh;
    }

    
}

@media (max-width: 360px) {
    .hero__text {
        padding: 0;
    }

    :root {
        font-size: 12px;
    }

}

@media (max-width: 250px) {
    .process-service-1 .parallax-image-container {
        display:none;
    }

    .process-service-1 {
        display: block;
        padding: 20px 5px;
    }

    .process-service-2 {
        display: block;
    }

    .process-service-2 .parallax-image-container-1 {
        display: none;
    }

    .process-service-2 .parallax-image-container-2 {
        display: none;
    }

    .process-service-3 .parallax-image-container {
        display:none;
    }

    .process-service-3 {
        display: block;
        padding: 20px 5px;
    }

}

@media (min-width: 2440px) {
    :root {
        font-size: 25px;
        --font-size-base: 25px;
        --header-height: 13dvh;
    }

    .hero__subtitle {
        font-size: calc(var(--font-size-base)*2.95);
    }

    .services .container {
        max-width: 1600px;
    }

    .header__logo:hover .header__logo-text {
        transform: translateY(-2.3rem);
    }

    .header__container {
        padding:0 10dvw;
    }
}

@media (min-width: 3840px) {
    :root {
        font-size: 35px;
        --font-size-base: 35px;
    }

    .hero__subtitle {
        font-size: calc(var(--font-size-base)*3.4);
    }

    .background-hero {
        display: none;
    }
    .services .container {
        max-width: 2000px;
    }

    
}

@media (min-width: 1024px) {
    /* Sección 1 */
    .process-service-1 .parallax-image {
        background-image: url("/images/images-medium/stock-image-5.webp");
    }
    .services__background-1 {
        background-image: url("/images/images-medium/background-logo-left.webp");
    }

    /* Sección 2 */
    .process-service-2 .parallax-image-1 {
        background-image: url("/images/images-medium/stock-image-6.webp");
    }
    .process-service-2 .parallax-image-2 {
        background-image: url("/images/images-medium/stock-image-7.webp");
    }
    .services__background-2 {
        background-image: url("/images/images-medium/background-logo-middle.webp");
    }

    /* Sección 3 */
    .process-service-3 .parallax-image {
        background-image: url("/images/images-medium/stock-image-8.webp");
    }
    .services__background-3 {
        background-image: url("/images/images-medium/background-logo-right.webp");
    }
}

@media (min-width: 1800px) {
    /* Sección 1 */
    .process-service-1 .parallax-image {
        background-image: url("/images/images-high/stock-image-5.webp");
    }
    .services__background-1 {
        background-image: url("/images/images-high/background-logo-left.webp");
    }

    /* Sección 2 */
    .process-service-2 .parallax-image-1 {
        background-image: url("/images/images-high/stock-image-6.webp");
    }
    .process-service-2 .parallax-image-2 {
        background-image: url("/images/images-high/stock-image-7.webp");
    }
    .services__background-2 {
        background-image: url("/images/images-high/background-logo-middle.webp");
    }

    /* Sección 3 */
    .process-service-3 .parallax-image {
        background-image: url("/images/images-high/stock-image-8.webp");
    }
    .services__background-3 {
        background-image: url("/images/images-high/background-logo-right.webp");
    }
}

/* SOLUCIÓN AL LAG EN CELULARES */
@media (hover: none), (pointer: coarse), (max-width: 1024px) {
    /* Seleccionamos TODAS las variantes posibles de tus clases */
    .parallax-image, 
    .parallax-image-1, 
    .parallax-image-2,
    .process-service-1 .parallax-image,
    .process-service-2 .parallax-image-1,
    .process-service-2 .parallax-image-2,
    .process-service-3 .parallax-image {
        background-attachment: scroll !important;
        background-position: center center !important;
        background-size: cover !important;
    }
}

/*--MEDIA-QUERIES ENDS--*/

/*--ANIMATIONS--*/

@keyframes scroll {
    from {
        translate: 0;
    }

    to {
        translate: -100%;
    }
    
}

@keyframes scroll-vertical {
    from {
        translate: 0 0;
    }
    to {
        translate: 0 -100%;
    }
}

@keyframes go_up {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Estado inicial: Invisible y un poco más abajo */
.fade-in {
    opacity: 0;
    transform: translateY(50px); /* "La subidita" empieza desde abajo */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform; /* Optimización de rendimiento */
}

/* Estado final: Visible y en su posición original */
.fade-in.visible {
    opacity: 1;
    transform: translateY(0px);
}

/*--ANIMATION ENDS--*/

/* --- FIX FINAL PARA LIGHTHOUSE (FONT-DISPLAY) --- */

/* 1. Definimos la fuente "Brands" (Marcas) con un nombre propio y SWAP activado */
@font-face {
    font-family: 'FA Brands Swap'; /* Nombre personalizado */
    font-style: normal;
    font-weight: 400;
    font-display: swap; /* Lo que quiere Google */
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-brands-400.woff2") format("woff2"),
        url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-brands-400.ttf") format("truetype");
}

/* 2. Definimos la fuente "Solid" (Iconos comunes) con nombre propio y SWAP */
@font-face {
    font-family: 'FA Solid Swap'; /* Nombre personalizado */
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-solid-900.woff2") format("woff2"),
        url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-solid-900.ttf") format("truetype");
}

/* 3. OBLIGAMOS a los íconos a usar nuestra definición */
/* Usamos !important para ganar, aunque Cloudflare cargue último */

.fab, .fa-brands {
    font-family: 'FA Brands Swap', "Font Awesome 6 Brands" !important;
}

.fas, .fa-solid, .fa {
    font-family: 'FA Solid Swap', "Font Awesome 6 Free" !important;
}