@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ephesis&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Red Hat Display;
}

:root {
    --max-width: 1000px;
    --min-width: 300px;
    --optimus-width: 100vw;

    --primary-color: #eb5367;
    --secondary-color: hsl(from var(--primary-color)h s calc(l + 12));
    --tertiary-color: #ffffff;

    --title-color: var(--primary-color);
    --subtitle-color: var(--secondary-color);
    --paragraph-color: #f3f5ff;

    --primary-background-color: #eeeeee;
    --secondary-background-color: hsl(from var(--primary-background-color) h s calc(l + 5));
    --tertiary-background-color: hsl(from var(--primary-background-color) h s calc(l + 10));

    --border-color: hsl(from var(--primary-background-color) h s calc(l + 18));
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    min-height: 100%;
    width: 100%;
    background: #fff7f5;
}

a,
button {
    font-size: 1.1rem;
    text-decoration: none;
}

.ubication__btn {
    width: 100%;
    outline: none;
    border: none;
    cursor: pointer;

    background: var(--primary-color);
    min-width: 180px;
    padding: 0.5rem 2rem;
    border-radius: 4px;
    color: var(--tertiary-color);
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 1;
}

.ubication__btn.show {
    opacity: 1;
    transform: translateY(0);
}

.ubication__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 8px var(--primary-color);
}

.hero,
.section-container,
.footer {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 6rem 0;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero img {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    height: 100%;
    mask-image: linear-gradient(black 50%, transparent);
}

.hero-content {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.hero-content h1 {
    display: inline-block;
    width: 110%;
    background: #ee6577;
    background-clip: text;
    color: transparent;
    letter-spacing: 3px;
    font-family: Ephesis;
    font-size: 4.6rem;
    line-height: 4.2rem;
    font-weight: normal;
    text-shadow: 0 0 25px var(--primary-color);
    text-align: center;
    z-index: 1;
}

.btn-music {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    width: 50px;
    height: 50px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.btn-music .bar {
    width: 7px;
    height: 20px;
    background: #ee6577;
    /* cámbialo según tu diseño */
    border-radius: 2px;
    animation: equalizer 0.6s infinite;
    animation-play-state: paused;
    /* por defecto quieto */
}

.btn-music .bar:nth-child(1) {
    animation-delay: 0s;
}

.btn-music .bar:nth-child(2) {
    animation-delay: 0.2s;
}

.btn-music .bar:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes equalizer {

    0%,
    100% {
        height: 12px;
    }

    50% {
        height: 24px;
    }
}

.btn-music.active .bar {
    animation-play-state: running;
    /* cuando está activo, se mueven */
}


.section-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 1rem;
    padding-bottom: 2rem;
    position: relative;
    overflow: hidden;
    content-visibility: auto;
}

.section-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-between;
    padding: 3rem 2rem;
    max-width: var(--max-width);
}

.section-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #ee6577;
    /* background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.25)); */
    padding: 1rem;
    border-radius: 4px;
}

.section__title {
    font-family: Ephesis;
    color: #ee6577;
    font-size: 3.5rem;
    font-weight: normal;
    text-align: center;
    line-height: 3.55rem;
}

.section-text p {
    margin-top: 1.5rem;
    font-size: 1.25rem;
}

.ornament {
    width: 100%;
}

.button {
    width: 100%;
    outline: none;
    border: none;
    cursor: pointer;

    background: var(--primary-color);
    min-width: 180px;
    padding: 0.5rem 2rem;
    border-radius: 4px;
    color: var(--tertiary-color);
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.button.show {
    opacity: 1;
    transform: translateY(0);
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 8px var(--primary-color);
}

.section-content h2,
.section-content p {
    display: block;
}

.section-data-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    padding-bottom: 2rem;
    justify-content: space-around;
    background-size: cover;
    background-position: center;
}

.section-data-container .section-content .text-content {
    height: 100%;
}

.text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
}

.data-container__text {
    font-family: Ephesis;
    font-size: 2.5rem;
    font-weight: normal;
    text-align: center;
    color: #ee6577;
    padding: 1.5rem;
    border-radius: 5px;
}

.section-data__date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    gap: 0.5rem;
}

.date {
    color: #ee6577;
    font-size: 3.2rem;
    font-weight: normal;
    font-family: Ephesis;
}

.counter-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.faltan__text {
    color: #ee6577;
    font-size: 1.5rem;
    text-align: center;
    font-weight: normal;
}

#counter {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    color: #ee6577;
    width: 100%;
    padding: 1rem;
    border-radius: 5px;
}

.time-box {
    width: 60px;
    border-radius: 5px;
    padding-inline: 1rem;
    padding-block: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-number {
    font-size: 1.7rem;
    font-weight: bold;
}

.time-label {
    font-size: 1.2rem;
}

.section-ubications {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    padding-bottom: 2rem;
    justify-content: space-around;
    background-image: url();
    background-size: cover;
    background-position: center;
}

.section-ubications .section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    color: #ee6577;
    text-align: center;
    gap: 0.5rem;
}

.ubication-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.ubication__btn {
    background: var(--primary-color);
    text-align: center;
    color: white;
}

.number {
    font-size: 6rem;
    align-self: end;
}

.section-gift {
    background-image: url();
    background-size: cover;
    background-position: top;
    position: relative;
}

.gitf-buttons-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-dresscode {
    background-image: url();
    background-position: top;
    background-size: cover;
}

.header-ilustration,
.dresscode-ilustration,
.activities-ilustration {
    width: 60px;
}

.fork {
    rotate: 75deg;
}

.section-dresscode .section-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.section-dresscode .section-text p {
    font-size: 1.6rem;
    margin-top: 0;
}

.dresscode-gender-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.reserved-colors {
    display: flex;
    gap: 0.5rem;
}

.reseved__color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(24, 24, 24, 0.25);
}

.reseved__color1 {
    background: #fcb8ed;
    border: 2px solid hsl(from var(--primary-color) h s calc(l + 20));
}

.reseved__color2 {
    background: white;
    border: 2px solid hsl(from var(--primary-color) h s calc(l + 20));
}

.reseved__color3 {
    background-color: #dbd2ab;
    border: 2px solid hsl(from var(--primary-color) h s calc(l + 20));
}

.section-gallery {
    background-image: url();
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 0;
}

.bg-img {
    position: absolute;
    opacity: 0;
    transform: translateY(30px);
    /* salen un poco movidos */
    animation: fadeMove 2s ease forwards;
    /* animación de entrada */
}

/* Animación de entrada */
@keyframes fadeMove {
    to {
        opacity: 0.3;
        /* o el valor que quieras */
        transform: translateY(0);
    }
}

.bg-img1 {
    opacity: 0.5;
    width: 50%;
    left: -90px;
    bottom: -10px;
    animation-delay: 0.5s;
    /* aparece con retraso */
    animation-name: fadeMove, float;
    /* entrada + flotado */
    animation-duration: 2s, 6s;
    animation-timing-function: ease, ease-in-out;
    animation-fill-mode: forwards;
    animation-iteration-count: 1, infinite;
}

.bg-img2 {
    width: 50%;
    top: 10px;
    right: -100px;
    opacity: 0.2;
    animation-delay: 1s;
    /* un poco más de retraso */
    animation-name: fadeMove, float;
    animation-duration: 2s, 8s;
    animation-timing-function: ease, ease-in-out;
    animation-fill-mode: forwards;
    animation-iteration-count: 1, infinite;
}

/* Flotado infinito */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

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

.bg-img3 {
    opacity: 1;
    width: 40%;
    bottom: 80px;
    rotate: 5deg;
    left: 200px;
    animation-delay: 0.5s;
    /* aparece con retraso */
    animation-name: fadeMove, float;
    /* entrada + flotado */
    animation-duration: 2s, 6s;
    animation-timing-function: ease, ease-in-out;
    animation-fill-mode: forwards;
    animation-iteration-count: 1, infinite;
}

.bg-img4 {
    opacity: 0.2;
    width: 80%;
    bottom: 30px;
    rotate: 0deg;
    left: -180px;
    animation-delay: 0.5s;
    /* aparece con retraso */
    animation-name: fadeMove, float;
    /* entrada + flotado */
    animation-duration: 2s, 6s;
    animation-timing-function: ease, ease-in-out;
    animation-fill-mode: forwards;
    animation-iteration-count: 1, infinite;
}

.bg-img5 {
    opacity: 0.5;
    width: 50%;
    bottom: -90px;
    rotate: 25deg;
    left: -90px;
    animation-delay: 0.5s;
    /* aparece con retraso */
    animation-name: fadeMove, float;
    /* entrada + flotado */
    animation-duration: 2s, 6s;
    animation-timing-function: ease, ease-in-out;
    animation-fill-mode: forwards;
    animation-iteration-count: 1, infinite;
}

.bg-img6 {
    opacity: 0.5;
    width: 50%;
    rotate: -55deg;
    bottom: -100px;
    right: -180px;
    animation-delay: 0.5s;
    /* aparece con retraso */
    animation-name: fadeMove, float;
    /* entrada + flotado */
    animation-duration: 2s, 6s;
    animation-timing-function: ease, ease-in-out;
    animation-fill-mode: forwards;
    animation-iteration-count: 1, infinite;
}

.bg-img7 {
    opacity: 0.2;
    width: 80%;
    rotate: -10deg;
    top: 10px;
    right: -150px;
    animation-delay: 0.5s;
    /* aparece con retraso */
    animation-name: fadeMove, float;
    /* entrada + flotado */
    animation-duration: 2s, 6s;
    animation-timing-function: ease, ease-in-out;
    animation-fill-mode: forwards;
    animation-iteration-count: 1, infinite;
}

.bg-img8 {
    opacity: 0.5;
    width: 50%;
    top: 10%;
    rotate: 50deg;
    left: -180px;
    animation-delay: 0.5s;
    /* aparece con retraso */
    animation-name: fadeMove, float;
    /* entrada + flotado */
    animation-duration: 2s, 6s;
    animation-timing-function: ease, ease-in-out;
    animation-fill-mode: forwards;
    animation-iteration-count: 1, infinite;
}

.section-gallery .section-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
}

/* .section-gallery-text {
  width: 100%;
} */

.gallery {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.gallery-imgs {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.gallery-imgs::-webkit-scrollbar {
    display: none;
}

.gallery-imgs img {
    flex: 0 0 100%;
    /* cada imagen ocupa exactamente 1 “pantalla” */
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
}

.arrow {
    display: flex;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    user-select: none;
}

.arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.arrow i {
    font-size: 1.2rem;
    color: white;
}

.gallery-controls {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem;
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 5%;
    translate: -50%;
}


.gallery-controls__inputs {
    display: flex;
    gap: 0.5rem;
}

.gallery-controls__inputs input {
    display: none;
}

.gallery-controls__inputs label {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: gray;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
}

.gallery-controls__inputs input:checked+label {
    background: var(--primary-color);
}

.arrow {
    display: none;
}

.section-activities {
    background-image: url();
    background-position: center;
    background-size: cover;

}

.section-confirm {
    background-image: url(assets_pro/background2.webp);
    background-position: bottom;
    background-size: cover;
}

.section-confirm .section-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.confirm-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    gap: 1rem;
    padding: 1rem;
    width: 100%;
    background: rgba(238, 101, 119, 0.4);
}

.confirm-form input,
.confirm-form textarea,
.confirm-form select,
.confirm-form .form-button {
    width: 100%;
}

.confirm-form input,
.confirm-form select,
.confirm-form textarea {
    height: 2rem;
    padding: 0.5rem;
    border-radius: 4px;
    outline: none;
    border: none;
}

.confirm-form textarea {
    height: 5rem;
    resize: none;
    overflow: auto;
}

.section-content {
    transition: all 0.3s ease;
    transform: translateY(200px);
    opacity: 0;
}

.section-content.show {
    transform: translateY(0);
    opacity: 1;
}

.footer {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    border-top: 1px solid rgba(238, 101, 119, .5);

    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    align-items: center;

    padding: 1.5rem;
    background: white;
    color: black;

    scroll-snap-align: start;
    scroll-snap-stop: always;

    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.footer>* {
    font-family: Poppins;
    font-size: 0.9rem;
}

.footer.show {
    transform: translateY(0);
    opacity: 1;
}

.footer img {
    width: 100px;
}

.footer__button {
    background: var(--secondary-color);
    padding: 0.5rem 1rem;
    width: 120px;
    display: block;
    text-align: center;
    color: var(--tertiary-color);
    border-radius: 4px;
}

/* Modal */

.modal-overlay {
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    position: fixed;

    display: flex;
    justify-content: center;
    align-items: center;
}

.modal {
    background: hsl(from rgb(255, 253, 245)h s calc(l + 5));
    width: 90vw;
    max-width: 400px;
    border-radius: 4px;
    padding: 1rem;
    color: white;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    position: relative;

    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(100px);
}

.subtitle-modal {
    color: #ee6577;
}

.modal.show {
    opacity: 1;
    transform: translateY(0);
}

.modal button {
    width: auto;
}

.modal-buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.method-container {
    text-align: center;
}

.method-container img {
    width: 100%;
    max-width: 150px;
}

.copy__btn {
    border: none;
    outline: none;
    background: var(--primary-background-color);
    padding: 0.3rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.copy__btn:hover {
    transform: translateY(-3px);
}

.account-number-container {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
}

.modal-dresscode {
    height: 70vh;
    max-height: 600px;
}

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

.pinterest__btn {
    border: none;
    padding: 0.5rem;
    width: 35px;
    height: 35px;
    background: rgb(231, 11, 44);
    color: white;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pinterest__btn:hover {
    transform: translateY(-3px);
    background: rgb(233, 29, 59);
}

.ri-pinterest-fill {
    font-size: 1.5rem;
}

.dresscode-imgs-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

.dresscode-imgs-container img {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    height: 100%;
    aspect-ratio: 3/4;
    background: black;
    border-radius: 4px;
}

.activities-container {
    width: 100%;
    height: 380px;
    padding: 1rem;
    overflow-y: scroll;
    display: grid;
    grid-template-columns: 1px 1fr;
    grid-template-areas:
        "line activitie1"
        "line activitie2"
        "line activitie3"
        "line activitie4";
    gap: 1rem;
    position: relative;
}

.time-line {
    width: 1px;
    height: 100%;
    background: linear-gradient(transparent, var(--primary-color) 10%, var(--primary-color) 90%, transparent);
    grid-area: line;
}

.circle {
    width: 10px;
    height: 10px;
    background: linear-gradient(to top right, var(--primary-color), hsl(from var(--primary-color)h s calc(l + 30)));
    border-radius: 50%;
    position: absolute;
    left: 12px;
}

.activitie {
    padding: 1rem;
    background: hsl(from rgb(255, 253, 245)h s calc(l - 2));
    display: flex;
    color: white;
    border-radius: 6px;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
    transition: all 0.3s ease;
    opacity: 1;
}

/* .activitie.show{
  opacity: 1;
} */

.activitie1 {
    grid-area: activitie1;
}

.activitie2 {
    grid-area: activitie2;
}

.activitie3 {
    grid-area: activitie3;
}

.activitie4 {
    grid-area: activitie4;
}

.button-close-modal-x {
    display: none;
}

.end-msg {
    color: #ee6577;
    font-family: Ephesis;
    font-weight: normal;
    font-size: 3rem;
}

.main-overlay {
    display: none;
}


@media (width >=768px) {

    .hero,
    .section-container,
    .footer {
        display: none;
    }

    .main-overlay {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        position: fixed;
        width: 100vw;
        height: 100vh;
        background: white;
        color: var(--primary-color);
    }

    .main-overlay i {
        font-size: 2rem;
    }

    .main-overlay img {
        width: 100px;
    }

}

.oculto {
    display: none;
}