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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Corazones flotantes de fondo */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.heart {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: rgba(255, 182, 193, 0.6);
    transform: rotate(45deg);
    animation: float 15s infinite ease-in-out;
}

.heart::before,
.heart::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: rgba(255, 182, 193, 0.6);
    border-radius: 50%;
}

.heart::before {
    top: -10px;
    left: 0;
}

.heart::after {
    left: 10px;
    top: 0;
}

.heart:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.heart:nth-child(2) {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 15s;
}

.heart:nth-child(3) {
    left: 50%;
    animation-delay: 4s;
    animation-duration: 18s;
}

.heart:nth-child(4) {
    left: 70%;
    animation-delay: 1s;
    animation-duration: 14s;
}

.heart:nth-child(5) {
    left: 85%;
    animation-delay: 3s;
    animation-duration: 16s;
}

.heart:nth-child(6) {
    left: 15%;
    animation-delay: 5s;
    animation-duration: 13s;
}

@keyframes float {
    0% {
        top: 100%;
        opacity: 0;
        transform: rotate(45deg) scale(0);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: -10%;
        opacity: 0;
        transform: rotate(45deg) scale(1);
    }
}

/* Contenedor principal */
.container {
    position: relative;
    z-index: 1;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.main-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 40px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-in;
}

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

/* Título con animación de olas */
.title {
    text-align: center;
    font-size: 3em;
    margin-bottom: 30px;
    color: #764ba2;
}

.wave {
    display: inline-block;
    animation: wave 1.5s ease-in-out infinite;
}

.wave:nth-child(1) { animation-delay: 0s; }
.wave:nth-child(2) { animation-delay: 0.1s; }
.wave:nth-child(3) { animation-delay: 0.2s; }
.wave:nth-child(4) { animation-delay: 0.3s; }
.wave:nth-child(5) { animation-delay: 0.4s; }
.wave:nth-child(6) { animation-delay: 0.5s; }
.wave:nth-child(7) { animation-delay: 0.6s; }
.wave:nth-child(8) { animation-delay: 0.7s; }
.wave:nth-child(9) { animation-delay: 0.8s; }
.wave:nth-child(10) { animation-delay: 0.9s; }
.wave:nth-child(11) { animation-delay: 1s; }
.wave:nth-child(12) { animation-delay: 1.1s; }

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

.heart-icon {
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
    font-size: 1.2em;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.3);
    }
}

/* Caja de mensaje */
.message-box {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.emoji-large {
    font-size: 4em;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

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

.message-box h2 {
    color: #764ba2;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.main-message {
    font-size: 1.2em;
    color: #555;
    line-height: 1.6;
}

/* Grid de razones */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.reason-card {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.reason-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.reason-card .emoji {
    font-size: 3em;
    margin-bottom: 10px;
}

.reason-card h3 {
    color: #764ba2;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.reason-card p {
    color: #666;
    font-size: 0.95em;
}

/* Sección de disculpa */
.apology-section {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.gradient-text {
    background: linear-gradient(45deg, #764ba2, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.apology-text {
    font-size: 1.1em;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
}

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

.promise {
    background: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    color: #764ba2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.promise:hover {
    transform: scale(1.1);
}

/* Sección interactiva */
.interactive-section {
    text-align: center;
    margin: 40px 0;
}

.smile-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: 1.3em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(118, 75, 162, 0.4);
    font-weight: bold;
}

.smile-button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(118, 75, 162, 0.6);
}

.smile-button:active {
    transform: scale(0.95);
}

.love-message {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #ffeaa7 0%, #fd79a8 100%);
    border-radius: 20px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s ease;
}

.love-message.show {
    opacity: 1;
    transform: scale(1);
    animation: pulse 1s ease;
}

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

.love-message.hidden {
    display: none;
}

.explosion {
    font-size: 3em;
    margin-bottom: 15px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.love-message h2 {
    color: #764ba2;
    font-size: 2em;
    margin-bottom: 15px;
}

.love-message p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 20px;
}

.big-heart {
    font-size: 5em;
    animation: heartbeat 1s ease-in-out infinite;
}

/* Footer */
.footer-message {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.footer-message p {
    font-size: 1.3em;
    color: #764ba2;
    font-weight: bold;
    margin-bottom: 10px;
}

.signature {
    font-style: italic;
    color: #999;
    font-size: 1.1em;
}

/* Animación para corazones flotantes al hacer clic */
@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-1000px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        padding: 20px;
    }

    .title {
        font-size: 2em;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
    }

    .gradient-text {
        font-size: 2em;
    }

    .smile-button {
        padding: 15px 30px;
        font-size: 1.1em;
    }
}
