/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    color: #333;
}

/* Página principal */
.page-main {
    background: linear-gradient(135deg, #ffd9e8, #fdf2f8);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Globos */
.balloon-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.balloon {
    position: absolute;
    width: 60px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--balloon-color);
    bottom: -100px;
    animation: float 15s ease-in-out infinite;
    transform: translateX(var(--balloon-x));
    animation-delay: calc(var(--balloon-y) * -0.01s);
}

.balloon:before {
    content: '';
    position: absolute;
    width: 10px;
    height: 20px;
    background-color: var(--balloon-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.balloon:after {
    content: '';
    position: absolute;
    width: 2px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.2);
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes float {
    0% { transform: translate(var(--balloon-x), 110vh) rotate(0deg); }
    100% { transform: translate(calc(var(--balloon-x) - 10vw), -20vh) rotate(20deg); }
}

/* Confeti */
.confetti-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* Contenido principal */
.main-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 30px;
    margin-top: 30px;
    animation: fadeIn 1.5s ease-in-out;
}

.title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    color: #FF5E8A;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.subtitle {
    font-size: 1.8rem;
    color: #9962D0;
    margin-bottom: 40px;
}

/* Pastel */
.cake {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 30px auto 50px;
}

.cake-base {
    position: absolute;
    bottom: 0;
    width: 150px;
    height: 70px;
    background-color: #FF9ED8;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.cake-base:before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 150px;
    height: 30px;
    background-color: #FFD0EA;
    border-radius: 10px 10px 0 0;
}

.cake-top {
    position: absolute;
    bottom: 70px;
    width: 150px;
    height: 40px;
    background-color: #FFA9DD;
    border-radius: 10px 10px 0 0;
}

.candle {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 40px;
    background-color: #FFF;
    border-radius: 4px;
}

.flame {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 20px;
    background: radial-gradient(ellipse at bottom, #FFD700, #FF6347);
    border-radius: 50% 50% 35% 35%;
    box-shadow: 0 0 15px #FF6347, 0 0 30px #FF6347, 0 0 45px #FFD700;
    animation: flicker 1s infinite alternate;
}

@keyframes flicker {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
}

/* Botón de continuar */
.btn-continue {
    display: inline-block;
    padding: 12px 35px;
    background-color: #FF5E8A;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(255, 94, 138, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-continue:before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid #FF5E8A;
    border-radius: 35px;
    opacity: 0;
    transition: all 0.3s;
    transform: scale(1.1);
}

.btn-continue:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 20px rgba(255, 94, 138, 0.6);
}

.btn-continue:hover:before {
    opacity: 0.6;
    transform: scale(1);
}

/* Página de la carta */
.page-carta {
    background: linear-gradient(135deg, #ffe6ea, #fff4f6);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.hearts-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

/* Carta */
.letter-container {
    max-width: 800px;
    width: 90%;
    text-align: center;
    z-index: 2;
}

.letter {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    position: relative;
    transform-style: preserve-3d;
    animation: letterAppear 1s ease-out;
}

.letter:before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px dashed #FF5E8A;
    border-radius: 18px;
    z-index: -1;
}

@keyframes letterAppear {
    0% { opacity: 0; transform: translateY(50px) rotateX(-10deg); }
    100% { opacity: 1; transform: translateY(0) rotateX(0); }
}

.letter-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.letter-content h2 {
    font-family: 'Dancing Script', cursive;
    color: #FF5E8A;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.letter-content p {
    margin-bottom: 15px;
    text-align: left;
    color: #666;
}

.signature {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    text-align: right !important;
    margin-top: 30px;
    color: #333 !important;
}

/* Página del álbum */
.page-album {
    background: linear-gradient(135deg, #fff0f5, #fff8f8);
    min-height: 100vh;
    padding: 50px 20px;
    position: relative;
    overflow: hidden;
}

.roses-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.album-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.album-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #FF5E8A;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.photo-frame {
    perspective: 1000px;
}

.polaroid {
    background: #fff;
    padding: 15px 15px 60px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    transform: rotate(calc(var(--random, 0) * 6deg));
    transition: all 0.3s ease;
    position: relative;
}

.polaroid:hover {
    transform: scale(1.05) rotate(0);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.polaroid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.polaroid .caption {
    text-align: center;
    margin-top: 15px;
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    color: #555;
}

.final-message {
    text-align: center;
    margin-top: 50px;
    animation: fadeIn 2s;
}

.final-message h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #FF5E8A;
    margin-bottom: 10px;
}

.final-message p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

.heart-icon {
    font-size: 3rem;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Control de música */
.music-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.music-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #FF5E8A;
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.music-btn:hover {
    transform: scale(1.1);
}

/* Animaciones adicionales */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


