@import url(utils.css);
@import url(tokens.css);
@import url(web.css);

/* ======================================== GENERAL =================================== */
body {
    box-sizing: border-box;
    position: relative;
    transition: var(--transition);
    height: 100vh;
}

main {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding-top: var(--header-height);
    width: 100%;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1000ms;
}

.content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 100px;
    height: 100%;
    width: 100%;
    padding-bottom: 60px;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

.content::-webkit-scrollbar {
    display: none;
}

.home-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    height: fit-content;
    width: 100%;
}

.home-article {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    height: fit-content;
    width: 90%;
    max-width: 1000px;
    padding: var(--padding-general);
    border-radius: var(--radius-general);
}

.area-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: fit-content;
    width: 100%;
    color: var(--black);
    background-color: var(--background);
}

.area-article {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: fit-content;
    width: 90%;
    max-width: 1000px;
    padding: var(--padding-general);
    border-radius: var(--radius-general);
}

.area-list {
    appearance: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.area-item {
    display: flex;
    flex-direction: row;
    align-items: start;
    gap: 10px;
}

.area-item img {
    width: 22px;
    height: 22px;
}

.proyects-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--gap-general);
    height: fit-content;
    width: 100%;
    color: var(--white);
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: var(--padding-general) 0px;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: fit-content;
    overflow: hidden;
    margin: 0 auto;
}

.carousel {
    display: flex;
    transition: all 400ms ease-in-out;
}

.carousel-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    min-width: 100%;
    height: 100%;
    color: var(--white);
}

.carousel-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-general);
}

.carousel-item-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: var(--padding-general);
}

.carousel-controls {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 10px;
    width: 100%;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
}

.dot-indicator {
    width: 15px;
    height: 15px;
    margin: 7px;
    background-color: var(--grey-1);
    border-radius: 50%;
    cursor: pointer;
}

.dot-indicator.active {
    background-color: var(--orange);
    box-shadow: 0 0 10px 2px #FF8900;
}

.btn-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--cyan);
    border: 1px solid var(--cyan);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
}

.btn-carousel img {
    width: 24px;
    height: 24px;
    filter: var(--cyan-icon);
}

#btn-next {
    transform: rotate(180deg);
}


@media only screen and (max-width: 1024px) {
    .carousel-item img {
        border-radius: 0px;
    }
}

.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    height: fit-content;
    width: 100%;
    padding-bottom: 60px;
}

.contact-article {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    height: fit-content;
    width: 90%;
    max-width: 1000px;
    padding: var(--padding-general);
    border-radius: var(--radius-general);
}

/* ======================================== INPUTS =================================== */

button {
    font-family: var(--primary-font);
    font-size: var(--normal-text);
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

button:focus {
    outline: none;
}

.btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--gap-btn);
    padding: var(--padding-btn);
    border-radius: var(--radius-btn);
    font-family: var(--primary-font);
    font-size: var(--normal-text);
    height: fit-content;
    width: fit-content;
    transition: var(--transition-btn);
    cursor: pointer;
    user-select: none;
}

.btn:focus {
    outline: none;
}

.btn[Disabled] {
    cursor: not-allowed;
    user-select: none;
    color: var(--black);
    filter: opacity(0.5);
}

.btn-primary {
    background-color: var(--background);
    border: 1px solid var(--background);
    color: var(--black);
}

.btn-primary img {
    width: var(--icon-size);
    height: var(--icon-size);
    filter: var(--black-icon);
    margin-left: -2px;
}

.btn-primary:hover {
    color: var(--orange);
    border: 1px solid var(--orange);
}

.btn-primary:hover img {
    filter: var(--orange-icon);
}

.btn-primary:active {
    box-shadow: inset var(--shadow-black);
    transform: translateY(1px);
}

.btn-outlined {
    background-color: transparent;
    border: 1px solid var(--background);
    color: var(--black);
}

.btn-outlined img {
    filter: var(--black-icon);
}

.btn-outlined:hover {
    color: var(--orange);
    border: 1px solid var(--orange);
}

.btn-outlined:hover img {
    filter: var(--orange-icon);
}

.btn-outlined:active {
    box-shadow: inset var(--shadow-black);
    transform: translateY(1px);
}

.btn-icon {
    padding: 2px;
    width: calc(var(--icon-size) + 2px);
    height: calc(var(--icon-size) + 2px);
    filter: var(--black-icon);
    cursor: pointer;
    transition: var(--transition-btn);
}

.btn-icon.active,
.btn-icon:hover {
    border: 1px solid #000000;
    border-radius: var(--radius-general);
    filter: var(--orange-icon);
}

input,
select {
    font-family: var(--primary-font);
    font-size: var(--normal-text);
}

input[type="range"] {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: var(--padding-btn);
    border-radius: var(--radius-btn);
    color: var(--black);
    background-color: var(--background);
    border: none;
    outline: none;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: var(--grey);
}

input[type="text"].error-message {
    border: 1px solid var(--red);
}

.error-message {
    color: var(--red);
}

input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: calc(var(--icon-size) - 2px);
    height: calc(var(--icon-size) - 2px);
    border-radius: 50%;
    background-color: var(--background);
    border: 5px solid var(--background);
    cursor: pointer;
}

input[type="radio"]:checked {
    background-color: var(--background);
    border: 5px solid var(--orange);
}

select {
    appearance: none;
    -webkit-appearance: none;
    padding: var(--padding-btn);
    padding-right: calc(var(--padding-btn) + 20px);
    border-radius: var(--radius-btn);
    background-color: var(--background);
    color: var(--black);
    border: none;
    outline: none;
    background-image: url(../assets/icon/chevron_down.svg);
    background-repeat: no-repeat;
    background-position: right;
    background-size: 25px;
}

.toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle input {
    display: none;
}

.switch {
    position: absolute;
    cursor: pointer;
    width: 100%;
    height: 100%;
    background-color: transparent;
    border: 2px solid var(--background);
    border-radius: 26px;
    transition: var(--transition);
}

.switch::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: var(--background);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: var(--transition);
}

input:checked+.switch {
    background-color: var(--orange);
}

input:checked+.switch::before {
    transform: translateX(24px);
    background-color: var(--background);
}

::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--grey);
    border-radius: 10px;
}