/* Invitación de Boda Mobile-First - Paty & Santy */

:root {
    /* Colores basados en las imágenes de referencia */
    --primary-peach: #D4B5A0;
    --light-peach: #E8D5C9;
    --dark-text: #4A4A4A;
    --light-text: #7A7A7A;
    --white: #FFFFFF;
    --background: #FEFEFE;
    --overlay: rgba(0, 0, 0, 0.3);
    
    /* Tipografías */
    --font-script: 'Allura', 'Great Vibes', 'Dancing Script', cursive;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Poppins', sans-serif;
    
    /* Espaciado */
    --section-padding: 2.5rem 1.5rem;
    --container-max-width: 450px;
}

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

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

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============ HERO SECTION ============ */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay);
    z-index: 2;
}

.hero-content {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: 2rem;
    width: 100%;
}

.couple-names {
    font-family: var(--font-script);
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.5s both;
}

.announcement {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 1s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--white);
    opacity: 0.8;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============ INVITATION TEXT ============ */
.invitation-text {
    padding: var(--section-padding);
    text-align: left;
    background: var(--white);
}

.invitation-text h2 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.script-title {
    font-family: var(--font-script);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--dark-text);
    margin-bottom: 0.735rem;
    line-height: 1.2;
}

.invitation-text p {
    font-size: 0.95rem;
    color: var(--light-text);
    max-width: 280px;
    margin: 0;
    line-height: 1.5;
}

/* ============ COUNTDOWN SECTION ============ */
.countdown-section {
    padding: var(--section-padding);
    text-align: right;
    background: var(--white);
}

.countdown-section .calendar-btn {
    display: block;
    margin: 1.05rem auto 0 auto;
}

.countdown-text {
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: right;
    padding-right: 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    color: var(--dark-text);
}

.countdown-text .script {
    font-family: var(--font-script);
    font-size: 2rem;
    font-style: italic;
    color: var(--dark-text);
    font-weight: 500;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0 0.5rem 0;
    font-family: var(--font-sans);
    text-align: center;
    gap: 0.3rem;
}

.countdown-number {
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--dark-text);
    line-height: 1;
    min-width: 50px;
    text-align: center;
}

.countdown-number.seconds {
    color: var(--primary-peach);
}

.countdown-separator {
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--dark-text);
    margin: 0;
}

.countdown-labels {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.countdown-unit {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    width: 50px;
}

.countdown-unit:nth-child(1) {
    transform: translateX(6px);
}

.countdown-unit:nth-child(4) {
    transform: translateX(-8px);
}

.calendar-btn {
    background: var(--white);
    color: var(--dark-text);
    border: 1px solid #E0E0E0;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1.5rem auto 0 auto;
}

.calendar-btn:hover {
    background: #F8F8F8;
    transform: translateY(-1px);
}

.calendar-icon {
    width: 16px;
    height: 16px;
    filter: invert(0.3);
}

/* ============ WEDDING DATE SECTION ============ */
.wedding-date-section {
    padding: var(--section-padding);
    text-align: center;
    background: var(--white);
}

.month {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    color: var(--light-text);
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.day {
    font-family: var(--font-sans);
    font-size: 5rem;
    font-weight: 300;
    color: var(--dark-text);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.year {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--light-text);
    letter-spacing: 0.3em;
}

/* ============ EVENT DETAILS ============ */
.event-details {
    padding: var(--section-padding);
    background: var(--white);
}

.event-card {
    text-align: left;
    margin-bottom: 3rem;
    padding: 1rem 0;
}

.event-card:last-child {
    margin-bottom: 0;
}

.event-card .script-title {
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.event-card p {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--light-text);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.event-card .time {
    font-weight: 500;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
}

.location-btn {
    background: var(--primary-peach);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.location-btn:hover {
    background: #C8A592;
    transform: translateY(-1px);
}

/* ============ DRESS CODE SECTION ============ */
.dress-code-section {
    padding: var(--section-padding);
    background: var(--white);
}

.dress-code-section .container {
    display: grid;
    grid-template-columns: auto 2px 1fr;
    gap: 1.5rem;
    align-items: center;
    max-width: 350px;
    margin: 0 auto;
}

.dress-code-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dress-code-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: invert(0.3);
}

.dress-code-separator {
    width: 2px;
    height: 60px;
    background: var(--light-text);
    opacity: 0.3;
}

.dress-code-text {
    text-align: left;
}

.dress-code-text h3 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.dress-code-text p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--light-text);
    line-height: 1.4;
}

/* ============ GIFTS SECTION ============ */
.gifts-section {
    padding: var(--section-padding);
    text-align: center;
    background: var(--white);
}

.gifts-section .script-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.gifts-section p {
    font-size: 0.95rem;
    color: var(--light-text);
    line-height: 1.4;
    margin-bottom: 2rem;
}

.gift-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gift-btn {
    background: var(--primary-peach);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gift-btn:hover {
    background: #C8A592;
    transform: translateY(-1px);
}

/* ============ PHOTO SECTION ============ */
.photo-section {
    padding: var(--section-padding);
    text-align: center;
    background: var(--primary-peach);
    color: var(--white);
}

.photo-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.camera-icon {
    width: 60px;
    height: 60px;
    color: var(--white);
    z-index: 2;
}

.photo-frames {
    position: absolute;
    display: flex;
    gap: 0.5rem;
    z-index: 1;
    transform: translateX(-20px);
}

.photo-frame {
    width: 25px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.photo-section h3 {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.photo-section p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.photo-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.photo-btn {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
    padding: 1rem 2rem;
    border-radius: 25px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.photo-btn:hover {
    background: var(--white);
    color: var(--primary-peach);
}

/* ============ RSVP SECTION ============ */
.rsvp-section {
    padding: var(--section-padding);
    background: var(--white);
}

.rsvp-section .script-title {
    font-family: var(--font-script);
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 400;
    color: var(--dark-text);
    line-height: 1.2;
}

.rsvp-section p {
    text-align: center;
    font-size: 0.95rem;
    color: var(--light-text);
    line-height: 1.4;
    margin-bottom: 2rem;
}

.rsvp-form {
    max-width: 350px;
    margin: 0 auto;
}

.radio-group {
    margin-bottom: 2rem;
}

.radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--dark-text);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #D0D0D0;
    border-radius: 50%;
    margin-right: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary-peach);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--primary-peach);
    border-radius: 50%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    border: none;
    border-bottom: 1px solid #E0E0E0;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--dark-text);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-peach);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: var(--font-sans);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--light-text);
}

.submit-btn {
    width: 100%;
    background: var(--primary-peach);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #C8A592;
    transform: translateY(-1px);
}

/* ============ GALLERY SECTION ============ */
.gallery-section {
    padding: 1rem;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.gallery-message {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--dark-text);
    text-align: center;
    margin: 2rem 0;
    grid-column: 1 / -1;
    line-height: 1.3;
    font-weight: 400;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    opacity: 0;
    transform: translateX(-100px);
    animation: slideInFromLeft 0.8s ease forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.2s; }
.gallery-item:nth-child(2) { animation-delay: 0.4s; }
.gallery-item:nth-child(3) { animation-delay: 0.6s; }
.gallery-item:nth-child(4) { animation-delay: 0.8s; }

.gallery-item.large {
    grid-column: 1 / -1;
    aspect-ratio: 16/10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Corazones volando discretos */
.flying-hearts {
    position: absolute;
    top: 0;
    left: -30px;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.flying-heart {
    position: absolute;
    font-size: 16px;
    color: rgba(212, 181, 160, 0.6);
    animation: fadeHeartInOut 3s ease-in-out infinite;
    font-family: serif;
    text-shadow: 0 0 2px rgba(212, 181, 160, 0.3);
}

.flying-heart:nth-child(1) {
    top: 25%;
    left: 15%;
    animation-delay: 0s;
    font-size: 14px;
}

.flying-heart:nth-child(2) {
    top: 40%;
    left: 75%;
    animation-delay: 0.5s;
    font-size: 18px;
}

.flying-heart:nth-child(3) {
    top: 60%;
    left: 25%;
    animation-delay: 1s;
    font-size: 15px;
}

.flying-heart:nth-child(4) {
    top: 15%;
    left: 65%;
    animation-delay: 1.5s;
    font-size: 16px;
}

.flying-heart:nth-child(5) {
    top: 75%;
    left: 85%;
    animation-delay: 2s;
    font-size: 13px;
}

.flying-heart:nth-child(6) {
    top: 30%;
    left: 45%;
    animation-delay: 2.5s;
    font-size: 17px;
}

@keyframes fadeHeartInOut {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-10deg);
    }
    20% {
        opacity: 0.6;
        transform: scale(1) rotate(0deg);
    }
    80% {
        opacity: 0.6;
        transform: scale(1) rotate(5deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) rotate(10deg);
    }
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 375px) {
    .couple-names {
        font-size: 3rem;
    }
    
    .day {
        font-size: 4rem;
    }
    
    .countdown-timer {
        gap: 0.3rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-unit {
        font-size: 0.6rem;
    }
}

@media (min-width: 768px) {
    :root {
        --container-max-width: 600px;
        --section-padding: 4rem 2rem;
    }
    
    .gift-buttons,
    .photo-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .gallery-grid {
        max-width: 500px;
    }
}

/* ============ SCROLL ANIMATIONS ============ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ NOTIFICATION STYLES ============ */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--primary-peach);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 25px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 280px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #4CAF50;
}

.notification.error {
    background: #f44336;
}

/* ============ UPLOAD MODAL STYLES ============ */
.upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 15000;
}

.upload-modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    max-width: 320px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.upload-modal-content h3 {
    font-family: var(--font-sans);
    font-size: 1.4rem;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.upload-modal-content p {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.upload-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.upload-option-btn {
    background: var(--primary-peach);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-option-btn:hover {
    background: #C8A592;
    transform: translateY(-1px);
}

.close-modal {
    background: transparent;
    color: var(--light-text);
    border: 1px solid #E0E0E0;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #F8F8F8;
}

/* ============ MUSIC TOGGLE ============ */
.music-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: var(--primary-peach);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.music-toggle:hover {
    opacity: 1;
    transform: scale(1.1);
}

.music-toggle.playing {
    animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ============ INSTRUCTION STEPS ============ */
.instruction-steps {
    text-align: left;
    margin: 1.5rem 0;
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: #F8F8F8;
    border-radius: 8px;
}

.step-number {
    background: var(--primary-peach);
    color: var(--white);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step span:last-child {
    font-size: 0.9rem;
    color: var(--dark-text);
    line-height: 1.3;
}

/* ============ SIMPLE INSTRUCTIONS ============ */
.simple-instructions {
    background: #F0F8FF;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid var(--primary-peach);
}

.simple-instructions p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
    color: var(--dark-text);
}

.simple-instructions p:first-child {
    font-weight: 600;
    color: var(--primary-peach);
}

/* ============ PHOTO PREVIEW ============ */
.photo-preview-modal {
    max-width: 350px !important;
}

.photo-preview {
    margin: 1.5rem 0;
    text-align: center;
}

.upload-steps {
    margin: 1rem 0;
}

.step-simple {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.5rem;
    background: #F0F8FF;
    border-radius: 8px;
}

.step-icon {
    font-size: 1.2rem;
    margin-right: 0.8rem;
    min-width: 30px;
}

.step-simple span:last-child {
    font-size: 0.9rem;
    color: var(--dark-text);
    line-height: 1.3;
}