@import url('https://fonts.googleapis.com/css2?family=Gilda+Display&display=swap');
@import url('https://fonts.googleapis.com/css2?family=MonteCarlo&display=swap');

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

:root {
    --primary-color: #c4a51b;
    --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: rgb(0, 0, 0);
    --secondary-background-color: hsl(from var(--primary-background-color) h s calc(l + 10));
    --tertiary-background-color: hsl(from var(--primary-background-color) h s calc(l + 5));

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

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    /* bloquea scroll horizontal */
}


body {
    overflow-x: hidden;
    background: linear-gradient(to bottom, var(--primary-background-color) 70%, var(--secondary-background-color) 90%);
    color: var(--tertiary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
}

i {
    font-size: 2.5rem;
    font-weight: normal;
}

.hero {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-self: center;
    align-content: flex-end;
    position: relative;
}

.hero-img {
    object-fit: cover;
    mask-image: linear-gradient(black 60%, transparent);
    width: 100%;

}

.hero-text {
    display: block;
    background: linear-gradient(to bottom right, var(--primary-color), hsl(from var(--primary-color)h s calc(l + 25)));
    background-clip: text;
    color: transparent;
    position: absolute;
    bottom: 20%;
    font-size: 3rem;
    font-family: MonteCarlo;
    word-spacing: 0.8rem;
    text-align: center;
    font-weight: normal;
    transition: all 0.3s ease;
    transform: translateY(100px);
    text-shadow: 0 0 2rem var(--tertiary-color);
}

.hero-text2 {
    display: block;
    background: linear-gradient(to bottom right, var(--primary-color), hsl(from var(--primary-color)h s calc(l + 25)));
    background-clip: text;
    color: transparent;
    position: absolute;
    bottom: 25%;
    font-size: 2.2rem;
    font-family: MonteCarlo;
    word-spacing: 0.8rem;
    text-align: center;
    font-weight: normal;
    transition: all 0.3s ease;
    transform: translateY(100px);
    text-shadow: 0 0 2rem var(--tertiary-color);
}

.hero-text.show {
    transform: translateY(0);
}

.hero-words.show {
    transform: translateY(0);
}

.btn-music {
    position: absolute;
    bottom: 5%;
    left: 50%;
    translate: -50% -50%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    width: 50px;
    height: 50px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 10;
}

.btn-music .bar {
    width: 7px;
    height: 20px;
    background: white;
    /* 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 */
}

.ri-arrow-down-s-line {
    display: block;
    margin-bottom: 4rem;
}

@keyframes float {
    0% {
        transform: translateY(-15px);
    }

    50% {
        transform: translateY(0px);
    }

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

.bg-img {
    position: absolute;
    opacity: 0.1;
    filter: blur(0.15rem);
    transform: translateY(30px);
    animation: fadeMove 6s ease forwards;
    max-width: none;
    pointer-events: none;
    overflow: hidden;
    filter: blur(2rem);
}

@keyframes fadeMove {
    to {
        opacity: 0.5;
        transform: translateY(0);
    }
}

.bg-img1 {
    width: 150%;
    top: 70%;
    left: -300px;
    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: 100%;
    top: 85%;
    right: -200px;
    animation-delay: 0.4s;
    /* aparece con retraso */
    animation-name: fadeMove, float;
    /* entrada + flotado */
    animation-duration: 2s, 5.5s;
    animation-timing-function: ease, ease-in-out;
    animation-fill-mode: forwards;
    animation-iteration-count: 1, infinite;
}

.bg-img3 {
    width: 150%;
    top: 40%;
    left: -300px;
    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 {
    width: 130%;
    top: 55%;
    rotate: -40deg;
    right: -250px;
    animation-delay: 0.4s;
    /* aparece con retraso */
    animation-name: fadeMove, float;
    /* entrada + flotado */
    animation-duration: 2s, 5.5s;
    animation-timing-function: ease, ease-in-out;
    animation-fill-mode: forwards;
    animation-iteration-count: 1, infinite;
}

.section-container {
    padding: 4rem 2rem 1rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    transform: translateY(100px);
}

.separator {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    align-items: center;
}

.separator i {
    font-size: 2rem;
}

.svg-cup,
.svg-calendar,
.svg-mail {
    stroke-width: 0.4px;
    width: 60px;
}

.line {
    width: 100%;
    height: 0.4px;
    background: white;
    opacity: 0.5;
}

.section-container.show {
    transform: translateY(0);
}

.section-icon {
    width: 55px;
}

a,
button {
    text-decoration: none;
    outline: none;
    border: none;
    display: block;
    text-align: center;
}

.btn {
    width: 100%;
    background: linear-gradient(to bottom right, var(--primary-color), hsl(from var(--primary-color)h s calc(l + 15)));
    color: rgb(13, 13, 13);
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-3px);
    cursor: pointer;
    box-shadow: 0 0 5px gold;
    background: linear-gradient(to bottom right, var(--primary-color), hsl(from var(--primary-color)h s calc(l + 25)));
    ;
}

.section-words {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.name {
    font-size: 2.8rem;
    font-family: Montecarlo;
    font-weight: normal;
    word-spacing: 1rem;
    background: linear-gradient(to bottom, var(--primary-color), hsl(from var(--primary-color)h s calc(l + 25)));
    background-clip: text;
    color: transparent;
}

.profile-img {
    align-self: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--tertiary-background-color);
    border: 1px solid var(--primary-color);
}

.section-words h3 {
    font-weight: normal;
    font-size: 1.1rem;
}

.cita {
    border-top: 1px solid rgba(255, 222, 33, 0.2);
    padding-top: 1rem;
    font-size: 1.1rem;
}

.author {
    font-size: 1.1rem;
}

.section-date {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

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

.date-container .date {
    background: linear-gradient(to bottom, var(--primary-color), hsl(from var(--primary-color) h s calc(l + 25)));
    font-weight: 600;
    font-size: 2.4rem;
    background-clip: text;
    color: transparent;
}

.full-calendar {
    width: 90%;
    display: flex;
    justify-content: space-around;
    margin-block: 1rem;
}

.disable-day {
    opacity: 0.5;
}

.the_day {
    position: relative;
    display: flex;
}

.birrete-icon {
    top: 50%;
    left: 50%;
    rotate: -25deg;
    translate: -50% -50%;
    position: absolute;
    display: block;
    z-index: -1;
    width: 35px;
    content-visibility: auto;
}

.the_day p:first-child {
    opacity: 0;
}

.day-numbers-container {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.date,
.room {
    margin-top: 2rem;
    font-size: 1.8rem;
    font-weight: normal;
}

.room-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.1rem;
}

.counter-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--primary-color);
}

.counter-container p {
    font-size: 1.5rem;
}

#counter {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    color: white;
    background: var(--tertiary-background-color);
    border: 1px solid var(--border-color);
    width: 100%;
    padding: 1rem;
    border-radius: 5px;
}

.time-box {
    width: 60px;
    border-radius: 5px;
    padding-inline: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-block: 0.5rem;
    background: var(--secondary-background-color);
}

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

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

.location-container {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
}

.location-container a {
    margin-top: 1rem;
}

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

.section-dresscode h2 {
    margin-bottom: 1rem;
}

.section-dresscode button {
    margin-top: 1rem;
}

.gallery {
    display: flex;
    overflow-y: auto;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    background: lightblue;
    scrollbar-width: none;
    border-radius: 5px;
}

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

.img {
    flex: 0 0 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    scroll-snap-align: start;
}

.section-confirm {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding-bottom: 4rem;
}

.confirm-text,
.last-msg {
    font-size: 1.8rem;
    font-weight: normal;
    color: var(--tertiary-color);
}

.section-confirm .section-icon {
    width: 50px;
}

.confirm-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.8rem 1rem;
    border-radius: 5px;
    background: var(--tertiary-background-color);
    border: 1px solid var(--border-color);
}

.confirm-form button {
    margin-top: 0.5rem;
}

input,
textarea,
select {
    width: 100%;
    background-color: var(--secondary-background-color);
    border: none;
    outline: none;
    padding: 0.5rem;
    border-radius: 5px;
    color: #f3f5ff;
    font-size: 1rem;
}

textarea {
    resize: none;
    height: 5rem;
}

.btn-invio {
    width: 120px;
    background: var(--tertiary-color);
    opacity: 0.5;
}

.footer {
    width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1.8rem;
    color: rgb(158, 158, 158);
    padding: 4rem 1rem 2rem 1rem;
    border-top: 1px solid rgb(86, 86, 86);
}

.footer>* {
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.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;
}

.desktop-overlay {
    display: none;
}

@media (width >=768px) {

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

    .desktop-overlay {
        display: flex;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

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

    body {
        background: var(--primary-background-color);
    }

    .btn-invio {
        opacity: 1;
        background: var(--primary-color);
    }

}

.oculto {
    display: none;
}