/* Versión: 2025-06-02, corregido: elimina modal-backdrop, quita íconos de botones, corrige padding de párrafos, cambia marco2.png por marco1.png, fondo de gallery1 y gallery2 a marco1.png, elimina espacios entre secciones */
body {
    font-family: 'Merienda', cursive;
    scroll-behavior: smooth;
    background: transparent;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    font-size: 1rem;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}

h1, h3 {
    font-family: 'Merienda', cursive;
    color: #333;
}

h1 {
    font-size: clamp(1.8rem, 5vw, 2.3rem);
}

h3 {
    font-size: clamp(1.4rem, 3.5vw, 1.6rem);
}

section > .container p {
    font-size: clamp(0.9rem, 2.8vw, 1rem);
    padding-left: clamp(20px, 5vw, 30px);
    padding-right: clamp(20px, 5vw, 30px);
}

#welcome, #about, #details, #fun, #rsvpgifts, #countdown {
    font-family: 'Merienda', cursive;
}

#welcome h2, #about h2, #details h2, #fun h2, #rsvpgifts h2, #countdown h2 {
    font-size: clamp(1.6rem, 4.5vw, 2rem);
    letter-spacing: 1.5px;
}

#welcome p {
    font-size: clamp(1.1rem, 3.2vw, 1.2rem);
}

#welcome .text-box p {
    font-size: clamp(0.8rem, 2.3vw, 0.9rem);
}

#about p {
    font-size: clamp(1rem, 3vw, 1.1rem);
}

#countdown .countdown-text p {
    font-size: clamp(1.1rem, 3.2vw, 1.2rem);
    color: #333;
}

.letter-button h1 {
    font-size: clamp(1.6rem, 4.5vw, 2rem);
    color: #333;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    margin: 0;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5.5vw, 2.5rem);
}

.invitation-letter {
    background: #ffffff;
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.letter-button {
    background: url('../img/carta-elegante.png') no-repeat center center/cover;
    width: clamp(250px, 70vw, 350px);
    height: clamp(200px, 55vw, 280px);
    padding: clamp(10px, 3vw, 15px);
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: clamp(10px, 3vw, 15px);
    touch-action: manipulation;
}

.letter-button:hover, .letter-button:active {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(3px, 3px) rotate(1deg); }
    50% { transform: translate(-3px, -3px) rotate(-1deg); }
    75% { transform: translate(3px, 3px) rotate(1deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}
.invitation-text {
    font-family: 'Merienda', cursive;
    font-size: clamp(1rem, 2.8vw, 1.2rem);
    color: #333;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    margin: 0;
    text-align: center;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    padding-bottom: clamp(10%, 15vh, 15%);
    margin: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(59, 118, 165, 0.5);
    color: #ffffff;
}

.hero p {
    font-family: 'Merienda', cursive;
    font-size: clamp(1.1rem, 2.8vw, 1.2rem);
    padding-left: clamp(20px, 5vw, 30px);
    padding-right: clamp(20px, 5vw, 30px);
}

.section-padding {
    padding: 0;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.section-padding .container {
    background: transparent;
    border-radius: 8px;
    padding: clamp(10px, 3vw, 12px);
    max-width: 1000px;
}

#welcome {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0;
}

#welcome::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/fondo.png') no-repeat center center/cover;
    opacity: 0.98;
    z-index: -1;
}

#welcome .container {
    position: relative;
    background: transparent;
    z-index: 1;
}

#gallery1, #gallery2 {
    background: url('../img/marco1.png') no-repeat center center/cover;
    overflow: hidden;
    margin: 0;
    min-height: 100vh;
}

#gallery1::before, #gallery2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    opacity: 0.98;
    z-index: -1;
}

#about {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0;
    padding-bottom: 0;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.98;
    z-index: -1;
}

#about .container {
    max-width: 100%;
    padding: 0;
}

#about h2 {
    margin-bottom: 0;
}

#about .col-12 img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-left: 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    padding-bottom: 0;
}

#about .container p:first-child {
    padding-top: 0;
    margin-top: clamp(5px, 1vw, 8px);
}

#about .row {
    margin-bottom: 0;
}

#details {
    background: url('../img/fondo.png') no-repeat center center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0;
}

#details .container {
    position: relative;
    background: transparent;
    z-index: 1;
}

#fun {
    background: url('../img/marquito.png') no-repeat center center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin: 0;
}

#fun .container {
    position: relative;
    background: transparent;
    z-index: 1;
}

#details .itinerary-text, .itinerary-text {
    font-family: 'Merienda', cursive;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin: clamp(8px, 2vw, 12px) 0 0;
    text-align: center;
}

#details .dress-code-textbox {
    font-family: 'Merienda', cursive;
    font-size: clamp(1.1rem, 2.8vw, 1.2rem);
    background: #f8f9fa;
    border: 1px solid #3b76a5;
    border-radius: 8px;
    padding: clamp(8px, 2vw, 12px);
    text-align: center;
    max-width: 280px;
    width: 100%;
}

#details .dress-code-image {
    display: flex;
    justify-content: center;
    padding: clamp(8px, 2vw, 12px);
    max-width: clamp(400px, 80vw, 500px);
    margin: 0 auto;
}

#details .dress-image {
    max-width: 100%;
    height: auto;
    max-height: clamp(200px, 40vw, 300px);
    object-fit: contain;
    border-radius: 8px;
}

#rsvpgifts {
    background: url('../img/marco2.png') no-repeat center center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin: 0;
}

#rsvpgifts .container {
    position: relative;
    z-index: 1;
    background: transparent;
}

#countdown {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: url('../img/galeria27.png') no-repeat center center/cover;
    position: relative;
    margin: 0;
}

#countdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 0;
}

#countdown .container {
    position: relative;
    background: transparent;
    z-index: 1;
}

#countdown .countdown-text {
    text-align: center;
    margin-top: clamp(20px, 5vw, 30px);
    flex: 1;
}

#countdown .countdown-spacer {
    flex: 1;
}

#countdown h2 {
    color: #333;
    font-size: clamp(2rem, 5.5vw, 2.5rem);
    font-weight: bold;
}

#countdown .countdown-label {
    font-family: 'Merienda', cursive;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: #333;
}

#countdown .countdown-circle span {
    color: #fff;
    font-size: clamp(1.3rem, 3.5vw, 1.5rem);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 576px) {
    .header-container {
        flex-direction: column;
        gap: 4px;
    }
    #countdown h2 {
        font-size: clamp(1.8rem, 4.5vw, 2rem);
    }
    #countdown .countdown-label {
        font-size: clamp(0.9rem, 2.3vw, 1rem);
    }
    #countdown .countdown-circle span {
        font-size: clamp(1.1rem, 2.8vw, 1.3rem);
    }
}

@media (max-width: 400px) {
    h1, .letter-button h1 {
        font-size: clamp(1.4rem, 4vw, 1.8rem);
    }
    h2, #welcome h2, #about h2, #details h2, #fun h2, #rsvpgifts h2, #countdown h2 {
        font-size: clamp(1.4rem, 4vw, 1.8rem);
    }
    section > .container p {
        font-size: clamp(0.9rem, 2.8vw, 1rem);
        padding-left: clamp(15px, 4vw, 20px);
        padding-right: clamp(15px, 4vw, 20px);
    }
    .letter-button {
        width: clamp(200px, 65vw, 300px);
        height: clamp(150px, 50vw, 250px);
        padding: clamp(8px, 2.5vw, 12px);
    }
    .invitation-text {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }
    .itinerary-text {
        font-size: clamp(0.9rem, 2.3vw, 1.1rem);
    }
    .dress-code-textbox {
        max-width: 250px;
        padding: clamp(6px, 1.5vw, 10px);
    }
    .dress-image-box {
        max-width: clamp(300px, 75vw, 350px);
    }
    .dress-image {
        max-height: clamp(150px, 35vw, 200px);
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1000px;
    }
    .letter-button {
        width: clamp(350px, 50vw, 400px);
        height: clamp(280px, 40vw, 320px);
    }
    .carousel {
        max-width: 800px;
    }
    .itinerary-container {
        max-width: 700px;
    }
    .horizontal-container {
        max-width: 700px;
    }
    .dress-image-box {
        max-width: clamp(500px, 85vw, 600px);
    }
    .dress-image {
        max-height: clamp(250px, 45vw, 350px);
    }
}

.section-heading h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #3b76a5;
    margin: 8px auto;
}

.items-container {
    max-width: 600px;
    width: 100%;
}

.items-row {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(8px, 2vw, 12px);
    max-width: 600px;
    width: 100%;
}

.items-row.buttons-row {
    justify-content: space-around;
    gap: clamp(20px, 5vw, 30px);
}

.itinerary-btn {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    background-size: cover;
    background-position: center;
    border: none;
    border-radius: 5px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
    touch-action: manipulation;
}

#openCeremonyInfoModal {
    background: url('../img/btn-ceremony.png') no-repeat center center/cover;
}

#openReceptionInfoModal {
    background: url('../img/btn-reception.png') no-repeat center center/cover;
}

.itinerary-btn:hover {
    opacity: 0.8;
}

.text-box-container {
    width: clamp(140px, 30vw, 160px);
    height: clamp(100px, 25vw, 110px);
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.text-box {
    background: transparent;
    padding: clamp(8px, 2.5vw, 12px);
    border-radius: 4px;
    max-width: 100%;
    text-align: center;
}

.text-box p {
    margin-bottom: 0;
    font-size: clamp(0.8rem, 2.3vw, 0.95rem);
}

.horizontal-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 650px;
    padding-bottom: clamp(8px, 3.5vw, 8px);
    gap: clamp(8px, 2.5vw, 12px);
    margin: 0 auto;
}

.icono-corazon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.icono-corazon span {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    color: #3b76a5;
}

@media (max-width: 768px) {
    .items-row:not(.buttons-row) {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .horizontal-container {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .text-box-container {
        width: clamp(120px, 28vw, 140px);
        height: 100px;
    }
    .horizontal-container {
        gap: 6px;
    }
}

.countdown-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.countdown-circle {
    background-color: #918a6f9c;
    color: #ffffff;
    width: clamp(45px, 10vw, 55px);
    height: clamp(45px, 10vw, 55px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(1.3rem, 3.5vw, 1.5rem);
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.countdown-circle span {
    color: #ffffff;
    font-weight: 700;
    font-size: clamp(1.3rem, 3.5vw, 1.5rem);
}

.gallery-section {
    padding: 0;
    position: relative;
    margin: 0;
}

#gallery1 h2, #gallery2 h2 {
    margin-bottom: 2rem;
}

.carousel {
    max-width: 100%;
    margin: 0 auto;
}

.carousel-item img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: clamp(350px, 75vh, 550px);
    object-fit: contain;
}

.carousel-control-prev, .carousel-control-next {
    background-color: rgba(128, 128, 128, 0.7);
    width: 35px;
    height: 35px;
    border-radius: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 8px;
}

.carousel-control-next {
    right: 8px;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: transparent;
}

@media (min-width: 768px) {
    .carousel {
        max-width: 600px;
    }
    .carousel-item img {
        max-height: 768px;
    }
    .carousel-control-prev {
        left: -40px;
    }
    .carousel-control-next {
        right: -40px;
    }
}

@media (min-width: 1200px) {
    .carousel {
        max-width: 800px;
    }
    .carousel-item img {
        max-height: 650px;
    }
}

.btn-primary {
    font-family: 'Merienda', cursive;
    background-color: #918a6f82;
    border: none;
    padding: clamp(8px, 2.5vw, 10px);
    font-size: clamp(1rem, 2vw, 1.1rem);
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
}

.btn-primary:hover {
    background-color: #2a5577;
}

.btn-secondary {
    font-family: 'Merienda', cursive;
    background-color: #6c757d;
    border: none;
    padding: clamp(8px, 2.5vw, 10px);
    font-size: clamp(0.9rem, 1.6vw, 1rem);
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

footer {
    background-color: #333;
    color: #ffffff;
    margin: 0;
    padding: clamp(10px, 2vw, 12px);
}

footer p {
    margin-bottom: 0;
    font-size: clamp(0.9rem, 2.3vw, 1rem);
    padding-left: clamp(20px, 5vw, 30px);
    padding-right: clamp(20px, 5vw, 30px);
}

.fa-solid {
    color: #3b76a5;
    margin-right: 6px;
}

audio {
    width: clamp(150px, 30vw, 200px);
    background: transparent;
    opacity: 0.95;
    z-index: 1000;
    border-radius: 2px;
    border: 2px solid #3b76a5;
    margin: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
    touch-action: manipulation;
}

audio:hover {
    opacity: 1;
}

.modal.fade {
    z-index: 1050;
}

.modal-backdrop {
    background: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#rsvpModal .modal-content, #ceremonyInfoModal .modal-content, #receptionModal .modal-content, #giftsModal .modal-content, #receptionInfoModalLabel .modal-content {
    background: #ffffff;
    border: 2px solid #3b76a5;
    border-radius: 10px;
}

#rsvpModal .modal-header, #ceremonyInfoModal .modal-header, #receptionModal .modal-header, #giftsModal .modal-header, #receptionInfoModalLabel .modal-header {
    background: #e6f3fa;
    border-bottom: 1px solid #3b76a5;
}

#rsvpModal .modal-title, #ceremonyInfoModal .modal-title, #receptionModal .modal-title, #giftsModal .modal-title, #receptionInfoModalLabel .modal-title {
    font-family: 'Merienda', cursive;
    color: #333;
    font-size: clamp(1.5rem, 3vw, 1.6rem);
}

#rsvpModal .form-label, #ceremonyInfoModal .form-label, #receptionInfoModal .form-label {
    font-family: 'Merienda', cursive;
    color: #333;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
}

#ceremonyInfoModal .modal-body p, #receptionInfoModal .modal-body p {
    font-family: 'Merienda', cursive;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    padding-left: clamp(20px, 5vw, 30px);
    padding-right: clamp(20px, 5vw, 30px);
}

#rsvpModal .form-label.message-label {
    font-family: 'Merienda', cursive;
    font-style: italic;
    color: #3b76a5;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
}

#rsvpModal .form-control {
    font-family: 'Merienda', cursive;
    border: 1px solid #3b76a5;
    border-radius: 5px;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    pointer-events: auto;
    touch-action: manipulation;
}

#rsvpModal .form-control:focus {
    border-color: #2a5577;
    box-shadow: 0 0 5px rgba(42, 85, 119, 0.5);
}

#rsvpModal .form-check-input.is-invalid ~ .form-check-label {
    color: #dc3545;
}

#rsvpModal .invalid-feedback {
    font-family: 'Merienda', cursive;
    font-size: clamp(0.8rem, 1vw, 0.9rem);
}

#rsvpModal .form-check-input:invalid ~ .invalid-feedback {
    display: block;
}

#rsvpModal .form-message {
    font-family: 'Merienda', cursive;
    background: #f8f9fa;
    border: 1px solid #3b76a5;
    border-radius: 4px;
    padding: 8px;
    font-size: clamp(0.9rem, 8px, 1rem);
    color: #333;
    max-width: 100%;
    margin: 8px auto;
}

#rsvpModal .radio-container {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 2vw, 8px);
}