/*===== GOOGLE FONTS =====*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/*===== VARIABLES CSS =====*/
:root {
    --header-height: 3rem;

    /*========== Colors ==========*/
    --first-color: #e7435c;
    --first-color-alt: #da3562;
    --first-color-contact: #e7435c;
    --title-color: #161212;
    --text-color: #5B5757;
    --text-color-light: #8F8A8A;
    --body-color: #FEFBFB;
    --container-color: #FFF;
    --dark: #34495E;
    --light: #ffffff;
    --success: #0ABF30;
    --error: #E24D4C;

    /*========== Font and typography ==========*/
    --body-font: 'Poppins', sans-serif;
    --biggest-font-size: 2rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;

    /*========== Font weight ==========*/
    --font-semi-bold: 600;
    --font-bold: 700;

    /*========== Margenes ==========*/
    --mb-1: .5rem;
    --mb-2: 1rem;
    --mb-3: 1.5rem;
    --mb-4: 2rem;
    --mb-5: 2.5rem;
    --mb-6: 3rem;
    /*========== z index ==========*/

    --z-tooltip: 10;
    --z-fixed: 100;
}

@media screen and (min-width: 968px) {
    :root {
        --biggest-font-size: 3rem;
        --h2-font-size: 1.75rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
    }
}

/*========== BASE ==========*/
*,
::before,
::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/*========== Variables Dark theme ==========*/
body.dark-theme {
    --first-color-contact: #161212;
    --title-color: #F3F1F1;
    --text-color: #D1C7C8;
    --body-color: #251D1E;
    --container-color: #302728;
}

/*========== Button Dark/Light ==========*/
.change-theme {
    position: absolute;
    right: 1.5rem;
    top: 2.2rem;
    display: flex;
    color: var(--title-color);
    font-size: 2rem;
    cursor: pointer;
}

body {
    margin: var(--header-height) 0 0 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1,
h2,
h3,
ul,
p {
    margin: 0;
}

h1,
h2,
h3 {
    font-weight: var(--font-semi-bold);
    color: var(--title-color);
}

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

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/*========== CLASS CSS ==========*/
.section {
    padding: 4rem 0 2rem;
}

.section-title,
.section-title-center {
    font-size: var(--h2-font-size);
    color: var(--title-color);
    text-align: center;
    margin-bottom: var(--mb-3);
}

/*========== LAYOUT ==========*/
.l-main {
    overflow: hidden;
}

.bd-container {
    max-width: 968px;
    width: calc(100% - 3rem);
    margin-left: var(--mb-3);
    margin-right: var(--mb-3);
}

.bd-grid {
    display: grid;
    gap: 1.5rem;
}

.l-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: var(--body-color);
}

/*========== NAV ==========*/
.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media screen and (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: -100%;
        left: 0;
        right: 0;
        width: 90%;
        margin: 0 auto;
        padding: 2.5rem 0 0;
        text-align: center;
        background-color: var(--body-color);
        transition: .4s;
        box-shadow: 0 0 4px rgba(0, 0, 0, .1);
        border-radius: 2rem;
        z-index: var(--z-fixed);
    }
}

.nav__item {
    margin-bottom: var(--mb-3);
}

.nav__link,
.nav__logo,
.nav__toggle {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

.nav__logo:hover {
    color: var(--first-color);
}

.nav__logo img {
    margin-right: 100%;
    margin-top: 50%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.nav__link {
    transition: .3s;
}

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

.nav__toggle {
    font-size: 1.3rem;
    cursor: pointer;
}

/* Show menu */
.show-menu {
    top: calc(var(--header-height) + 1rem);
}

/* Active menu link */
.active-link {
    position: relative;
}

.active-link::before {
    content: '';
    position: absolute;
    bottom: -.75rem;
    left: 45%;
    width: 5px;
    height: 5px;
    background-color: var(--title-color);
    border-radius: 50%;
}

/* Change background header */
.scroll-header {
    box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
}

/* Scroll top */
.scrolltop {
    position: fixed;
    right: 1rem;
    bottom: -20%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .3rem;
    background: rgba(218, 37, 53, .5);
    border-radius: .4rem;
    z-index: var(--z-tooltip);
    transition: .4s;
    visibility: hidden;
}

.scrolltop:hover {
    background-color: var(--first-color);
}

.scrolltop__icon {
    font-size: 1.5rem;
    color: var(--body-color);
}

.show-scroll {
    visibility: visible;
    bottom: 1.5rem;
}

/*========== HOME ==========*/
.home__container {
    row-gap: .5rem;
}

.home__img {
    width: 280px;
    justify-self: center;
}

.home__img img {
    border-radius: .8rem;
}

.home__title {
    font-size: var(--biggest-font-size);
    font-weight: var(--font-bold);
    margin-bottom: var(--mb-2);
}

.topic__title {
    font-size: var(--biggest-font-size);
    font-weight: var(--font-bold);
    margin-bottom: var(--mb-2);
    color: var(--title-color);
}

.home__description {
    margin-bottom: var(--mb-3);
}

/*========== BUTTONS ==========*/
.button {
    display: inline-block;
    background-color: var(--first-color);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: .5rem;
    font-weight: var(--font-semi-bold);
    transition: .3s;
}

.button:hover {
    background-color: var(--first-color-alt);
}

.button-link {
    background: none;
    padding: 0;
    color: var(--first-color);
}

.button-link:hover {
    background-color: transparent;
    color: var(--first-color-alt);
}

/*========== BUDGET ==========*/
.budget__data {
    text-align: center;
}

.budget__description {
    margin-bottom: var(--mb-2);
}

.budget__img {
    width: 280px;
    justify-self: center;
}

.budget__img img {
    border-radius: .8rem;
}

/*========== DECORATION ==========*/
.decoration__container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.decoration__container img {
    border-radius: .8rem;
}

.decoration__data {
    text-align: center;
    padding: 1rem 1rem 2rem;
    background-color: var(--container-color);
    box-shadow: 0 2px 6px rgba(65, 11, 16, .15);
    border-radius: 1rem;
}

.decoration__data:hover {
    box-shadow: 0 3px 12px rgba(65, 11, 16, .15);
}

.decoration__img {
    width: 180px;
}

.decoration__title {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-1);
}

.lightbox {
    /* position: fixed; */
    z-index: 5;
    width: 100%;
    height: 100%;
    display: none;
    background: rgba(0, 0, 0, 0.65);
}

.lightbox.show {
    display: block;
}

.lightbox .gallery-box {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    padding: 20px;
    max-width: 850px;
    background: #fff;
    border-radius: 5px;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.gallery-box header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .buttons i {
    position: fixed;
    top: 5%;
    width: 40px;
    height: 40px;
    right: 40px;
    color: #fff;
    cursor: pointer;
    text-align: center;
    line-height: 40px;
    background: #6c757d;
    font-size: 1.2rem;
    display: inline-block;
}

/* .buttons i:last-child{
    margin-left: 10px;
    background: #6c757d;
} */

.img-gallery {
    width: 80%;
    margin: 100px auto 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
}

.img-gallery img {
    width: 100%;
    cursor: pointer;
    max-height: 65vh;
    max-width: 90vh;
}

.img-gallery img:hover {
    transform: scale(0.8) rotate(-15deg);
    border-radius: 20px;
    box-shadow: 0 32px 75px rgba(68, 77, 136, 0.2);
}

.full-img {
    width: 100%;
    height: 110vh;
    background: rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.full-img img {
    width: 90%;
    max-width: 500px;
}

.full-img span {
    position: absolute;
    top: 10%;
    right: 5%;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
}

.see_more_decoration{
    margin-top: 5%;
    text-align: center;
}

.see_more_decoration button{
    border: none;
}

/*========== CONTACT ==========*/
.contact {
    background-color: var(--first-color-contact);
}

.contact__title,
.contact__description {
    color: #fff;
}

.contact__description {
    text-align: center;
    margin-bottom: var(--mb-4);
}

.contact__direction {
    display: block;
    justify-content: space-between;
    background-color: #fff;
    padding: .5rem;
    border-radius: .5rem;
    width: 100%;
    height: 90%;
}

.contact_textarea {
    margin-top: 20px;
    display: block;
    justify-content: space-between;
    width: 100%;
    padding: 1px;
    border-radius: .5rem;
    height: 15%;
    background-color: #fff;
}

.contact_textarea a {
    margin-left: 25px;
}

.contact__input {
    width: 70%;
    outline: none;
    border: none;
    text-decoration: none;
    font-size: var(--normal-font-size);
    font-family: var(--body-font);
}

.contact__input::placeholder {
    font-family: var(--body-font);
}

.contact__text__area {
    margin-top: 20px;
    width: 70%;
    outline: none;
    border: none;
    text-decoration: none;
    font-size: var(--normal-font-size);
    font-family: var(--body-font);
}

.contact__text__area::placeholder {
    font-family: var(--body-font);
}

.contact__img {
    width: 280px;
    justify-self: center;
}

.contact__img img {
    border-radius: 150px;
}

.social__content {
    display: none;
    justify-content: center;
    text-align: center;
}

.social__content a {
    font-size: 1.5rem;
    color: var(--container-color);
}

.social__content a:hover {
    color: var(--text-color-light);
}

/*========== FOOTER ==========*/
.footer__container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer__logo {
    color: var(--title-color);
}

.footer__title {
    margin-bottom: var(--mb-2);
}

.footer__logo,
.footer__title {
    font-size: var(--h3-font-size);
}

.footer__link {
    display: inline-block;
    margin-bottom: .75rem;
    color: var(--text-color);
}

.footer__link:hover {
    color: var(--first-color);
}

.footer__social {
    font-size: 1.5rem;
    color: var(--title-color);
    margin-right: var(--mb-3);
}

.footer__social:hover {
    color: var(--first-color);
}

.footer__copy {
    text-align: center;
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    margin-top: 4rem;
}

/*========== MEDIA QUERIES ==========*/

/* For full-screen images on small screens */
@media screen and (max-width: 400px) {

    .home__img,
    .budget__img,
    .contact__img {
        width: 50%;
    }

    .contact__img img {
        border-radius: 180px;
    }

    .lightbox .gallery-box {
        position: absolute;
        left: 50%;
        top: 67%;
        width: 100%;
        padding: 20px;
        z-index: 2;
        background-color: var(--body-color);
    }

    header .buttons i {
        position: fixed;
        top: 0;
        width: 30px;
        height: 30px;
        right: 40px;
        color: #fff;
        cursor: pointer;
        text-align: center;
        line-height: 30px;
        background: #6c757d;
        font-size: 1rem;
        display: inline-block;
    }

    .topic__title {
        margin-top: 20px;
    }

    .img-gallery {
        width: 80%;
        margin: 35px auto 50px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        grid-gap: 30px;
    }

    .social__content {
        display: block;
    }

    .button {
        margin-top: 10px;
    }
}

@media screen and (min-width: 576px) {

    .home__container,
    .budget__container,
    .contact__container {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }

    .home__container {
        padding: 5rem 0 0;
    }

    .home__img {
        order: 1;
    }

    .section-title-center,
    .budget__data,
    .contact__description {
        text-align: initial;
    }

    .home__img,
    .budget__img,
    .contact__img {
        width: 100%;
    }

    .budget__img {
        order: -1;
    }
}

@media screen and (min-width: 768px) {
    body {
        margin: 0;
    }

    .section {
        padding-top: 7rem;
    }

    .nav {
        height: calc(var(--header-height) + 1.5rem);
    }

    .nav__list {
        display: flex;
        align-items: center;
    }

    .nav__item {
        margin-left: var(--mb-5);
        margin-bottom: 0;
    }

    .nav__toggle {
        display: none;
    }

    .change-theme {
        position: initial;
        margin-left: var(--mb-4);
    }

    .home__container {
        padding: 7rem 2rem 0;
    }

    .budget__container {
        padding: 0 2rem;
    }

    .contact {
        background: none;
    }

    .contact__container {
        background-color: var(--first-color-contact);
        padding: 2rem;
        border-radius: 1.5rem;
    }
}

@media screen and (min-width: 968px) {
    .bd-container {
        margin-left: auto;
        margin-right: auto;
    }

    .home__img,
    .budget__img,
    .contact__img {
        width: 280px;
    }

    .home__container,
    .budget__container,
    .contact__container {
        column-gap: 3rem;
    }
}

/* Notifications */
.notifications {
    position: fixed;
    top: 30px;
    right: 20px;
    z-index: 110;
}

.notifications :where(.toast, .column) {
    display: flex;
    align-items: center;
}

.notifications .toast {
    position: relative;
    overflow: hidden;
    width: 400px;
    list-style: none;
    border-radius: 4px;
    padding: 16px 17px;
    margin-bottom: 10px;
    background: var(--text-color-light);
    justify-content: space-between;
    animation: show_toast 0.3s ease forwards;
}

&:not(.showing):not(.show) {
    opacity: 1;
}

@keyframes show_toast {
    0% {
        transform: translate(100%);
    }

    40% {
        transform: translate(-5%);
    }

    80% {
        transform: translate(0%);
    }

    100% {
        transform: translate(-10px);
    }
}

.notifications .toast.hide {
    animation: hide_toast 0.3s ease forwards;
}

@keyframes hide_toast {
    0% {
        transform: translate(-10px);
    }

    40% {
        transform: translate(0%);
    }

    80% {
        transform: translate(-5%);
    }

    100% {
        transform: translate(calc(100% + 20px));
    }
}

.toast::before {
    position: absolute;
    content: "";
    height: 3px;
    width: 100%;
    bottom: 0px;
    left: 0px;
    animation: progress 5s linear forwards;
}

@keyframes progress {
    100% {
        width: 0%;
    }
}

.toast .column i {
    font-size: 1.75rem;
}

.toast.success::before {
    background: var(--success);
}

.toast.error::before {
    background: var(--error);
}

.toast.success .column i {
    color: var(--success);
}

.toast.error .column i {
    color: var(--error);
}

.toast .column span {
    font-size: 1.07rem;
    margin-left: 12px;
    color: #fff;
}

.toast i:last-child {
    color: #fff;
    cursor: pointer;
}

.toast i:last-child:hover {
    color: var(--dark);
}

/* CAROUSEL STYLES */

.carousel_container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 0 35px;
    background: var(--body-color);
    display: none;
}

.wrapper{
    max-width: 1100px;
    width: 100%;
    position: relative;
}

.wrapper i{
    height: 50px;
    width: 50px;
    background: var(--first-color);
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 50%;
    font-size: 1.25rem;
    transform: translateY(-50%);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.23);
}

.wrapper i:first-child{
    left: -22px;
}
.wrapper i:last-child{
    right: -22px;
}

.wrapper .carousel{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 3) - 12px);
    gap: 16px;
    overflow: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: 0;
}

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

.carousel :where(.card, .img){
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel.no-transition{
    scroll-behavior: auto;
}

.carousel.dragging{
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.carousel.dragging .card{
    cursor: grab;
    user-select: none;
}

.carousel .card{
    align-items: center;
    scroll-snap-align: start;
    height: 342px;
    list-style: none;
    background: var(--container-color);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    padding-bottom: 15px;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
}

.card .img{
    /* background: var(--first-color); */
    width: 240px;
    height: 148px;
    /* border-radius: 50%; */
}

.card .img img{
    margin-top: 60%;
    width: 300px;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    border: 4px solid #fff;
}

.card h2{
    align-items: flex-end;
    font-weight: 500;
    font-size: 1rem;
    margin: 30px 0 5px;
}

.card span{
    color: #6a6d78;
    font-size: 1.31rem;
}

@media screen and (max-width: 900px){
    .wrapper .carousel{
        grid-auto-columns: calc((100% / 2) - 9px);
    }
}

@media screen and (max-width: 600px){
    .wrapper .carousel{
        grid-auto-columns: 100%;
    }
}