:root {
    --bg-primary-color: #fff;
    --bg-secondary-color: #ff6600;
    --bg-terciary-color: #008251;
    --text-primary-color: #33302f;
    --text-secondary-color: #fff;
    --text-terciary-color: #9f9f9f;
    --text-cuaternary-color: #465058;
    --title-primary-color: #ff6600;
    --title-secondary-color: #008251;

    --bg-button-color: #33302f;

    --bg-facebook-color: #3c5994;
    --bg-twitter-color: #59a8ea;
    --bg-instagram-color: linear-gradient(90deg, #f17e00, #e50029, #d30060);
    --bg-youtube-color: #d84e42;

    --nav-height: 103px;
    --card-width: 250px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:before,
*:after {
    box-sizing: inherit;
}

a,
a:active,
a:visited {
    text-decoration: none;
}

li,
ul {
    list-style: none;
    padding: 0;
}

button {
    border-style: none;
}

/* Global */
body {
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

/* Nav */
.nav {
    position: sticky;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
    background-color: var(--bg-primary-color);
    padding: 0 2.8rem 0 1.5rem;
    z-index: 100;
}

.nav__brand {
    width: auto;
    height: 46px;
}

.nav__logo {
    width: inherit;
    height: inherit;
}

.nav__list {
    display: flex;
    gap: 50px;
}

.nav__item {
    text-transform: capitalize;
    display: flex;
    align-items: center;
}

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

.nav__link {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary-color);
}

.nav__socials {
    display: flex;
    gap: 12px;
}

.nav__social {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--bg-secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.nav__social--facebook {
    background-color: var(--bg-facebook-color);
}

.nav__social--twitter {
    background-color: var(--bg-twitter-color);
}

.nav__social--instagram {
    background: var(--bg-instagram-color);
}

.nav__social--youtube {
    background-color: var(--bg-youtube-color);
}

.nav__icon {
    color: var(--text-secondary-color);
    font-size: 10px;
}

.nav__search {
    position: absolute;
    left: 0;
    bottom: -40px;
    width: 100%;
    height: 0;
    background-color: var(--bg-terciary-color);
    overflow: hidden;
    transition: .2s ease-in;
}

.nav__search.active {
    height: 40px;
}

.nav__input {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    color: var(--text-secondary-color);
    outline: none;
    padding: 0 40px;
    font-size: 1.2em;
    border-style: none;
}

.nav__exit {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--bg-primary-color);
    z-index: 9;
}
/* Burger */
.burger {
    position: relative;
    width: 35px;
    height: 35px;
    gap: 5px;
    cursor: pointer;
    display: none;
}

.burger__item {
    width: 80%;
    height: 5px;
    background-color: var(--text-primary-color);
    border-radius: 5px;
    position: absolute;
    transform: translateX(-50%);
    top: 25%;
    left: 50%;
    transition: .3s linear;
}

.burger__item:nth-child(2) {
    top: 50%;
}

.burger__item:nth-child(3) {
    top: 75%;
}

/* Container */
.container {
    min-height: 100vh;
}

/* Hero Section */
.hero {
    width: 100%;
}

/* Carrousel */
.carrousel {
    position: relative;
    height: 450px;
    overflow: hidden;
    display: flex;
}

.carrousel__list {
    display: flex;
    transition: .3s linear;
}

.carrousel__item {
    position: relative;
    height: inherit;
    width: 100vw;
    overflow: hidden;
}

.carrousel__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(250, 246, 246, 0.9);
}

.carrousel__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.carrousel__content {
    position: absolute;
    top: 6rem;
    left: 12rem;
}

.carrousel__title {
    color: var(--text-primary-color);
    font-size: 40px;
    max-width: 270px;
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 40px;
}

.carrousel__title--important {
    color: var(--title-primary-color);
}

.carrousel__paragraph {
    max-width: 400px;
    text-align: justify;
    font-size: 1.2rem;
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 30px;
}

.carrousel__link {
    text-transform: uppercase;
    font-weight: 900;
    font-size: 16px;
    color: var(--title-primary-color);
}

.carrousel__link:hover .carrousel__link--arrow-up-right {
    transform: translateX(5px) rotate(90deg);
}


.carrousel__link--arrow-up-right {
    position: relative;
    transform: rotate(45deg);
    transition: .25s ease;
}

.carrousel__link--arrow-up-right i {
    transform: inherit;
}

.carrousel__people {
    position: absolute;
    right: 170px;
    bottom: -40px;
    height: 480px;
    width: auto;
    pointer-events: none;
}

.carrousel__60years {
    position: absolute;
    top: 2.5rem;
    right: 5rem;
    width: 180px;
    height: auto;
    pointer-events: none;
}

.carrousel__row {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: #ebe9e2;
    background-color: var(--bg-primary-color);
    cursor: pointer;
    transition: .15s ease;
    z-index: 10;
}

.carrousel__row:hover {
    background-color: var(--bg-secondary-color);

}

.carrousel__row--left {
    left: 40px;
}

.carrousel__row--right {
    right: 40px;
}

/* Helps */
.help__container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    padding: 30px 40px;
    gap: 30px;
}

.help__item {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 120px;
    gap: 10px;
}

.help__icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(130deg, var(--bg-secondary-color), #ffcc00);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: var(--bg-primary-color);
}

.help__title {
    text-align: center;
    color: var(--text-primary-color);
    font-size: 18px;
    font-weight: 500;
}

/* News Section */
.news {
    width: 100%;
    min-height: 50vh;
    padding-top: 40px;
}

.news__title {
    color: var(--title-primary-color);
    font-size: 25px;
    line-height: 1.8;
}

.news__subtitle {
    color: var(--text-primary-color);
    margin-bottom: 40px;
}

.news__title,
.news__subtitle {
    text-align: center;
}

/* Card container */
.card__container {
    width: 100vw;
    min-height: 500px;
    overflow: hidden;
}

.card__list {
    width: inherit;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.card__item {
    display: flex;
    justify-content: center;
    height: inherit;
    gap: 80px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    opacity: 0;
    transition: .3s linear;
}

.card__item.active {
    opacity: 1;
}

/* Card */
.card {
    width: var(--card-width);
    height: fit-content;
}

.card__image {
    width: var(--card-width);
    height: var(--card-width);
    object-fit: cover;
    border-radius: 20px;
}

.card__content {
    width: 100%;
    padding: 10px 15px;
}

.card__date {
    color: var(--text-terciary-color);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 11px;
}

.card__block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.card__category {
    color: var(--text-secondary-color);
    padding: 8px 10px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 20px;
}

/* Category type - background */
.card__category--news { background-color: #ff6600 }
.card__category--agent { background-color: #00794d }
.card__category--blog { background-color: #ff5100 }

.card__description {
    color: var(--text-primary-color);
    font-weight: 300;
}

/* News block */
.news__block {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    margin: 40px 0;
    gap: 200px;
}

.news__text {
    color: var(--text-primary-color);
    font-weight: 300;
}

.card__controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.card__control {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color:var(--bg-button-color);
    border: 2px solid transparent;
    cursor: pointer;
}

.card__control.active {
    background-color: var(--bg-primary-color);
    border: 2px solid var(--bg-button-color);
}

.news__all {
    background: #c3e1c6;
    color: var(--bg-terciary-color);
    padding: 15px 30px;
    border-radius: 30px;
    position: relative;
}

.news__all::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: -50%;
    width: 40px;
    height: 40px;
    background-image: url('/img/cursor-pixel.png');
    background-size: cover;
}

/* Section services */
.services {
    min-height: 75vh;
    position: relative;
    padding: 50px 0;
}

.services:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70vh;
    background: linear-gradient(180deg, #ff9e00, #fe6d00);
    z-index: -1;
}

.services::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fffaf7;
    z-index: -2;
}

.service__title,
.service__subtitle {
    text-align: center;
    color: var(--text-secondary-color);
    margin: auto;
}


.service__title {
    font-size: 1.5rem;
    line-height: 2;
}

.service__subtitle {
    max-width: 600px;
    font-size: 1rem;
    font-weight: 400;
    padding: 0 40px;
}

.service__group {
    margin: auto;
    margin-top: 60px;
    max-width: 1000px;
    height: fit-content;
    gap: 40px;
    overflow: hidden;
}

.service__group-list {
    display: flex;
    justify-content: space-around;
    width: 1000px;
}

.service__group-item {
    color: var(--text-secondary-color);
    text-align: center;
}

.service__icon {
    font-size: 30px;
    line-height: 1.8;
}

.service__text {
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.service__container {
    margin: auto;
    width: 1100px;
    height: 450px;
    background: var(--bg-primary-color);
    margin-top: 25px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    position: relative;
}

.service__list {
    height: inherit;
    overflow: hidden;
    position: relative;
}

.service__item {
    padding: 50px;
    width: 100%;
    height: inherit;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: .3s linear;
}

.service__item.active {
    opacity: 1;
}

.service__title--green {
    color: var(--title-secondary-color);
    text-transform: uppercase;
    font-size: 1.55rem;
}

.service__block {
    display: flex;
}

.service__image {
    width: 500px;
    height: 300px;
}

.service__content {
    padding: 20px 50px;
    color: var(--text-cuaternary-color);
}

.service__description {
    font-size: 15px;
}

.company {
    display: flex;
    height: 150px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--text-cuaternary-color);
}

.company__image {
    width: 130px;
    height: auto;
}

.points {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.point {
    display: flex;
    gap: 10px;
}

.point__icon {
    color: var(--bg-terciary-color);
    transform: rotate(45deg);
}

.service__controls {
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    bottom: 20px;
    right: 250px;
}

.service__control {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color:var(--bg-button-color);
    border: 2px solid transparent;
    cursor: pointer;
}

.service__control.active {
    background-color: var(--bg-primary-color);
    border: 2px solid var(--bg-button-color);
}

/* Ideas section */
.ideas {
    min-height: 50vh;
}

.idea__container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.idea {
    width: 280px;
    height: 180px;
    overflow: hidden;
    position: relative;
    border-radius: 30px;
}

.idea::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: inherit;
    height: inherit;
    background-color: rgba(0, 0, 0, 0.2)
}

.idea__image {
    width: inherit;
    height: inherit;
}

.idea__icon {
    position: absolute;
    top: 30px;
    left: 30px;
    color: var(--text-secondary-color);
    font-size: 2rem;
}

.idea__title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: var(--text-secondary-color);
    font-size: 1.3em;
    font-weight: 800;
    max-width: 200px;
}

/* Bussines */
.business {
    display: flex;
    justify-content: space-around;
    margin: auto;
    max-width: 1100px;
    margin-top: 50px;
    gap: 40px;
    flex-wrap: wrap;
}

.business__item {
    width: 150px;
    height: 80px;
}

.business__image {
    width: inherit;
    height: inherit;
    object-fit: contain;
}

/* Footer */
.footer {
    min-height: 10vh;
}

.footer__contact {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
    flex-wrap: wrap;
    gap: 100px;
}

.footer__logo {
    width: 40px;
    height: 40px;
}

.footer__title {
    color: var(--title-primary-color);
    text-transform: uppercase;
    font-size: 12px;
    line-height: 4;
}

.footer__info {
    color: var(--text-cuaternary-color);
    font-size: 1.1rem;
    max-width: 300px;
    line-height: 1.2;
}

.footer__socials {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer__social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.footer__social--facebook {
    background-color: var(--bg-facebook-color);
}

.footer__social--twitter {
    background-color: var(--bg-twitter-color);
}

.footer__social--instagram {
    background: var(--bg-instagram-color);
}

.footer__social--youtube {
    background-color: var(--bg-youtube-color);
}

.footer__icon {
    color: var(--text-secondary-color);
    font-size: 15px;
}

/* Policies */
.policies {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 40px 60px;
    flex-wrap: wrap;
    gap: 40px;
}

.policie {
    display: flex;
    gap: 10px;
}

.policie__icon {
    color: #c1cecc;
}

.policie__text {
    font-size: 15px;
    color: var(--text-primary-color);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-primary-color);
    z-index: 1000;
    transition: .3s ease-in;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.loader::before {
    content: 'Cargando';
    position: absolute;
    top: 30vh;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    font-size: 50px;
    width: fit-content;
    font-weight: 900;
    color: var(--bg-terciary-color);
    letter-spacing: 10px;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader__item {
    width: 10px;
    height: 0;
    background-color: var(--bg-secondary-color);
    animation: loader 0.5s linear infinite;
    animation-delay: calc(0.1s * var(--i));
}

@keyframes loader {
    0%, 100% {
        background-color: var(--bg-secondary-color);
        height: 0;
    }

    50% {
        background-color: var(--bg-terciary-color);
        filter: drop-shadow(0 0 5px var(--bg-terciary-color));
        height: 130px;
    }
}


/* Responsive 500px */
@media screen and (max-width: 500px) {
    /* Navbar */
    .nav__brand {
        height: 10px;
    }

    /* Carrousel */
    .carrousel__title {
        font-size: 20px;
    }

    .carrousel__subtitle,
    .carrousel__paragraph {
        margin-bottom: 10px;
    }

    .carrousel__link {
        font-size: 16px;
    }
}

/* Responsive 600px */
@media screen and (max-width: 600px) {
    /* Service section */
    .company {
        flex-direction: column;
        margin: 20px 0;
    }
}

/* Responsive 900px */
@media screen and (max-width: 900px) {
    /* Carrousel */
    .carrousel__60years,
    .carrousel__people {
        display: none;
    }

    .carrousel__content {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    /* Service sertion */
    .service__item {
        padding: 0;
    }

    .service__content {
        padding: 20px;
    }

    .points {
        gap: 8px;
    }
}

/* Responsive 950px */
@media screen and (max-width: 950px) {
    /* News Section */
    .card__list,
    .card__container {
        overflow-x: scroll;
    }

    .card__item {
        justify-content: flex-start;
        padding: 0 40px;
    }

    
    .news__block {
        justify-content: center;
    }

    .news__text,
    .news__all {
        display: none;
    }

    /* Services sertion */
    .service__container {
        width: 100%;
        height: 500px;
    }

    .service__group {
        max-width: 100%;
    }
}

/* Responsive 1100px */
@media screen and (max-width: 1100px) {
    /* Nav */
    .nav__brand {
        height: 40px;
    }

    .nav__list {
        position: fixed;
        top: var(--nav-height);
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: var(--bg-primary-color);
        flex-direction: column;
        gap: 0;
        transition: .3s linear;
    }

    .nav__list.active {
        right: 0;
    }

    .nav__item {
        width: 100%;
        height: 50px;
    }

    .nav__link {
        width: inherit;
        height: inherit;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav__socials {
        justify-content: center;
        margin-top: 40px;
    }

    /* Burger */
    .burger {
        display: flex;
        z-index: 999;
    }

    .burger.active .burger__item:nth-child(1) {
        transform: translateX(-50%) rotate(45deg);
        top: 50%;
    }

    .burger.active .burger__item:nth-child(2) {
        left: 120%;
        opacity: 0;
    }

    .burger.active .burger__item:nth-child(3) {
        transform: translateX(-50%) rotate(-45deg);
        top: 50%;
    }
}

@media screen and (max-width: 1200px) {
    /* Services section */
    .service__container {
        width: 90%;
    }

    .service__controls {
        bottom: 20px;
        right: 50%;
        transform: translateX(-50%);
    }

    .service__image {
        display: none;
    }

    .service__group {
        overflow-x: scroll;
    }
}

