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

body {
    font-family: 'Arial', sans-serif;
    background: #fff5f8;
    color: #444;
    overflow-x: hidden;
}

.hero {
    height: 100vh;
    background: linear-gradient(135deg, #ff8fb1, #ffc0cb);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content h1 {
    font-size: 5rem;
    color: white;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.4rem;
    color: white;
}

#contador {
    margin: 25px 0;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

button {
    background: white;
    color: #e91e63;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
}

section {
    padding: 80px 10%;
}

h2 {
    text-align: center;
    color: #e91e63;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.timeline-item,
.memory-card,
.love-letter {
    background: white;
    padding: 30px;
    border-radius: 25px;
    margin: 25px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.cards-container {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.memory-card {
    flex: 1;
    min-width: 280px;
}

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

.photo {
    background: #ffd6e0;
    height: 220px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

footer {
    text-align: center;
    padding: 40px;
    color: #888;
}

.floating-hearts::before {
    content: "💕 💖 💗 💓 💕";
    position: fixed;
    top: 20px;
    width: 100%;
    text-align: center;
    opacity: 0.2;
    font-size: 2rem;
}
.story-section {
    padding: 120px 8%;
    background: linear-gradient(to bottom, #fff5f8, #ffe4ec);
    position: relative;
}

.story-subtitle {
    text-align: center;
    margin-bottom: 70px;
    font-size: 1.1rem;
    color: #777;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: #ff7aa2;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.4);
}

.timeline-container {
    padding: 20px 50px;
    position: relative;
    width: 50%;
}

.timeline-container.left {
    left: 0;
}

.timeline-container.right {
    left: 50%;
}

.timeline-container::after {
    content: '💖';
    position: absolute;
    width: 40px;
    height: 40px;
    right: -20px;
    background: white;
    border-radius: 50%;
    top: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(255,105,180,0.3);
    z-index: 2;
}

.timeline-container.right::after {
    left: -20px;
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(255,105,180,0.12);
    transition: all 0.35s ease;
    cursor: pointer;
}

.timeline-content:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255,105,180,0.25);
}

.timeline-content h3 {
    color: #e91e63;
    margin-bottom: 15px;
}

.date {
    display: inline-block;
    margin-bottom: 15px;
    color: #ff5c8a;
    font-weight: bold;
    letter-spacing: 2px;
}
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.special-moments {
    padding: 120px 8%;
    background: linear-gradient(180deg, #ffeef4 0%, #ffdbe8 100%);
    position: relative;
}

.moments-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 70px auto;
}

.moments-header h2 {
    font-size: 2.8rem;
    color: #e91e63;
    margin-bottom: 20px;
}

.moments-header p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.moment-card {
    position: relative;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: 40px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(255, 105, 180, 0.12);
    transition: all 0.4s ease;
    cursor: pointer;
}

.moment-card:hover {
    transform: translateY(-12px) rotate(1deg) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 105, 180, 0.22);
}

.moment-card h3 {
    font-size: 1.6rem;
    color: #e91e63;
    margin: 15px 0;
}

.moment-card p {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
}

.moment-date {
    display: inline-block;
    background: #ffd1df;
    color: #d81b60;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.moment-glow {
    position: absolute;
    width: 180px;
    height: 180px;
    background: rgba(255, 182, 193, 0.45);
    border-radius: 50%;
    top: -60px;
    right: -60px;
    filter: blur(30px);
    transition: all 0.4s ease;
}

.moment-card:hover .moment-glow {
    transform: scale(1.2);
    opacity: 0.8;
}
.moment-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.5),
        transparent
    );
    transition: 0.8s;
}

.moment-card:hover::before {
    left: 120%;
}
html {
    scroll-behavior: smooth;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 18px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    z-index: 999;
}

.nav-logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e91e63;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #e91e63;
}

.chapter-hero {
    min-height: 45vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;

    background: linear-gradient(135deg, #ffd9e8 0%, #fff0f6 45%, #ffe4ee 100%);
}

/* brillo decorativo superior */
.chapter-hero::before {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    top: -120px;
    left: -80px;
    background: rgba(255, 182, 193, 0.35);
    filter: blur(60px);
}

/* brillo decorativo lateral */
.chapter-hero::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    bottom: -100px;
    right: -60px;
    background: rgba(255, 105, 180, 0.22);
    filter: blur(50px);
}

.chapter-hero h1 {
    font-size: 4rem;
    font-weight: 700;
    color: #d81b60;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    letter-spacing: 1px;
}

.chapter-hero p {
    font-size: 1.2rem;
    color: #7a5563;
    max-width: 650px;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

/* línea decorativa */
.chapter-hero p::after {
    content: "";
    display: block;
    width: 90px;
    height: 3px;
    margin: 20px auto 0;
    border-radius: 10px;
    background: linear-gradient(to right, #ff8fb1, #e91e63);
}
.love-letter-page {
    min-height: 100vh;
    padding: 140px 8% 80px;
    background: linear-gradient(180deg, #fff5f8 0%, #ffe6ef 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* brillos decorativos */
.love-letter-page::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    top: -100px;
    left: -80px;
    background: rgba(255, 182, 193, 0.35);
    filter: blur(60px);
}

.love-letter-page::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    bottom: -80px;
    right: -60px;
    background: rgba(255, 105, 180, 0.22);
    filter: blur(55px);
}

/* tarjeta principal de carta */
.love-letter-page .letter-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    width: min(900px, 100%);
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(255, 105, 180, 0.14);
    position: relative;
    z-index: 2;
    transition: all 0.35s ease;
}

.love-letter-page .letter-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(255, 105, 180, 0.22);
}

.love-letter-page h1 {
    font-size: 3rem;
    color: #d81b60;
    margin-bottom: 30px;
    text-align: center;
}

.love-letter-page p {
    font-size: 1.15rem;
    line-height: 2;
    color: #555;
    text-align: justify;
}
.signature {
    margin-top: 40px;
    text-align: right;
    font-style: italic;
    color: #e91e63;
    font-size: 1.1rem;
}
.lantern-invitation-page {
    min-height: 100vh;
    padding: 120px 8%;
    background: linear-gradient(180deg, #fff4f8 0%, #ffe0eb 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* estrellas suaves */
.stars::before {
    content: "✨ ✨ ✨ ✨ ✨";
    position: absolute;
    top: 70px;
    width: 100%;
    text-align: center;
    opacity: 0.4;
    font-size: 1.5rem;
}

.lantern-card {
    width: min(900px, 100%);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-radius: 35px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(255,105,180,0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lantern-card::before {
    content: "☀️";
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 2.5rem;
    opacity: 0.25;
}

/* referencia al sol de Rapunzel */
.invite-tag {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 30px;
    background: #ffd1df;
    color: #d81b60;
    font-weight: bold;
    margin-bottom: 25px;
}

.lantern-card h1 {
    font-size: 3rem;
    color: #d81b60;
    margin-bottom: 30px;
}

.invite-text {
    font-size: 1.1rem;
    line-height: 2;
    color: #555;
    margin-bottom: 20px;
}

.invite-highlight {
    margin: 35px 0;
    font-size: 1.3rem;
    color: #e91e63;
    font-weight: bold;
}

.event-details {
    margin: 40px 0;
    display: grid;
    gap: 18px;
}

.detail-item {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 1.05rem;
}

.magic-btn {
    background: linear-gradient(135deg, #ff8fb1, #e91e63);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 35px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.35s ease;
}

.magic-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 25px rgba(233,30,99,0.25);
}

.hidden-message {
    margin-top: 30px;
    opacity: 0;
    transition: all 0.5s ease;
    color: #d81b60;
    font-weight: bold;
}

.hidden-message.show {
    opacity: 1;
}
.gallery {
    min-height: 100vh;
    padding: 120px 8%;
    background: linear-gradient(180deg, #fff6fa 0%, #ffe7f0 100%);
    position: relative;
}

.gallery h2 {
    text-align: center;
    font-size: 2.8rem;
    color: #d81b60;
    margin-bottom: 60px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    justify-items: center;
}

.polaroid {
    width: 320px;
    background: white;
    padding: 18px 18px 60px;
    border-radius: 8px;
    box-shadow: 0 18px 35px rgba(0,0,0,0.12);
    transition: all 0.35s ease;
    position: relative;
    cursor: pointer;
    --rotation: 0deg;
    transform: rotate(var(--rotation));
}

.polaroid:hover {
    transform: rotate(var(--rotation)) scale(1.05) translateY(-8px);
    box-shadow: 0 24px 45px rgba(255,105,180,0.18);
}

.polaroid img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

/* rotación automática estilo álbum */
.photo-grid .polaroid:nth-child(4n + 1) {
    --rotation: -4deg;
}

.photo-grid .polaroid:nth-child(4n + 2) {
    --rotation: 3deg;
}

.photo-grid .polaroid:nth-child(4n + 3) {
    --rotation: 2deg;
}

.photo-grid .polaroid:nth-child(4n + 4) {
    --rotation: -3deg;
}

.invite-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 20, 30, 0.55);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.invite-modal-content {
    background: linear-gradient(180deg, #fff8fb 0%, #ffe7f0 100%);
    
    width: min(420px, 80vw);
    max-width: 420px;
    
    max-height: 70vh;
    overflow-y: auto;

    padding: 28px;
    border-radius: 24px;

    box-shadow: 0 25px 60px rgba(0,0,0,0.18);
    position: relative;
    text-align: center;
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 18px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: #d81b60;
}

.modal-sun {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.invite-modal-content h2 {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
}

.modal-intro,
.modal-text,
.modal-details p {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    line-height: 1.7;
}

.modal-footer {
    margin-top: 30px;
    font-size: 1.2rem;
    color: #e91e63;
    font-weight: bold;
}