:root {
    --azul: #4A90E2;
    --celeste-bg: #E3F2FD;
    --blanco: #FFFFFF;
    --texto: #2C3E50;
    --shadow: 0 12px 40px rgba(0,0,0,0.08);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: #f0f7ff;
    color: var(--texto);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

/* MARIPOSAS VOLADORAS (FONDO) */
.butterfly-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1; /* Por debajo de la tarjeta */
    pointer-events: none;
}

.butterfly {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    width: 80px;
    animation: fly 5s infinite ease-in-out;
}

/* Rutas de vuelo diferentes */
/*.b1 { top: 10%; left: 5%; animation-duration: 18s; }
.b2 { top: 70%; right: 5%; animation-duration: 22s; animation-delay: 2s; }
.b3 { top: 40%; left: 20%; animation-duration: 25s; animation-delay: 5s; }
.b4 { bottom: 10%; right: 20%; animation-duration: 20s; }*/

.b1 { top: 10%; left: 5%; animation-duration: 5s; }
.b2 { top: 70%; right: 5%; animation-duration: 12s; animation-delay: 1s; }
.b3 { top: 40%; left: 20%; animation-duration: 25s; animation-delay: 2s; }
.b4 { bottom: 10%; right: 20%; animation-duration: 8s; }

@keyframes fly {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, 50px) rotate(15deg); }
    66% { transform: translate(-20px, 100px) rotate(-10deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* CONTENEDOR PRINCIPAL */
.main-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 10; /* Por encima de las mariposas */
    margin-top: 30px;

}

/* LA TARJETA */
.card {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    padding: 40px 25px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(74, 144, 226, 0.15);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.corner-butterfly {
    width: 80px;
    position: absolute;
    top: -30px;
    right: -15px;
}

.tagline { letter-spacing: 4px; font-size: 0.75rem; color: var(--azul); font-weight: 600; }
.main-title { font-family: 'Great Vibes', cursive; font-size: 3.5rem; color: var(--azul); margin: 10px 0; }

.invite-text { font-size: 0.95rem; line-height: 1.6; margin-bottom: 25px; font-weight: 300; }

/* GRIDS DE INFO */
.info-grid {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.info-item {
    flex: 1;
    background: rgba(255, 255, 255, .7);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid var(--celeste-bg);
}

.label { display: block; font-weight: 600; font-size: 1rem; }
.big-number { font-size: 3rem; font-weight: 700; color: var(--azul); line-height: 1; }
.time { display: block; font-size: 1.4rem; font-weight: 600; margin-bottom: 5px; }
.loc-link { text-decoration: none; color: var(--azul); font-size: 0.85rem; font-weight: 600; }

.dress-code { margin-bottom: 30px; }
.dress-icons { font-size: 1.8rem; margin-top: 10px; }

/* SECCIÓN CONFIRMACIÓN */
.confirm-section {
    background: gba(240, 247, 255, 0.5);
    padding: 25px 15px;
    border-radius: 20px;
    border: 1.5px dashed var(--azul);
}

.deadline { font-size: 0.8rem; opacity: 0.7; margin-bottom: 15px; }

.custom-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #d1d9e6;
    font-family: inherit;
    margin-bottom: 15px;
    outline: none;
}

.radio-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.radio-btn {
    background: white;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #d1e3f8;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-primary {
    width: 100%;
    background: var(--azul);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* SECCIÓN MURO */
.muro-card {
    background: white;
    border-radius: 25px;
    padding: 30px 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.muro-text { height: 100px; resize: none; }

.file-label {
    display: inline-block;
    padding: 10px 20px;
    background: #eef5ff;
    color: var(--azul);
    border-radius: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    cursor: pointer;
}

.file-label input { display: none; }

.btn-dark {
    width: 100%;
    background: #2C3E50;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.thanks-text { font-family: 'Great Vibes', cursive; font-size: 2.5rem; color: var(--azul); margin-top: 20px; }

/* RESPONSIVE */
@media (max-width: 400px) {
    .main-title { font-size: 2.8rem; }
    .big-number { font-size: 2.5rem; }
}

.butterfly-float{width: 100%;}

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center; z-index: 9999;
}

.modal-content {
    background: white; padding: 30px; border-radius: 20px;
    text-align: center; max-width: 350px; width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-icon { font-size: 3rem; margin-bottom: 15px; }

.modal-content h2 { color: #2C3E50; margin-bottom: 10px; }

.modal-content p { font-size: 0.9rem; color: #7f8c8d; margin-bottom: 20px; }