/* General */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body,
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    box-sizing: border-box;
    /* overflow: hidden; */
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    background: #1e7b67;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.container-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    justify-content: space-evenly;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.logo h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    margin: 0;
    font-weight: normal;
}

.icon {
    font-size: 1.5rem;
    color: white;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: 'Dosis', sans-serif;
}

nav ul li a {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
}


nav ul li a:hover {
    color: #ffdddd;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    color: #1e7b67;
    z-index: 200;
}

/* seccion 1 */
.welcome-married {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh;
    width: 100%;
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    object-fit: cover;
}


.heart-img {
    max-width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.savedate {
    position: absolute;
}

.savedate h4 {
    font-size: 2rem;
    font-family: 'Dosis', sans-serif;
    color: #f5f9f8;
    text-transform: uppercase;
}

.savedate h2 {
    font-size: 5vw;

    font-family: 'Great Vibes', cursive;
    padding: 4px 20px 2px;
    display: inline-block;
    position: relative;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    margin-bottom: 0;
    font-weight: normal;
}

.savedate p {
    font-size: 2rem;
    line-height: 1.2;
    color: #f1fffc;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    margin: 0;
}

.carousel-btn {
    background-color: rgba(127, 214, 195, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 10;
    border: 5px solid transparent;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.3s ease;
}

.arrows {
    color: white;
}

.carousel-btn:hover {
    background-color: #1e7b67;
}

.carousel-btn.left {
    left: 20px;
    margin-left: 10px;
}

.carousel-btn.right {
    right: 20px;
    margin-right: 10px;
}

.welcome-married:hover .carousel-btn {
    opacity: 1;
    pointer-events: auto;
}

.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: none;
    justify-content: center;
    gap: 10px;
    z-index: 5;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: #ffffff;
}


/* seccion 2 */
.day-married {
    display: flex;
    align-items: center;
    padding-top: 100px;
    max-width: 1140px;
    margin: 0 auto;
}

.day-title {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background-image: linear-gradient(rgba(94, 154, 140, 0.88), rgba(94, 154, 140, 0.88)), url('./img/coundown-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 40%;
}

.container-day-title {
    padding: 18px 0;
}

.container-day-title h2 {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 45px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 17.25px 45px;
    margin: 0 23px;
    font-weight: normal;
    font-family: "Great Vibes", cursive;
}

.container-day-title span {
    font-family: "Dosis", cursive;
    font-size: 1.2rem;
}

.day-timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: #5e9a8d;
    padding: 17.5px;
    font-size: 60px;
    font-family: 'Great Vibes', cursive;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

#days,
#hours,
#minutes,
#seconds {
    font-size: 60px;
    font-family: 'Great Vibes', cursive;
    color: white;
}

.timer-day,
.timer-hours,
.timer-minutes,
.timer-seconds {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 17.25px 20px;
    font-weight: normal;
    align-items: center;
    justify-content: center;
}

.day-timer span {
    font-family: 'Dosis';
    font-size: 14px;
    text-transform: uppercase;
}

.wedding-day-message {
    display: flex;
    background: #5e9a8d;
    justify-content: center;
    padding: 1rem;
    font-size: 5rem;
    font-family: 'Great Vibes', cursive;
    color: white;
    width: 100%;
    box-sizing: border-box;
}




/* seccion 3 */
.ours {
    padding: 100px 0px 100px 0px;
}

.container-ours {
    justify-items: center;
    place-content: center;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.container-ours h2 {
    position: relative;
    font-size: 55px;
    font-family: 'Great Vibes', cursive;
    color: #649e93;
    padding-bottom: 38px;
    margin-bottom: 30px;
    margin-top: 0px;
    font-weight: 100;
}

.container-ours h2::after {
    background-image: url('./img/title-bg.png');
    position: absolute;
    content: "";
    width: 230px;
    height: 59px;
    bottom: 10px;
    left: 0;
    right: 0;
    margin: auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.img-couples {
    display: flex;
    padding-top: 20px;
    max-width: 1140px;
}

.img-couples div {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
    text-align: center;
}

.img-couples img {
    border: none;
    border-radius: inherit;
    position: relative;
    margin-bottom: 0px;
    padding-bottom: 30px;
    height: auto;
    max-width: 100%;
    box-shadow: none;
    object-fit: cover;
}


.img-couples h4 {
    font-family: 'Dosis', sans-serif;
    margin: 0;
    padding: 10px 0;
    font-size: 21px;
    color: #5e9a8e;
}

.img-couples p {
    margin-bottom: 0px;
    padding-bottom: 20px;
    padding-top: 5px;
    font-size: 1.125rem;
    color: #838383;
    line-height: 1.6em;
    margin: 0 0 1.5em;
}

.middle-img img {
    height: -webkit-fill-available;
    object-fit: cover;
}

/* seccion 4 */
.big-day {
    background-image: url('./img/info.jpeg');
    background-position: center 70%;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.opacity {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(69, 110, 102, 0.9) 100%);
    z-index: 1;
}

.container-big-day {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.container-big-day h2 {
    font-size: 3rem;
    color: #fff;
    font-family: 'Great Vibes', cursive;
    font-weight: normal;
}

.container-big-day p {
    font-size: 1rem;
    padding: 20px 50px 30px;
    line-height: 1.6em;
    color: #fff;
    max-width: 700px;
    margin: auto;
    margin: auto;
    font-family: 'Dosis', sans-serif;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-group .btn {
    padding: 12px 28px;
    font-size: 16px;
    border: none;
    border-radius: 30px;
    background-color: white;
    color: #456E66;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Dosis', sans-serif;
    text-decoration: none;
}

.btn-group .btn:hover {
    background-color: #649e93;
    color: white;
}

/* seccion 5 */
.our-history {
    padding: 0 0 70px 0;
}

.container-history {
    display: flex;
    justify-content: center;
    padding-top: 100px;
    max-width: 1140px;
    justify-self: center;
    margin: auto;
}

.container-history h2 {
    position: relative;
    font-size: 55px;
    font-family: 'Great Vibes', cursive;
    color: #649e93;
    padding-bottom: 38px;
    margin-bottom: 30px;
    margin-top: 0px;
    font-weight: 100;
}

.container-history h2::after {
    background-image: url('./img/title-bg.png');
    position: absolute;
    content: "";
    width: 230px;
    height: 59px;
    bottom: 10px;
    left: 0;
    right: 0;
    margin: auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.timeline {
    position: relative;
    max-width: 1140px;
    margin: auto;
    padding: 50px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    top: 44px;
    left: 50%;
    height: 97%;
    width: 3px;
    background: #E8EFED;
}

.timeline-item {
    padding: 20px 30px;
    position: relative;
    width: 50%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.timeline-item.left {
    left: 0;
    justify-content: flex-end;
    text-align: right;
    padding-right: 55px;
}

.timeline-item.right {
    left: 50%;
    justify-content: flex-start;
    text-align: left;
    padding-left: 55px;
}

.timeline-item img {
    width: 90%;
    height: 50vh;
    border-radius: 5px;
    margin-right: 20px;
    object-fit: cover;
}

.timeline-item.left img {
    margin-right: 0;
    margin-left: 20px;
}

.timeline-item .content {
    max-width: 450px;
}

.timeline-item h3 {
    margin: 0;
    font-size: 20px;
    color: #649e93;
}

.timeline-item .date {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

.timeline-item p {
    font-size: 14px;
    color: #444;
}

.timeline-item a {
    font-size: 12px;
    color: #649e93;
    text-decoration: none;
}

.icon-center {
    z-index: 100;
    position: relative;
    width: 100%;
    text-align: center;
    margin: -50px 0;
}

.icon-center img {
    width: 50px;
    height: 50px;
}

.line-icons-top,
.line-icons-bottom {
    position: relative;
    z-index: 100;
    text-align: center;
    margin: 0 0;
}

.line-icons-top img,
.line-icons-bottom img {

    width: 40px;
    height: 40px;
}

.content h2 {
    margin-top: 20px;
    margin-bottom: 2px;
    font-family: 'Dosis', sans-serif;
    font-size: 25px;
    color: #5e9a8d;
    font-weight: normal;
}

.content span {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    margin-top: 15px;
    color: #000;
    font-size: 15px;
}

.content p {
    margin-bottom: 3px;
    padding-top: 0px;
    font-size: 1.125rem;
    color: #838383;
    line-height: 1.6em;
}

.birds {
    position: absolute;
    top: 50%;
    right: -30px;
    width: 60px;
    height: 60px;
    margin-left: -28px;
    text-align: center;
    font-size: 18px;
    line-height: 60px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #d9ece7;
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border: 4px solid #d9ece7;
    border-radius: 50%;
    background-color: white;
    box-sizing: border-box;
}

.icon-wrapper img {
    width: 45px;
    height: 45px;
}

/* seccion 6 */
.container-when-where {
    display: flex;
    justify-content: center;
    padding-top: 100px;
    max-width: 1140px;
    justify-self: center;
    margin: auto;
}

.container-when-where h2 {
    position: relative;
    font-size: 55px;
    font-family: 'Great Vibes', cursive;
    color: #649e93;
    padding-bottom: 38px;
    margin-bottom: 30px;
    margin-top: 0px;
    font-weight: 100;
}

.container-when-where h2::after {
    background-image: url('./img/title-bg.png');
    position: absolute;
    content: "";
    width: 230px;
    height: 59px;
    bottom: 10px;
    left: 0;
    right: 0;
    margin: auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.event-block {
    max-width: 1140px;
    margin: auto;
    padding: 40px 20px;
}

.event-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 60px;
}

.event-grid.reverse {
    direction: rtl;
}

.event-grid.reverse>* {
    direction: ltr;
}

.event-grid img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    max-height: 450px;
    object-fit: cover;
}

.event-info h2 {
    font-size: 25px;
    color: #649e93;
    padding-bottom: 15px;
}

.event-info span {
    color: #575757;
    font-size: 16px;
}

.event-info p {
    margin: 0px;
    padding-bottom: 22px;
    padding-right: 22px;
    padding-top: 10px;
    font-size: 1.125rem;
    color: #838383;
    line-height: 1.6em;
}

.event-info a {
    display: inline-block;
    margin-top: 10px;
    color: #649e93;
    font-weight: bold;
    text-decoration: none;
}

.map,
.calendar {
    color: #9cc5be;
    padding-right: 5px;
}

.event-time {
    padding-bottom: 5px;
}

.location {
    padding-bottom: 15px;
}

/* seccion 7 */
.info-extra {
    background-color: #f8f8f8;
    padding: 60px 20px;
    text-align: center;
    font-family: 'Dosis', sans-serif;
}

.container-info {
    max-width: 800px;
    margin: 0 auto;
}

.container-info h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 55px;
    color: #649e93;
    margin-bottom: 20px;
    position: relative;
    font-weight: normal;
}

.container-info h2::after {
    content: "";
    background-image: url('./img/title-bg.png');
    position: absolute;
    width: 230px;
    height: 59px;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-size: cover;
    background-repeat: no-repeat;
}

.info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.info-box {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    border: 1px solid #9cc5be;
    flex: 1 1 45%;
    min-width: 300px;
}

.info-box.full {
    flex: 0 1 100%;
    max-width: 600px;
    margin: 0 auto;
}

.info-box h3 {
    font-size: 1.4rem;
    color: #649e93;
    margin-bottom: 10px;
    font-family: 'Dosis', sans-serif;
}

.info-box p,
.info-box ul {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6em;
    margin-bottom: 10px;
}

.info-box ul {
    padding-left: 20px;
    list-style: disc;
}

.form-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #649e93;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 25px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-link:hover {
    background-color: #517f78;
    transform: translateY(-2px);
}

/* seccion 8 */
.form {
    position: relative;
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
    padding: 100px 0px 100px 0px;
    background-attachment: fixed;
    background-image: url('./img/form.jpeg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.form-opacity {
    background-color: transparent;
    background-image: linear-gradient(180deg, #649E9399 0%, #649E939E 100%);
    opacity: 1;
    transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
    inset: 0;
    position: absolute;
}

.form-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    background: #ffffffdd;
    padding: 40px;
    border-radius: 12px;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

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

.form-container h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 55px;
    color: #649e93;
    margin-bottom: 20px;
    position: relative;
    font-weight: normal;
}

.form-container p {
    margin-bottom: 30px;
    font-size: 18px;
    color: #5a5858;
    font-family: 'Dosis';
}

.guest-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.guest-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    /* Centra los contenidos */
}

.guest-form input,
.guest-form select,
.guest-form textarea {
    font-family: 'Dosis', sans-serif;
    font-size: 1em;
    color: #444;
    background-color: #fff;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    appearance: none;
}

.guest-form select {
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg fill="%23649e93" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 40px;
}

.guest-form .form-row input,
.guest-form .form-row select {
    flex: 1;
    /* min-width: 45%; */
    font-family: 'Dosis' sans-serif;
}

.guest-form textarea {
    width: 100%;
    height: 100px;
    resize: none;
}

.guest-form button {
    font-family: 'Great Vibes', cursive;
    font-size: 1.5rem;
    padding: 14px 30px;
    border: 2px solid white;
    background-color: transparent;
    color: #649e93;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.guest-form button:hover {
    background-color: #649e93;
    color: white;
    transform: scale(1.05);
}


.guest-form .form-row input[disabled],
.guest-form .form-row select[disabled] {
    background-color: #f2f2f2;
    cursor: not-allowed;
}

.success-message {
    display: none;
    color: green;
    margin-top: 20px;
}

.guest-form input:focus,
.guest-form select:focus {
    border-color: #649e93;
    box-shadow: 0 0 5px #649e93aa;
    outline: none;
    transition: all 0.3s ease;
}

.guest-form button {
    transition: background 0.3s ease, transform 0.2s ease;
}

.guest-form button:hover {
    transform: scale(1.05);
}

.form-container {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#successMessage,
#noAttendanceMessage,
#mixedAttendanceMessage {
    padding: 15px;
    border-radius: 8px;
    font-size: 1.2rem;
    background-color: #e6f9f4;
    border: 1px solid #5ac3a2;
    color: #357f6b;
}

#noAttendanceMessage {
    background-color: #ffeaea;
    border: 1px solid #f08080;
    color: #b94a48;
}

#dynamicGuests .form-row {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.error-message {
    color: #b30000;
    background-color: #ffeaea;
    border: 1px solid #f08080;
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
}

.full-width {
    flex: 1 1 100%;
    min-width: 100%;
}

/* seccion 9 */
.gifts {
    padding: 0 0px 0px 0px;
}

.container-gifts {
    display: flex;
    justify-content: center;
    padding-top: 100px;
    max-width: 1140px;
    justify-self: center;
    margin: auto;
    flex-direction: column;
    align-items: center;
}

.container-gifts h2 {
    position: relative;
    font-size: 55px;
    font-family: 'Great Vibes', cursive;
    color: #649e93;
    padding-bottom: 38px;
    margin-bottom: 30px;
    margin-top: 0px;
    font-weight: 100;

}

.container-gifts h2::after {
    background-image: url('./img/title-bg.png');
    position: absolute;
    content: "";
    width: 230px;
    height: 59px;
    bottom: 10px;
    left: 0;
    right: 0;
    margin: auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.container-gifts p {
    font-size: 1.125rem;
    color: #838383;
    line-height: 1.6em;
    font-family: 'Dosis';
    margin: 0 auto 1.5em;
    max-width: 600px;
    text-align: center;
    padding: 20px;
    border: 1px solid #9cc5be;
    border-radius: 10px;
    background-color: #f9f9f9;
}

/* seccion 10 */
.thanks {
    background-image: url('./img/thanks5.jpeg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.thanks-opacity {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(69, 110, 102, 0.9) 100%);
    z-index: 1;
}

.container-thanks {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 10px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    backdrop-filter: blur(3px);
}

.thanks-inner {
    background: rgba(94, 154, 142, .5);
    border-radius: 10px;
    padding: 30px 40px;
}

.thanks-inner h2 {
    font-size: 55px;
    color: #fff;
    font-family: 'Great Vibes', cursive;
    font-weight: normal;
    margin: 0;
}

.thanks-inner p {
    font-size: 18px;
    margin-top: 20px;
    line-height: 1.6em;
    color: #fff;
    font-family: 'Dosis', sans-serif;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Fondo semitransparente */
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.modal-nombre {
    position: absolute;
    top: 5%;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    color: #1e7b67;
    font-size: clamp(1.5rem, 6vw, 3.5rem);
    font-family: 'Great Vibes', cursive;
    padding: 12px 24px;
    border-radius: 12px;
    z-index: 2;
    max-width: 90%;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
    animation: aparecerDesdeArriba 1s ease-out forwards;
    opacity: 0;
}

.modal-nombre-cantidad {
    position: absolute;
    top: 17%;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    color: #1e7b67;
    font-size: 1rem;
    font-family: 'Great Vibes', cursive;
    padding: 12px 24px;
    border-radius: 12px;
    z-index: 2;
    max-width: 90%;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
    animation: aparecerDesdeArriba 1s ease-out forwards;
    opacity: 0;
}

.modal img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}


.open-modal-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1001;
}

.open-modal-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes aparecerDesdeArriba {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.modal-nombre {
    animation: aparecerDesdeArriba 1s ease-out forwards;
    opacity: 0;
}

.close-btn {
    display: none;
    /* Oculto por defecto */
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #1e7b67;
    font-size: 2rem;
    padding: 5px 10px;
    border-radius: 50%;
    z-index: 3;
    cursor: pointer;
}

.modal-nombre.pequeno {
    font-size: clamp(3rem, 6vw, 3.5rem);
}

.modal-nombre.mediano {
    font-size: clamp(2rem, 5vw, 3rem);
}

.modal-nombre.grande {
    font-size: clamp(1.5rem, 6vw, 3.5rem);
}

.error-border {
    border: 2px solid red;
}

.modal-nombre-cantidad.pequeno {
    font-size: 0.9rem;
}

.modal-nombre-cantidad.mediano {
    font-size: 1rem;
}

.modal-nombre-cantidad.grande {
    font-size: 1.1rem;
    top: 25%;
}



@media (max-width:1129px) {
    .day-married {
        flex-direction: column;
    }

    .day-title {
        width: 100%;
    }

    .container-day-title {
        width: 100%;
    }
}

@media (max-width: 768px) {

    header {
        background: white;
    }

    header.scrolled {
        position: fixed;
        background: white;
    }

    .logo a {
        color: #5e9a8e;
        text-decoration: none;
        white-space: nowrap;
        text-shadow: none
    }

    .icon {
        color: #5e9a8e;
    }



    .savedate h2 {
        font-size: 8vw;
    }

    .savedate p {
        font-size: 1.5rem;
    }

    .container-day-title {
        width: 100%;
    }

    .day-timer {
        grid-template-columns: repeat(2, 1fr);
    }

    .img-couples {
        flex-direction: column;
        align-items: center;
    }

    .person,
    .middle-img {
        max-width: 90%;
    }

    .timeline::after {
        left: 8px;
    }

    .timeline-item {
        width: 100%;
        padding: 20px 20px 20px 40px;
        text-align: left !important;
        flex-direction: column;
        align-items: flex-start !important;
    }

    .timeline-item.left,
    .timeline-item.right,
    .timeline-item.lefht {
        left: 0;
        padding: 20px 20px 20px 40px;
        justify-content: flex-start;
    }

    .timeline-item img {
        width: 100%;
        height: auto;
        margin: 0 0 15px 0 !important;
    }

    .timeline-item .content {
        max-width: 100%;
    }

    .icon-center {
        margin: 40px 0;
    }

    .timeline {
        padding: 20px 0;
    }

    .container-history h2 {
        font-size: 36px;
    }

    .container-history h2::after {
        width: 180px;
        height: 45px;
    }

    .event-grid {
        grid-template-columns: 1fr;
    }

    .event-grid.reverse {
        direction: ltr;
    }

    .container-header {
        position: relative;
        z-index: 1000;
    }

    .hamburger {
        display: block;
    }

    #nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        /* debajo del header */
        right: 0;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: white;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        padding: 20px;
        z-index: 100;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    #nav-menu.active {
        display: flex;
    }

    #nav-menu ul {
        flex-direction: column;
        gap: 20px;
    }

    #nav-menu ul li a {
        color: #1e7b67;
        font-size: 1.2rem;
    }

    /* Para que no se muestre el nav en línea en mobile */
    nav ul {
        flex-direction: column;
    }

    .container-header {
        justify-content: space-between;
        padding: 0 1rem;
    }

    .carousel-btn {
        display: none;
    }

    .carousel-dots {
        display: flex;
    }

    .close-btn {
        display: block;
    }

    .modal-nombre-cantidad.grande {
        font-size: 1.1rem;
        top: 20%;
    }
}

@media (max-width: 480px) {

    .savedate h4 {
        font-size: 1.5rem;
    }

    .savedate h2 {
        font-size: 10vw;
    }

    .savedate p {
        font-size: 1.2rem;
    }

    .container-day-title {
        width: 100%;
    }

    .day-timer {
        grid-template-columns: 1fr;
    }

    .modal-nombre {
        font-size: 1.5rem;
        padding: 10px 16px;
    }
}

@media (max-width: 380px) {
    .container-big-day p {
        padding: 0;
    }
}