/* Importación de fuentes de Google */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=MonteCarlo&family=Lato:wght@300;400&family=Cormorant+Garamond:wght@300;400;600&display=swap');

/* Variables CSS */
:root {
    --sage-green: #8B9D83;
    --soft-beige: #F5F2EC;
    --cream: #FAF8F3;
    --deep-blue: #2C3E50;
    --warm-brown: #8B7355;
    --text-dark: #3A3A3A;
    --text-light: #666666;
    --accent-gold: #D4AF37;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--cream);
    overflow-x: hidden;
}

.invitation-container {
    max-width: 450px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 40px rgba(0,0,0,0.1);
}

/* Section 1 - Hero with Photo */
.hero-section {
    position: relative;
    height: 80vh;
    background-color: var(--deep-blue);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 60px 40px;
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 130%;
    height: 100%;
    object-fit: cover;
    object-position: 30% center;
    z-index: 0;
    will-change: transform;
    transform: translateZ(0);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.0));
    z-index: 1;
    pointer-events: none;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    text-align: center;
}

.hero-logo {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    filter: drop-shadow(2px 2px 8px rgba(0,0,0,0.3));
    display: block;
    margin: 0 auto;
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0px;
    opacity: 0.95;
}

.hero-names {
    font-family: 'MonteCarlo', cursive;
    font-size: 52px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-date {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    letter-spacing: 2px;
}

/* Language Selector */
.language-selector {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 12px;
    z-index: 10;
}

.language-label {
    color: white;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8), 0 0 10px rgba(0,0,0,0.5);
    white-space: nowrap;
    line-height: 1;
}

.language-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
}

.language-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
}

.language-btn.active {
    border-color: var(--sage-green);
    box-shadow: 0 0 0 3px rgba(139, 157, 131, 0.3);
    background: rgba(255, 255, 255, 1);
}

.language-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Audio Player Section */
.audio-player-section {
    padding: 50px 40px 0px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--cream);
}

.audio-player-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 15px;
    white-space: nowrap;
    line-height: 1.6;
    margin-top: 25px;
}

/* Audio Player */
.audio-player {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6px);
}

.audio-play-pause-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.audio-play-pause-btn:hover {
    opacity: 0.7;
}

.audio-play-pause-btn svg {
    width: 14px;
    height: 14px;
}

.audio-time {
    font-size: 11px;
    color: #666;
    font-family: 'Lato', sans-serif;
    white-space: nowrap;
    min-width: 50px;
    flex-shrink: 0;
}

.audio-progress-container {
    flex: 1;
    position: relative;
    height: 3px;
    background: rgba(224, 224, 224, 0.4);
    border-radius: 2px;
    cursor: pointer;
    overflow: visible;
}

.audio-progress-bar {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(224, 224, 224, 0.4);
    border-radius: 1px;
}

.audio-progress-handle {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    cursor: grab;
    transition: transform 0.1s;
    z-index: 1;
}

.audio-progress-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.2);
}

.audio-volume-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.audio-volume-btn:hover {
    opacity: 0.7;
}

.audio-volume-btn svg {
    width: 14px;
    height: 14px;
}

.audio-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.audio-menu-btn:hover {
    opacity: 0.7;
}

.audio-menu-btn svg {
    width: 14px;
    height: 14px;
}

/* Section 2 - Invitation Text */
.invitation-text {
    padding: 50px 40px;
    text-align: center;
    background: var(--cream);
}

.invitation-title {
    font-family: 'MonteCarlo', cursive;
    font-size: 42px;
    color: var(--sage-green);
    margin-bottom: px;
}

.invitation-text .invitation-title {
    line-height: 1.0;
    margin-bottom: 20px;
}

.invitation-paragraph {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 320px;
    margin: 0 auto 40px;
    margin-bottom: 0px;
    margin-top: 10px;
}

/* Calendar */
.calendar {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    width: calc(100% + 40px);
    max-width: calc(100% + 40px);
    margin: 0 auto;
    margin-left: -20px;
    margin-right: -20px;
    box-sizing: border-box;
}

.calendar-header {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--deep-blue);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-light);
    border-radius: 50%;
}

.calendar-day.header {
    font-weight: 600;
    color: var(--sage-green);
    font-size: 11px;
}

.calendar-day.highlight {
    background: var(--sage-green);
    color: white;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(139, 157, 131, 0.4);
}

/* Section 3 - Countdown */
.countdown-section {
    padding: 40px 0px 60px 0px;
    text-align: center;
    background: #FAF8F3;
}

.countdown-label {
    font-family: 'Playfair Display', serif;
    font-size: 25px;
    color: var(--deep-blue);
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 8px;
    margin-top: -40px;
}

.countdown-boxes {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 55px;
}

.countdown-box {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.countdown-number {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--deep-blue);
    font-weight: 600;
}

.countdown-unit {
    font-size: 10px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.wedding-time {
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
}

.wedding-time-block {
    flex: 1;
    text-align: center;
}

.wedding-time-divider {
    width: 2px;
    height: 90px;
    background: var(--deep-blue);
    margin: 0 25px;
    opacity: 0.3;
    align-self: flex-start;
    flex-shrink: 0;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.wedding-info {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: var(--deep-blue);
    font-weight: 400;
    line-height: 1.6;
}

.wedding-separator {
    margin: 0 8px;
    opacity: 0.6;
}

.wedding-day {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    color: var(--deep-blue);
    font-weight: 400;
    line-height: 1.6;
}

.wedding-hour {
    font-family: 'Playfair Display', serif;
    font-size: 25px;
    color: var(--deep-blue);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 30px;
    white-space: nowrap;
}

.wedding-hour .pm {
    font-size: 18px;
    letter-spacing: 2px;
}

.wedding-time-horizontal-divider {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 320px;
    height: 2px;
    background: var(--deep-blue);
    opacity: 0.3;
    z-index: 0;
}

/* Estilos para elementos de ubicación en countdown */
.location-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 320px;
    margin: 10px auto;
    text-align: center;
    margin-bottom: -15px;
}

.location-name {
    font-family: 'Playfair Display', serif;
    font-size: 25px;
    color: var(--deep-blue);
    font-weight: 600;
    letter-spacing: 2px;
    margin: 10px auto;
    text-align: center;
    white-space: nowrap;
    margin-bottom: px;
}

.location-address {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 320px;
    margin: 10px auto;
    text-align: center;
    margin-bottom: 30px;
}

.countdown-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.countdown-buttons .btn {
    margin-bottom: 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--sage-green);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-bottom: 50px;
}

.btn:hover {
    background: var(--deep-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Section 4 - Photo/Video */
.media-section {
    padding: 10px 20px;
    background: var(--cream);
    text-align: center;
}

.media-section .invitation-title {
    text-align: center;
    margin-top: -50px;
}

.media-section .invitation-paragraph {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

.media-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: var(--soft-beige);
    width: 100%;
    height: 300px;
    cursor: pointer;
    margin-bottom: 30px;
}

.media-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 170%;
    height: 170%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: translate(-50%, -50%) scale(1.5);
    min-width: 100%;
    min-height: 100%;
}

.video-play-pause {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid rgba(139, 157, 131, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    opacity: 1;
}

.video-play-pause:hover {
    background: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--sage-green);
}

.video-play-pause svg {
    width: 35px;
    height: 35px;
    stroke: var(--sage-green);
    stroke-width: 2.5;
    fill: var(--sage-green);
}

.video-play-pause .play-icon-svg {
    margin-left: 3px;
}

.video-play-pause .pause-icon-svg {
    display: none;
}

.video-play-pause.playing .play-icon-svg {
    display: none;
}

.video-play-pause.playing .pause-icon-svg {
    display: block;
}

/* Etiqueta de ubicación del video */
.video-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    background: white;
    border-radius: 20px;
    padding: 7px 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-family: 'Lato', sans-serif;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    position: relative;
    z-index: 5;
}

.video-label-flag {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.flag-stripe {
    flex: 1;
    width: 100%;
}

.flag-red {
    background: #AE1C28;
}

.flag-white {
    background: #FFFFFF;
}

.flag-blue {
    background: #21468B;
}

.video-label-text {
    font-size: 13px;
    color: #000000;
    font-weight: 500;
    white-space: nowrap;
}

.play-button {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.play-button:hover {
    transform: scale(1.1);
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 20px solid var(--sage-green);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

.play-button {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.play-button:hover {
    transform: scale(1.1);
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 20px solid var(--sage-green);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

/* Section 5 - Event Info */
.event-section {
    padding: 50px 40px;
    background: var(--cream);
    text-align: center;
}

.itinerary-title {
    font-family: 'MonteCarlo', cursive;
    font-size: 42px;
    color: #8B9D83;
    margin-bottom: 40px;
    text-align: center;
    opacity: 0.9;
    white-space: nowrap;
}

.itinerary-container {
    max-width: 280px;
    margin: 0 auto;
    padding: 0 20px;
}

.itinerary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
}

.itinerary-icon-wrapper {
    width: 70px;
    height: 70px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.itinerary-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.itinerary-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 400;
    text-align: center;
    line-height: 1.4;
}

.itinerary-separator {
    width: 100%;
    max-width: 180px;
    height: 1px;
    background: #E0E0E0;
    margin: 0 auto 15px;
    opacity: 0.4;
}

.yesi-santi-logo {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto -30px;
    max-width: 350px;
}

.event-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.event-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    opacity: 0.8;
}

.event-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--deep-blue);
    margin-bottom: 15px;
}

.event-time {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: var(--sage-green);
    margin-bottom: 10px;
}

.event-location {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Section 6 - Photo Gallery */
.gallery-section {
    padding: 20px 20px 0px 20px;
    background: var(--cream);
    margin-top: -30px;
}

.gallery-section .invitation-title {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 0px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 4/3;
    background: var(--soft-beige);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.gallery-item {
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-logo-item {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    position: relative;
    background: linear-gradient(to bottom, #AE1C28 0%, #21468B 100%);
    -webkit-mask-image: url('../img/Logo_S&Y.png');
    mask-image: url('../img/Logo_S&Y.png');
    -webkit-mask-size: 350px auto;
    mask-size: 350px auto;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.gallery-logo {
    opacity: 0;
    max-width: 350px;
    width: 100%;
    height: auto;
    display: block;
}

/* Modal para expandir imágenes */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
    overflow: auto;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    animation: zoomIn 0.3s ease;
}

.image-modal-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.image-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.image-modal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.image-modal-nav svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.image-modal-prev {
    left: 20px;
}

.image-modal-next {
    right: 20px;
}

.image-modal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.image-modal-nav:disabled:hover {
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
}

.image-modal-content img {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.image-modal-content img.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.image-modal-content img.fade-in {
    opacity: 1;
    transform: scale(1);
}

/* Mostrar botones de navegación solo en desktop */
@media (min-width: 768px) {
    .image-modal-nav {
        display: flex;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Section 7 - Dress Code */
.dress-code-section {
    padding: 20px 40px;
    background: var(--cream);
    color: var(--text-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dress-code-section::before {
    display: none;
}

.dress-code-image {
    width: 200px;
    height: 50px;
    object-fit: contain;
    margin: 0 auto 0px auto;
    display: block;
    margin-top: 50px;
}

.dress-code-title {
    font-family: 'MonteCarlo', cursive;
    font-size: 42px;
    margin-bottom: 10px;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
    color: var(--sage-green);
}

.dress-code-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 25px;
    color: var(--sage-green);
    margin-top: 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.dress-icons {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.dress-icon {
    width: 60px;
    height: 60px;
    fill: var(--sage-green);
    opacity: 0.9;
}

.color-palette {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.color-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--sage-green);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.color-dot:nth-child(1) { background: #F5E6D3; }
.color-dot:nth-child(2) { background: #6B7F8E; }
.color-dot:nth-child(3) { background: var(--sage-green); }

/* Section - Lluvia de Sobres */
.sobres-section {
    padding: 70px 40px 20px 40px;
    background: var(--cream);
    color: var(--text-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sobres-section::before {
    display: none;
}

.sobres-container {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    margin: 0 auto;
}

.sobres-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin: 0 auto 0px auto;
    display: block;
    margin-top: 0px;
}

.sobres-title {
    font-family: 'MonteCarlo', cursive;
    font-size: 42px;
    margin-bottom: 10px;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
    color: var(--sage-green);
}

.sobres-paragraph {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 320px;
    margin: 0 auto 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Section 8 - Photo Upload */
.photo-upload-section {
    padding: 40px 40px;
    background: url('../img/Background.jpg') center center / cover no-repeat;
    text-align: center;
    color: white;
    position: relative;
}

.photo-upload-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.photo-upload-section > * {
    position: relative;
    z-index: 1;
}

.upload-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 30px;
    fill: white;
}

.upload-title {
    font-family: 'MonteCarlo', cursive;
    font-size: 36px;
    margin-bottom: 30px;
}

.agradecimiento-title {
    font-family: 'MonteCarlo', cursive;
    font-size: 36px;
    margin-top: 50px;
    margin-bottom: 50px;
    color: var(--sage-green);
    text-align: center;
}

.btn-white {
    background: white;
    color: var(--sage-green);
    margin: 10px;
    margin-bottom: 30px;
    margin-top: 10px;
}

.btn-white:hover {
    background: var(--cream);
}

.photo-upload-section .invitation-paragraph {
    color: white;
    opacity: 0.95;
    margin-bottom: 50px;
}

/* Section 9 - RSVP */
.rsvp-section {
    padding:50px 40px;
    background: var(--cream);
}

/* Section 10 - No Assist Form - Ajuste de espaciado */
.no-assist-section {
    margin-top: -120px;
    padding-bottom: 0;
}

.no-assist-section .checkbox-group {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.rsvp-title {
    font-family: 'MonteCarlo', cursive;
    font-size: 36px;
    text-align: center;
    color: var(--sage-green);
    margin-bottom: 40px;
    white-space: nowrap;
}

.ending-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0px auto 30px;
    max-width: 300px;
}

.rsvp-section .invitation-paragraph {
    text-align: center;
    margin: 20px auto;
    max-width: 320px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    margin-bottom: 50px;
}

.blessing-paragraph {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 320px;
    margin: 0 auto 40px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: block;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--sage-green);
    box-shadow: 0 0 0 3px rgba(139, 157, 131, 0.1);
}

.form-input.textarea {
    min-height: 100px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #E0E0E0;
}

.checkbox-input {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* Footer */
.footer {
    padding: 0;
    text-align: center;
    background: var(--soft-beige);
    font-size: 12px;
    color: var(--text-light);
}

.footer-link {
    display: block;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.8;
}

.footer-link p {
    margin: 0;
}

/* Animations */
.fade-up {
    animation: fadeUp 1s ease-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .hero-names { 
        font-size: 42px; 
    }
    
    .invitation-title { 
        font-size: 36px; 
    }
    
    .wedding-hour { 
        font-size: 36px; 
    }
    
    .countdown-boxes { 
        gap: 10px; 
    }
    
    .countdown-box { 
        padding: 10px 15px; 
    }
    
    .countdown-number { 
        font-size: 24px; 
    } 
}

/* Popup Styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 320px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease;
}

.popup-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.popup-subtitle {
    font-family: 'MonteCarlo', cursive;
    font-size: 32px;
    color: var(--sage-green);
    margin-bottom: 30px;
    line-height: 1.2;
}

.popup-ok-btn {
    background: var(--sage-green);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 40px;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Lato', sans-serif;
}

.popup-ok-btn:hover {
    background: var(--deep-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

