* {
    box-sizing: border-box;
}

:root {
    --primary: #00B1FF;
    --black: #000;
    --spacing-lg: .75rem;
    --spacing-xl: 1rem;
    --header-height: 68px;
    --container: 70%;
    --container-xl: 80%;
    --font-base: 12px;
    --swiper-pagination-bottom: -24px;
}

html, body {
    height: 100vh;
    width: 100vw;
    padding: 0;
    margin: 0;
}

body {
    scroll-behavior: smooth;
    font-family: 'Red Hat Display', sans-serif;
    color: var(--black);
    font-size: clamp(var(--font-base), 1.1vw, 18px);
}

@media (min-width: 1024px) {
    :root {
        --spacing-xl: 2rem;
    }
    body {
        display: flex;
    }
    html {
        scroll-snap-type: x mandatory;
    }
}

@media (min-width: 1620px) {
    :root {
        --spacing-xl: 3rem;
        --header-height: 135px;
        --spacing-lg: 1.5rem;
        --font-base: 14px;
    }
}



a {
    text-decoration: none;
    color: var(--primary);
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

h1, h2, h3 {
    font-weight: 600;
    margin-top: 0;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

.section {
    width: 100vw;
    flex-shrink: 0;
    scroll-snap-align: center;
    padding: calc(var(--header-height) +  var(--spacing-xl)) var(--spacing-xl) var(--spacing-xl);
    overflow: hidden;
}

#inicio {
    display: none;
}

#inicio img {
    display: none;
}

@media (min-width: 1024px) {
    #inicio {
        display: block;
    }
    .section {
        scroll-snap-align: center;
        height: 100vh;
    }
    .section--vertical {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: start;
        .container-2-cols {
            flex-grow: 1;
        }
    }
    #inicio img {
        display: block;
    }
    #inicio p {
        display: none;
    }
}

.section__title {
    font-size: clamp(2.4rem, 1.1vw, 4.4rem);
    position: relative;
    display: inline-block;
    margin-top: 0;
    margin-bottom: var(--spacing-xl);
}

.section__title:after {
    content: "";
    display: block;
    width: 100px;
    border-top: 2px solid var(--primary);
    position: absolute;
    left: calc(100% + 1rem);
    top: 50%;
}

.section__subtitle {
    font-size: 2rem;
    margin-top: 0;
    position: relative;
}

.section__subtitle--underline:after {
    content: "";
    display: block;
    width: 100px;
    border-bottom: 2px solid var(--primary);
    position: absolute;
    left: 0;
    bottom: -20px;
}

.container {
    width: 100%;
    margin: 0 auto;
}

.container-2-cols,
.container-3-cols {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 1024px) {
    .container {
        max-width: var(--container);
    }
    .container-2-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: var(--container-xl);
        gap: 3rem;
        align-items: center;
    }
    .container-3-cols {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 3rem;
    }
    #empresa {
        display: flex;
        flex-direction: column;
    }
    #empresa .container,
    #apoyamos-sector .apoyamos {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        .container {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
        }
    }
}

.page-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-xl);
    z-index: 25;
    background-image: linear-gradient(#fff 50%, rgba(255, 255, 255, 0));
}

.page-header-brand {
    background: url('images/avisual.svg') no-repeat center/contain;
    width: 200px;
    height: 36px;
    text-indent: -9999px;
}

.page-header__nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fff;
    display: none;
    padding: var(--spacing-xl);
}
.page-header__nav.page-header__nav--open {
    display: block;
}

.page-header__nav__header {
    display: flex;
    justify-content: flex-end;
}

.page-header__lang {
    position: relative;
    z-index: 20;
    font-size: var(--font-base);
}

.page-header__more {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.page-header__lang__label {
    padding: .5rem 0 .5rem 1rem;
    margin-bottom: 0;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
}

.page-header__lang__label:after {
    content: "";
    background: url('images/icons/chevron-down.svg') no-repeat center/contain;
    width: 16px;
    height: 16px;
    display: block;
    transition: transform .25s;
}

.page-header__lang:hover .page-header__lang__label:after {
    transform: rotate(-180deg);
}

.page-header__lang__list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border: 1px solid #eee;
}

.page-header__lang:hover .page-header__lang__list {
    display: block;
}

.page-header__lang__list li {
    border-top: 1px solid #eee;
}

.page-header__lang__list li:first-child {
    border-top-width: 0;
}

.page-header__lang__list a {
    display: block;
    padding: .5rem 1rem;
    text-transform: uppercase;
    min-width: 120px;
    text-align: center;
}

.page-header__lang__list a:hover {
    font-weight: 700;
}

.icon {
    width: 42px;
    height: 42px;
    text-indent: -9999px;
    border-width: 0;
    cursor: pointer;
}

.icon--close {
    background: url('images/icons/close.svg') no-repeat center;
}

.icon--nav {
    background: url('images/icons/nav.svg') no-repeat center;
}

.page-header nav {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    font-size: 14px;
}

.page-header nav a {
    text-transform: uppercase;
    color: var(--black);
    padding: .5rem 0;
    border-bottom: 1px solid var(--black);
    transition: .25s;
}

.page-header nav .page-header__nav__item--active {
    color: var(--primary);
    border-color: var(--primary);
}

@media (min-width: 1024px) {
    .icon--nav,
    .icon--close {
        display: none;
    }
    .page-header__nav {
        flex-grow: 1;
        display: block !important;
        width: auto;
        height: auto;
        padding: 0;
        position: relative;
    }
    .page-header nav {
        flex-direction: row;
        justify-content: flex-end;
    }
}

#next,
#previous {
    display: none;
    position: fixed;
    top: calc(var(--header-height) +  var(--spacing-xl) / 2 + 10px);
    background: url('images/button-next.svg') no-repeat center/cover;
    width: 90px;
    aspect-ratio: 1 / 1;
    border-width: 0;
    text-indent: -9999px;
    cursor: pointer;
    z-index: 20;
    transition: opacity .25s;
}

#next {
    right: var(--spacing-xl);
}

#previous {
    left: var(--spacing-xl);
    transform: rotate(180deg);
}

#next.next--hidden,
#previous.next--hidden {
    opacity: 0;
}
@media (min-width: 1024px) {
    #next,
    #previous {
        display: block;
    }
    .section__title {
        margin-left: calc(90px + var(--spacing-xl));
    }
}

#inicio {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

#inicio img {
    max-width: 800px;
    margin-bottom: 5rem;
}

#inicio p {
    text-transform: uppercase;
    font-size: 18px;
}
#inicio p:after {
   content: "";
   display: inline-block;
   margin-left: 1rem;
   background: url('images/arrow-left-large.svg') no-repeat center/contain;
   width: 64px;
   height: 10px;
}

/**
 * Counts
 */
.grid-cols-6,
.grid-cols-7 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 5rem auto 0;
    width: 100%;
}
.counts__item {
    text-align: right;
}
.counts__item__number {
    font-weight: 700;
    font-size: 2rem;
}
.counts__item__number:before {
    content: '+';
    color: var(--primary);
}
.counts__item__label {
    font-weight: 700;
    font-size: 1.4rem;
}

@media (min-width: 750px) {
    .grid-cols-6,
    .grid-cols-7 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-cols-6 {
        grid-template-columns: repeat(6, 1fr);
    }
    .grid-cols-7 {
        grid-template-columns: repeat(7, 1fr);
    }
}

.logos {
    align-items: center;
}
.logos img {
    max-width: 120px;
    filter:grayscale(1);
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

/**
 * Timeline
 */
 .timeline-container {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
 }
 @media (min-width: 1024px) {
    .timeline-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
 }
 .timeline {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}
.timeline__item {
   display: flex;
   align-items: center;
   gap: 1rem;
   position: relative;
}
.timeline__item__year {
    font-weight: 700;
    font-size: 1.2rem;
    aspect-ratio: 1 / 1;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-weight: 700;
    width: 72px;
    background-color: #fff;
    position: relative;
}
.timeline__item:before {
    content: '';
    border-left: 2px solid var(--primary);
    position: absolute;
    height: calc(100% + 2rem);
    z-index: -1;
    top: -1rem;
    left: 34px;
}
.timeline__item:first-child:before {
   top: 50%;
}
.timeline__item:last-child:before {
    bottom: 50%;
    top: auto;
 }

.timeline__item__label p {
    margin-bottom: .75rem;
}

/**
 * Grafico
 */
.grafico {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    width: 100%;
}
.grafico img {
    object-fit: contain;
    flex-shrink: 0;
    width:100%;
}
.grafico__body h3 {
    margin-bottom: 0;
}

.graphs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
}

@media (min-width: 1024px) {
    .graphs {
        grid-template-columns: repeat(2, minmax(0, 3fr));
        flex-grow: 1;
        place-items: center;
    }
}

.external-link {
    display: inline-block;
    text-transform: uppercase;
    color: var(--primary);
    border-bottom: 1px solid var(--primary);
    background: url('images/arrow-external.svg') no-repeat center right;
    padding-right: 1.5rem;
    padding-bottom: 0.25rem;
    margin-top: 2rem;
    border-width: 0;
}

form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

form p {
    font-size: .85rem;
}

input[type="text"],
input[type="email"],
textarea,
select {
    font-family: 'Red Hat Display', sans-serif;
    padding: 0.5rem 0;
    border-width: 0;
    border-bottom: 1px solid #000;
    text-transform: uppercase;
    width: 100%;
    font-size: 1rem;
    background-color: #fff;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    border-bottom-color: var(--primary);
    outline: none;
}

.address {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.address__item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.address__item img {
    width: 184px;
}

.address__item h3 {
    text-transform: uppercase;
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: .25rem;
}

.address__item p {
    margin-bottom: .25rem;
}

.form-response {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: .5rem 1rem;
    width: 100%;
    font-weight: 700;
    display: none;
}

.slider {
    overflow: hidden;
    aspect-ratio: 6 / 5;
}

.swiper-container {
    position: relative;
    max-width: 100%;
}

.credits {
    text-align: center;
    font-size: .85rem;
}
@media (min-width: 1024px) {
    .credits {
        grid-column-end: span 2;
    }
}

.credits__logos {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}
.credits__logos img {
    max-width: 220px;
    object-fit: contain;
}

.page main {
    max-width: 850px;
    margin: 0 auto;
    padding: var(--spacing-xl);
}

.page main ul {
    list-style: disc;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.page main ul li {
    margin-bottom: 0.5rem;
}