/* Estilos adicionales para la invitación */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: #ff4081;
    animation: confetti-fall 3s linear infinite;
    z-index: -1;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.gift {
    position: relative;
    width: 60px;
    height: 60px;
    background-color: #e91e63;
    margin: 20px auto;
    border-radius: 5px;
    overflow: hidden;
}

.gift:before {
    content: '';
    position: absolute;
    width: 10px;
    height: 60px;
    background-color: #9c27b0;
    left: 50%;
    transform: translateX(-50%);
}

.gift:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 10px;
    background-color: #9c27b0;
    top: 50%;
    transform: translateY(-50%);
}

.gift-top {
    position: absolute;
    width: 70px;
    height: 20px;
    background-color: #e91e63;
    bottom: 60px;
    left: -5px;
    border-radius: 5px;
}

.gift-top:before {
    content: '';
    position: absolute;
    width: 10px;
    height: 20px;
    background-color: #9c27b0;
    left: 50%;
    transform: translateX(-50%);
}

.gallery {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.photo-frame {
    width: 100px;
    height: 100px;
    background-color: #fff;
    border: 5px solid #e91e63;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.photo-frame:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: #9c27b0;
    box-shadow: 0 8px 20px rgba(156, 39, 176, 0.3);
}

.map-container {
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    height: 200px;
    border: 5px solid #ffb6c1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.social-share {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: #ad1457;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    transition: transform 0.3s, background-color 0.3s;
}

.social-icon:hover {
    transform: scale(1.2);
    background-color: #ff4081;
}

.bounce {
    animation: bounce 0.5s;
}

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

/* Efectos de brillo */
.sparkle-effect {
    position: absolute;
    background-image: url('https://i.pinimg.com/originals/a2/dc/96/a2dc9668f2cf170fe3efeb263128b0e7.png');
    background-size: contain;
    background-repeat: no-repeat;
    animation: shine 2s ease-in-out infinite;
    z-index: 2;
    opacity: 0.6;
}

@keyframes shine {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Flores decorativas */
.flower {
    position: absolute;
    background-image: url('https://i.pinimg.com/originals/56/5a/91/565a9134d34ecf80f99093e36f2e3d4a.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 2;
    opacity: 0.7;
}

/* Elementos flotantes */
.floating {
    position: absolute;
    font-size: 20px;
    color: #ff4081;
    animation: float-around 15s linear infinite;
    z-index: 2;
}

@keyframes float-around {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    25% { transform: translate(25px, -25px) rotate(90deg); }
    50% { transform: translate(0, -50px) rotate(180deg); }
    75% { transform: translate(-25px, -25px) rotate(270deg); }
    90% { opacity: 1; }
    100% { transform: translate(0, 0) rotate(360deg); opacity: 0; }
}

/* Efecto de iluminación en bordes */
.glow-border {
    position: relative;
}

.glow-border::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 12px;
    background: linear-gradient(45deg, #ff4081, #ad1457, #ff4081, #ad1457);
    background-size: 400% 400%;
    z-index: -1;
    animation: glowing 5s ease infinite;
}

@keyframes glowing {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Mejoras para móviles */
@media (max-width: 600px) {
    .main-image {
        max-width: 90%;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Estilos para impresión */
@media print {
    body {
        background: white;
    }
    
    .invitation-card {
        box-shadow: none;
        border: 1px solid #ffb6c1;
    }
}

/* Estilos mejorados para la invitación de cumpleaños de Milana */

/* Animaciones principales */
@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-40px) rotate(0deg); }
    75% { transform: translateY(-20px) rotate(-5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); text-shadow: 0 0 15px rgba(255, 64, 129, 0.4); }
    100% { transform: scale(1); }
}

@keyframes colorChange {
    0% { color: #ff1744; }
    25% { color: #ff4081; }
    50% { color: #f50057; }
    75% { color: #ff4081; }
    100% { color: #ff1744; }
}

@keyframes jelly {
    0% { transform: scale(1); }
    30% { transform: scale(1.15); }
    40% { transform: scale(0.94); }
    50% { transform: scale(1.08); }
    65% { transform: scale(0.97); }
    75% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes tada {
    0% { transform: scale(1) rotate(0deg); }
    10%, 20% { transform: scale(0.9) rotate(-3deg); }
    30%, 50%, 70%, 90% { transform: scale(1.1) rotate(3deg); }
    40%, 60%, 80% { transform: scale(1.1) rotate(-3deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes swing {
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-10deg); }
    60% { transform: rotate(5deg); }
    80% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

@keyframes shinyEffect {
    0% { transform: rotate(30deg) translateX(-100%); }
    50% { transform: rotate(30deg) translateX(100%); }
    100% { transform: rotate(30deg) translateX(-100%); }
}

@keyframes shinyButton {
    0% { transform: rotate(30deg) translateX(-100%); }
    100% { transform: rotate(30deg) translateX(100%); }
}

@keyframes cakeBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); filter: drop-shadow(0 0 10px rgba(255, 23, 68, 0.5)); }
    50% { transform: translateY(-10px) rotate(5deg); filter: drop-shadow(0 0 15px rgba(255, 64, 129, 0.7)); }
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Confeti y elementos decorativos */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 20px;
    background-color: #ff80ab;
    animation: confetti-fall 6s linear infinite;
    opacity: 0.7;
}

.confetti.round {
    border-radius: 50%;
    width: 10px;
    height: 10px;
}

.confetti.star {
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    width: 15px;
    height: 15px;
}

.balloon {
    position: absolute;
    width: 50px;
    height: 65px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    z-index: 1;
    animation: float 12s ease-in-out infinite;
    transform-origin: bottom center;
    box-shadow: inset -5px -5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
}

.balloon::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 15px;
    background: rgba(0, 0, 0, 0.2);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.balloon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
    top: 0;
    left: 0;
}

.balloon1 {
    background: linear-gradient(135deg, #ff66a3, #ff0066);
    left: 5%;
    top: 10%;
    animation-delay: 0s;
}

.balloon2 {
    background: linear-gradient(135deg, #66c2ff, #0066ff);
    right: 5%;
    top: 15%;
    animation-delay: 1s;
}

.balloon3 {
    background: linear-gradient(135deg, #ffff66, #ffcc00);
    left: 8%;
    bottom: 20%;
    animation-delay: 2s;
}

.balloon4 {
    background: linear-gradient(135deg, #99ff99, #33cc33);
    right: 8%;
    bottom: 25%;
    animation-delay: 3s;
}

.balloon5 {
    background: linear-gradient(135deg, #cc99ff, #9933ff);
    left: 40%;
    top: 5%;
    animation-delay: 4s;
}

/* Elementos de la tarjeta */
.invitation-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 40px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 8px solid var(--primary-color);
    margin-bottom: 30px;
    z-index: 200;
}

@keyframes card-appear {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.card-content {
    position: relative;
    z-index: 2;
}

.main-image {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border: 5px solid #ff80ab;
    transform-style: preserve-3d;
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

.main-image:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 10px 25px rgba(255, 0, 102, 0.25);
}

h1 {
    color: #ff1744;
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-family: 'Pacifico', cursive;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.15);
    animation: colorChange 4s infinite;
    cursor: pointer;
}

h2 {
    color: #ff4081;
    font-size: 2rem;
    margin-top: 0;
    font-family: 'Pacifico', cursive;
    animation: pulse 2s infinite;
    cursor: pointer;
}

.details {
    margin: 30px 0;
    font-size: 1.3rem;
    color: #333;
    background-color: #fff8fa;
    border-radius: 15px;
    padding: 25px;
    border: 2px dashed #ff80ab;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.details::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 128, 171, 0.1),
        rgba(255, 128, 171, 0.05),
        rgba(255, 77, 77, 0.02)
    );
    transform: rotate(30deg);
    animation: shinyEffect 6s infinite;
}

.details p {
    margin: 20px 0;
    position: relative;
    z-index: 1;
    transition: transform 0.3s, color 0.3s;
}

.details p:hover {
    transform: translateX(5px);
    color: #ff1744;
}

.emoji {
    font-size: 2rem;
    margin: 0 10px;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
    transition: transform 0.3s, filter 0.3s;
}

.cake {
    font-size: 3rem;
    display: inline-block;
    margin: 0 10px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(255, 23, 68, 0.5));
    animation: cakeBounce 2s ease infinite;
    cursor: pointer;
}

.countdown {
    background: linear-gradient(45deg, #ff80ab, #ff4081);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    color: white;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid #fff;
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 250;
}

.countdown p {
    font-size: 1.3em;
    margin: 5px 0;
    z-index: 252;
    position: relative;
}

#countdown {
    font-size: 1.6em;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
    animation: pulse 2s infinite;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

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

.countdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s infinite;
    z-index: 1;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.map-container {
    margin: 25px 0;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    border: 5px solid #ff80ab;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.map-container:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 0, 102, 0.2);
}

/* Ajustes para diferentes dispositivos */
@media (max-width: 800px) {
    .invitation-card {
        width: 92%;
        padding: 25px 15px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .details {
        font-size: 1.2rem;
        padding: 15px;
    }
    
    .emoji {
        font-size: 1.8rem;
    }
    
    .cake {
        font-size: 2.5rem;
    }
    
    .balloon {
        width: 40px;
        height: 50px;
    }
}

@media (max-width: 500px) {
    .invitation-card {
        padding: 20px 12px;
        width: 95%;
    }
    
    h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .details {
        font-size: 1.1rem;
        padding: 12px;
        margin: 20px 0;
    }
    
    .emoji {
        font-size: 1.5rem;
        margin: 0 5px;
    }
    
    .map-container {
        height: 200px;
        margin: 20px 0;
    }
    
    .countdown {
        font-size: 1.2rem;
        padding: 12px;
    }
    
    .cake {
        font-size: 2rem;
    }
}

:root {
    --primary-color: #ff69b4;
    --secondary-color: #ffb6c1;
    --accent-color: #ff1493;
    --background-color: #fff5f5;
    --text-color: #333;
}

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

body {
    font-family: 'Comic Neue', cursive;
    background-image: url('fondoMelody.png');
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

.invitation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1000px;
}

.invitation-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 40px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 8px solid var(--primary-color);
    margin-bottom: 30px;
    z-index: 200;
}

.header {
    margin-bottom: 30px;
    position: relative;
}

.header h1 {
    color: var(--accent-color);
    font-size: 3em;
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.2);
    animation: bounce 2s infinite;
}

.header p {
    color: var(--text-color);
    font-size: 1.4em;
    animation: fadeIn 1s ease-in;
}

.photo-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 30px auto;
}

.main-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: all 0.5s ease;
    cursor: pointer;
    border: 5px solid white;
}

.main-image:hover {
    transform: scale(1.05);
}

.footer {
    margin-top: 30px;
    text-align: center;
}

.melody-decoration {
    width: 120px;
    margin: 0 auto;
    display: block;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
}

.details {
    background: var(--background-color);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.details::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.5), transparent);
    transform: rotate(45deg);
    animation: shine 4s infinite;
}

.details p {
    margin: 15px 0;
    font-size: 1.3em;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.details p:hover {
    transform: scale(1.05);
}

.emoji {
    font-size: 2em;
    margin: 0 10px;
    display: inline-block;
    animation: wiggle 2s infinite;
}

.countdown {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    padding: 20px;
    margin: 30px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.countdown p {
    font-size: 1.4em;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.interactive-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.interactive-button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 15px;
    padding: 15px 25px;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.interactive-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.music-control {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
}

.music-control:hover {
    animation: pulse 1s infinite;
}

/* Game Section */
.game-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 40px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 8px solid var(--accent-color);
}

.game-section h2 {
    color: var(--accent-color);
    font-size: 2.5em;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.game-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.memory-game {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    perspective: 1000px;
    margin: 20px 0;
}

.memory-card {
    position: relative;
    width: 100%;
    height: 120px;
    transform-style: preserve-3d;
    transition: transform 0.5s;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.memory-card.flip {
    transform: rotateY(180deg);
}

.front-face, .back-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    overflow: hidden;
}

.front-face {
    background-color: var(--primary-color);
    transform: rotateY(180deg);
}

.back-face {
    background-color: var(--secondary-color);
    color: white;
    font-weight: bold;
}

.front-face img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.back-face img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.memory-win-message {
    font-size: 1.5em;
    color: var(--accent-color);
    margin: 20px 0;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.5s;
}

.game-button {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    border: none;
    border-radius: 15px;
    padding: 15px 25px;
    color: white;
    font-size: 1.2em;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.game-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Confetti and animation effects */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    animation: confetti-fall 5s linear infinite;
    z-index: -1;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(-15px) rotate(-5deg); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

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

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

@keyframes confetti-fall {
    0% { transform: translateY(-100vh) rotate(0); }
    100% { transform: translateY(100vh) rotate(360deg); }
}

/* Surprise message */
.surprise-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    font-size: 1.5em;
    color: var(--accent-color);
    text-align: center;
    z-index: 1000;
    animation: appear 0.5s forwards;
}

@keyframes appear {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

/* Particles */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    animation: particle-fade 1s ease-out forwards;
}

@keyframes particle-fade {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--x), var(--y)) scale(0); opacity: 0; }
}

/* Media queries */
@media (max-width: 768px) {
    .invitation-card,
    .game-section {
        padding: 30px;
    }

    .header h1 {
        font-size: 2.5em;
    }

    .photo-container {
        max-width: 300px;
    }

    .melody-decoration {
        width: 100px;
    }

    .memory-game {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .memory-card {
        height: 90px;
    }
}

@media (max-width: 480px) {
    .invitation-card,
    .game-section {
        padding: 20px;
    }

    .header h1 {
        font-size: 2em;
    }

    .photo-container {
        max-width: 250px;
    }

    .melody-decoration {
        width: 80px;
    }

    .memory-game {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .memory-card {
        height: 80px;
    }

    .details p {
        font-size: 1.1em;
    }

    .interactive-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

/* Notificación de cambio de música */
.music-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s;
    animation: notification-appear 0.5s;
}

@keyframes notification-appear {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* Notificación de música */
.music-notification {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 192, 203, 0.9);
    color: #e91e63;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    z-index: 1000;
    transition: opacity 0.5s;
}

/* Mejorar el botón de música para hacerlo más atractivo */
.music-control {
    padding: 10px 15px;
    background: linear-gradient(45deg, #ffb6c1, #ffc0cb);
    border: 2px solid #e91e63;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    font-size: 16px;
}

.music-control:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #ffc0cb, #ffb6c1);
}

.music-control.playing {
    background: linear-gradient(45deg, #e91e63, #ff94b3);
    color: white;
}

.music-text {
    font-weight: bold;
    font-size: 14px;
}

.bounce {
    animation: bounce 0.5s;
}

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

@media (max-width: 600px) {
    .music-control {
        padding: 8px 12px;
        font-size: 14px;
        bottom: 15px;
        right: 15px;
    }
    
    .music-text {
        font-size: 12px;
    }
}

/* Efectos nuevos para la sorpresa */
.glow-effect {
    animation: card-glow 2s ease-in-out;
    position: relative;
}

@keyframes card-glow {
    0%, 100% { box-shadow: 0 15px 40px rgba(0,0,0,0.3); }
    50% { box-shadow: 0 0 50px 20px rgba(255, 105, 180, 0.7); }
}

.bounce-effect {
    animation: bounce-image 1s ease-in-out;
}

@keyframes bounce-image {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.1) rotate(3deg); }
    60% { transform: scale(0.9) rotate(-3deg); }
    80% { transform: scale(1.05) rotate(2deg); }
}

@keyframes floatStar {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(20deg); }
}

.floating-star {
    position: fixed;
    pointer-events: none;
    filter: drop-shadow(0 0 5px rgba(255, 255, 0, 0.7));
}

/* Mejoras para la sorpresa en móviles */
@media (max-width: 600px) {
    .rainbow {
        height: 50px !important;
        width: 90% !important;
    }
    
    .floating-star {
        font-size: 15px !important;
    }
}

/* Estilos para el número 7 en el juego de memoria */
.memory-card[data-image="number7"] .front-face {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ffe6f2, #ffb6c1) !important;
    font-family: 'Comic Neue', cursive;
}

.memory-card[data-image="number7"] .front-face::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('https://i.pinimg.com/originals/1e/14/a8/1e14a8714257e4a911b9104de2e85fab.png');
    background-size: 30px;
    background-repeat: repeat;
    opacity: 0.1;
    z-index: -1;
}

/* Ajuste para que el juego de memoria tenga el número correcto de columnas */
.memory-game {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)) !important;
    max-width: 500px;
    margin: 0 auto;
}

@media (min-width: 600px) {
    .memory-game {
        grid-template-columns: repeat(6, 1fr) !important;
    }
}

@media (max-width: 599px) {
    .memory-game {
        grid-template-columns: repeat(3, 1fr) !important;
    }
} 