:root {
    --soft-white: #F5F5F5;
    --blush-beige: #f9eedc;
    --maroon: #710100;
    --brown: #643318;
    --soft-pink: #FED2E1;
    --bubblegum-pink: #ffb1b1;
    --passion-red: #DF0714;
    --soft-black: #0A0A0A;

    --font-primary: 'Lobster', cursive;
    --font-secondary: "Barlow Condensed", sans-serif;
    --font-body: 'Montserrat', sans-serif;

}


header {
    width: 100%;
    min-height: 100vh;
    background-color: var(--maroon);
    color: var(--soft-white);
    position: relative;
    overflow: hidden;
}

header .container__header {
    max-width: 1280px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    padding: 1.5rem 2rem;
}

:where(.header--txt, .header--img) {
    width: 50%;
}

.header--txt {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 1rem;
    animation: slideUp 0.4s ease-in;
}

.header--txt h1 {
    font-size: clamp(4.5rem, 3.697rem + 3.67vw, 7rem);
}

.header--txt h1 span {
    display: block;
    font-size: clamp(2.5rem, 1.858rem + 2.936vw, 4.5rem);
}

.header--txt p {
    max-width: 500px;
}

.header--img {
    position: relative;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.header--img img {
    object-fit: cover;
    width: 100%;
}

.header--img .img__section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.img__section .img__cake {
    margin-top: 4rem;
    max-width: 550px;
    cursor: pointer;
    animation: slideUp 0.4s ease-in;
}

.img__section .img__support {
    position: absolute;
    right: 0;
    width: clamp(2.813rem, 2.009rem + 4.018vw, 5.625rem);
    animation: slideDown 0.5s ease-out;
}

.img__section .img__support:nth-child(2n) {
    width: clamp(3.125rem, 1.875rem + 6.25vw, 7.5rem);
}

/* Img support */

.img__section .img__support:nth-child(2) {
    top: 10%;
    right: 0%;
}


.img__section .img__support:nth-child(3) {
    top: 10%;
    left: 5%;
}


.img__section .img__support:nth-child(4) {
    bottom: 40%;
    left: -5%;
}


.img__section .img__support:nth-child(5) {
    bottom: 5%;
    left: 5%;
}


.img__section .img__support:nth-child(6) {
    bottom: 5%;
    right: -5%;
}


.img__section .img__support:nth-child(7) {
    bottom: 40%;
    right: -10%;
}


@keyframes slideDown {
    0% {
        transform: translateY(-8rem);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(6rem);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}


.button__catalog {
    margin-top: .5rem;
    font-weight: bold;
    padding: 1rem 2rem;
    background-color: var(--blush-beige);
    color: var(--maroon);
    border-radius: 8px;
    transition: box-shadow .3s ease-out;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.button__catalog span.text {
    transition: transform .3s ease-out;
}

.button__catalog span.icon {
    height: 100%;
    position: absolute;
    right: -2rem;
    opacity: 0;
    transition: transform .2s ease-out,
        opacity .6s ease-out;
    background-color: var(--maroon);
    display: flex;
    align-items: center;
    padding: 0.2rem;
}

.button__catalog img {
    width: 25px;
}

.button__catalog:hover {
    box-shadow: 0px 0px 6px 3px #F5F5F5A5;

    span.text {
        transform: translateX(-.8rem);
    }

    span.icon {
        opacity: 1;
        transform: translateX(-2rem);
    }

    span img {
        animation: moveSideways .5s ease-in-out infinite;
    }
}

@keyframes moveSideways {
    0% {
        transform: translateX(-1.5px);
    }

    50% {
        transform: translateX(1.5px);
    }

    100% {
        transform: translateX(-1.5px);
    }
}

.section__light {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--blush-beige);
    width: 80%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.section__wave {
    position: absolute;
    top: 20rem;
    right: -15rem;
    height: 50px;
    transform: rotate(-32deg);
    width: 100%;
    z-index: 5;
    background-image: url(../images/support/waves__header.svg);
    background-position: top;
    background-repeat: repeat-x;
    background-size: contain;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

main>section {
    width: 100%;
    min-height: 100vh;
    background-color: var(--blush-beige);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 4rem 2rem;
}

main>section>* {
    width: 100%;
    text-align: center;
}

main>:where(.section__flavors, .section__costing) .title {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    position: relative;
}

:where(.section__flavors, .section__costing) h2 {
    color: var(--maroon);
    background-color: var(--blush-beige);
    font-size: clamp(2.5rem, 2.179rem + 1.468vw, 3.5rem);
    font-family: var(--font-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

:where(.section__flavors, .section__costing) .row {
    border-top: 6px dotted var(--maroon);
    width: 100%;
    position: absolute;
    height: 1px;
    animation: rowScroll;
    animation-timeline: view(30% auto);
}

@keyframes rowScroll {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }

}

main section>p {
    width: 100%;
    max-width: 500px;
}

.section__flavors .cards__container {
    width: 100%;
    max-width: 1024px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.section__flavors .cards__container .card {
    width: 270px;
    cursor: pointer;
    padding: 1rem;
    opacity: 0;
    transform: translateY(5rem);
}

.section__flavors .cards__container .card.animate {
    animation: fadeIn 1s ease-out;
    animation-fill-mode: forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0.5;
        transform: translateY(5rem);
    }

    to {
        opacity: 1;
        transform: translateY(0rem);
    }
}

.section__flavors .cards__container .card .card__info {
    gap: .7rem;
    transition: transform .6s ease-out;
}

.section__flavors .cards__container .card:hover .card__info {
    transform: translateY(1rem);
}

.section__flavors :where(.card, .card__info) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.section__flavors .cards__container .card .card__info h3 {
    font-size: 1.8rem;
    color: var(--brown);
}

.section__flavors .cards__container .card .card__info p {
    font-size: .9rem;
}

.section__flavors .cards__container .card .card__info span {
    font-family: var(--font-secondary);
    font-weight: bold;
    font-size: 1.5rem;
}

.section__flavors .cards__container .card img {
    width: 100%;
    transition: transform 0.6s cubic-bezier(1, -0.26, .14, 1.27),
        filter 0.6s cubic-bezier(1, -0.26, .14, 1.27);
}

.section__flavors .cards__container .card .card__img {
    position: relative;
}


.section__flavors .cards__container .card .img__cake {
    position: relative;
    z-index: 1;
}

.section__flavors .cards__container .card:hover .card__img .img__cake {
    transform: scale(1.1) translateY(-.5rem);
}

.section__flavors .cards__container .card:hover:nth-child(1) .img__cake {
    filter: drop-shadow(1px 1px 5px #edd600);
}

.section__flavors .cards__container .card:hover:nth-child(2) .img__cake {
    filter: drop-shadow(1px 1px 5px #c6b681);
}

.section__flavors .cards__container .card:hover:nth-child(3) .img__cake {
    filter: drop-shadow(1px 1px 5px #e56b2d);
}

.section__flavors .cards__container .card:hover:nth-child(4) .img__cake {
    filter: drop-shadow(1px 1px 5px #e44f54);
}

.section__flavors .cards__container .card:hover:nth-child(5) .img__cake {
    filter: drop-shadow(1px 1px 5px #020100);
}

.section__flavors .cards__container .card .img__support {
    position: absolute;
    inset: 0;
    transform: scale(0);
}

.section__flavors .cards__container .card:hover .card__img .img__support {
    transform: scale(1.3) translateY(-.5rem);
}

/* SECTION EVENTS */

.waves__section__events {
    width: 100%;
    height: 150px;
    background: url(../images/support/waves__section__events.svg) center / cover no-repeat;
}

.section__events {
    background-color: var(--maroon);
}

.section__events h2 {
    font-size: 4rem;
    font-weight: lighter;
}

.section__events p {
    color: var(--soft-white);
}

.section__events .container__gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 300px;
    grid-gap: 2rem;
    width: 100%;
    max-width: 1024px;
}

.section__events .container__gallery .gallery__item {
    overflow: hidden;
    border-radius: 1rem;
}

.section__events .container__gallery .gallery__item:not(:last-child) a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.section__events .container__gallery .gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter .5s ease-in-out;
}

.section__events .container__gallery .gallery__item:nth-child(1) {
    grid-area: 1 / 1 / 3 / 2;
}

.section__events .container__gallery .gallery__item:nth-child(2) {
    grid-area: 1 / 2 / 2 / 4;
}

.section__events .container__gallery .gallery__item:nth-child(3) {
    grid-area: 2 / 2 / 3 / 3;
}

.section__events .container__gallery .gallery__item:nth-child(4) {
    grid-area: 3 / 1 / 4 / 2;
}

.section__events .container__gallery .gallery__item:nth-child(5) {
    grid-area: 3 / 2 / 4 / 3;
}

.section__events .container__gallery .gallery__item:nth-child(6) {
    grid-area: 2 / 3 / 4 / 4;
    background-color: var(--blush-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

section.section__events .container__gallery .gallery__item:nth-child(6) h3 {
    color: var(--soft-black);
}

section.section__events .container__gallery .gallery__item:nth-child(6) a {
    margin-top: 2rem;
    display: block;
    padding: 1rem 2rem;
    border-radius: 1rem;
    width: 200px;
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

section.section__events .container__gallery .gallery__item:nth-child(6) a span {
    position: relative;
    z-index: 5;
    transition: color .7s ease-out;
}


section.section__events .container__gallery .gallery__item:nth-child(6) a:hover span {
    color: var(--soft-white);
}


.section__events .container__gallery .gallery__item .circle {
    padding: .3rem;
    border-radius: 50%;
    background-color: var(--maroon);
    position: absolute;
    z-index: 1;
    transition: transform .5s cubic-bezier(1, -0.26, .14, 1.27),
        padding 0.5s ease-in-out 0.4s;
}

.section__events .container__gallery .gallery__item .circle:nth-of-type(1) {
    transform: translateX(5rem);
}

.section__events .container__gallery .gallery__item .circle:nth-of-type(2) {
    transform: translateX(-5rem);
}

section.section__events .container__gallery .gallery__item:nth-child(6) a:hover .circle {
    padding: 10rem;
}

section.section__events .container__gallery .gallery__item:nth-child(6) a:hover .circle:nth-of-type(1) {
    transform: translateX(0rem);
}

section.section__events .container__gallery .gallery__item:nth-child(6) a:hover .circle:nth-of-type(2) {
    transform: translateX(0rem);
}

.section__events .container__gallery .gallery__item:not(:last-child) .item__info {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
    padding: 1.5rem 1rem;
    width: 100%;
    height: 100%;
    background: #0000004A;
    opacity: 0;
    transition: opacity .5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section__events .container__gallery .gallery__item:hover:not(:last-child) .item__info {
    opacity: 1;
}

.section__events .container__gallery .gallery__item:hover:not(:last-child) img {
    filter: blur(1rem);
}

.section__events .container__gallery .gallery__item h3 {
    color: var(--soft-white);
    font-weight: lighter;
    line-height: 1;
    font-size: 2.5rem;
}

/* SECTION COSTING  */

.container__costing {
    display: flex;
    width: 100%;
    max-width: 1280px;
    justify-content: center;
    padding: 1.5rem 2rem;
}

.container__costing .costing__item {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-width: 400px;
}

.container__costing .costing__input p {
    text-align: left;
}

.container__costing .costing__input>span {
    font-size: 2rem;
    font-family: var(--font-secondary);
    font-weight: 600;
}

.container__costing .costing__input>span:nth-of-type(2) {
    font-weight: 500;
    font-size: 1.7rem;
}

.container__costing .costing__input .details span {
    font-size: .8rem;
    display: block;
}

.input__container {
    position: relative;
    width: 100%;
    margin: 20px 0;
}

.input__container input {
    width: 100%;
    padding: 20px;
    font-size: 22px;
    border: 1px solid var(--brown);
    border-radius: 1rem;
    outline: none;
    background-color: transparent;
    transition: padding-top 0.2s ease, margin-top 0.2s ease;
}

.input__container input+label {
    position: absolute;
    left: 20px;
    top: 10px;
    color: var(--soft-black);
    font-size: clamp(1.2rem, 0.943rem + 1.174vw, 2rem);
    font-weight: 300;
    pointer-events: none;
    transition: all 0.2s ease;
    background-color: var(--blush-beige);
    font-family: var(--font-secondary);
    padding: 0 .5rem;
}

.input__container input:focus+label,
.input__container input:not(:placeholder-shown)+label {
    top: -15px;
    font-size: 1.5rem;
    color: #333;
}


.input__container input::placeholder {
    color: transparent;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.container__costing .costing__info {
    align-items: end;
    font-size: 1.1rem;
    min-width: 200px;
}


.container__costing .costing__info .costing__info__item {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 1rem;
}


.container__costing .costing__info .costing__info__item .precio {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 2rem;
}

.container__costing .costing__info .costing__info__item #precioFinal {
    font-size: 3.5rem;
}


@media screen and (min-width: 768px) {
    .img__section .img__cake {
        min-width: 300px;
    }
}


@media screen and (max-width: 480px) {
    .container__costing .costing__item {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {

    .container__costing {
        flex-wrap: wrap;
    }

    .container__costing .costing__item {
        width: 100%;
    }

    .input__container input+label {
        left: 0px;
        top: 10px;
        padding: 0 2rem;
    }

    .input__container input:focus+label,
    .input__container input:not(:placeholder-shown)+label {
        top: -15px;
        font-size: 1rem;
    }
}



@media screen and (max-width: 768px) {

    header {
        padding-top: 8rem;
        overflow: visible;
    }

    .header--txt h1 {
        line-height: 1;
    }

    header .container__header {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        min-height: initial;
    }

    :where(.header--txt, .header--img) {
        width: 100%;
    }

    header .section__light {
        display: none;
    }

    header .section__wave {
        transform: rotate(0deg);
        top: 100%;
        right: initial;
        left: 0;
        box-shadow: inset 0 2px 0 0 var(--maroon);
    }

    .img__section .img__cake {
        width: 80%;
        margin-top: 0;
    }

    /* SECTION EVENTS */

    .section__events h2 {
        font-size: 2.5rem;
    }

    .section__events .container__gallery {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .gallery__item {
        width: 300px;
    }


    section.section__events .container__gallery .gallery__item a {
        max-height: 200px;
    }

    .section__events .container__gallery .gallery__item:not(:last-child) .item__info {
        position: absolute;
        opacity: 1;
    }

    .section__events .container__gallery .gallery__item h3 {
        font-size: clamp(2rem, 1.839rem + 0.734vw, 2.5rem);
    }

    .section__events .container__gallery .gallery__item:not(:last-child) h3 {
        text-shadow: 1px 1px 2px var(--soft-black);
    }

    .section__events .container__gallery .gallery__item:last-child {
        padding: 1rem 0;
        gap: 1rem;
    }

    section.section__events .container__gallery .gallery__item:nth-child(6) a {
        margin-top: 0;
    }

    .container__costing .costing__item {
        min-width: 200px;
        width: 100%;
    }
}

@media screen and (min-width: 480px) and (max-width: 768px) {

    section.section__events .container__gallery .gallery__item {
        max-width: 180px;
    }

    section.section__events .container__gallery .gallery__item a {
        max-height: 300px;
    }

    .section__events .container__gallery .gallery__item:last-child {
        padding: 1rem;
        gap: 1rem;
    }


    header .container__header {
        justify-content: center;
        align-items: center;
    }

    header .container__header .header--img {
        width: 80%;
    }
}

@media screen and (max-width: 480px) {
    .img__section .img__cake {
        width: 250px;
    }

    .header--img {
        width: 80%;
    }

}