@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;600;700&family=Playfair+Display:wght@400;600&family=Open+Sans:wght@300;400&display=swap');

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

body { font-family: 'Open Sans', sans-serif; background: linear-gradient(135deg, #6b7b5a 0%, #8b9b6a 100%); min-height: 100vh; display: flex; justify-content: center; align-items: center; padding: 20px; }
.invitation-container { max-width: 600px; width: 100%; background: linear-gradient(135deg, #f8f6f0 0%, #fff 100%); border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); overflow: hidden; position: relative; animation: fadeIn 1s ease-out; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.floral-border { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: radial-gradient(circle at 10% 10%, rgba(139, 155, 106, 0.1) 0%, transparent 50%), radial-gradient(circle at 90% 10%, rgba(139, 155, 106, 0.1) 0%, transparent 50%), radial-gradient(circle at 10% 90%, rgba(139, 155, 106, 0.1) 0%, transparent 50%), radial-gradient(circle at 90% 90%, rgba(139, 155, 106, 0.1) 0%, transparent 50%); pointer-events: none; }
.header { text-align: center; padding: 40px 30px 20px; position: relative; }
.rings { font-size: 5rem; color: #8b9b6a; margin-bottom: 20px; animation: sparkle 2s ease-in-out infinite; }

@keyframes sparkle { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.title { font-family: 'Dancing Script', cursive; font-size: 2.5rem; color: #6b7b5a; margin-bottom: 10px; font-weight: 600; }
.subtitle { font-family: 'Playfair Display', serif; font-size: 1rem; color: #8b8b8b; letter-spacing: 2px; text-transform: uppercase; }
.names-section { padding: 30px; text-align: center; background: linear-gradient(135deg, rgba(139, 155, 106, 0.05) 0%, rgba(255, 255, 255, 0.8) 100%); margin: 20px; border-radius: 15px; border: 2px solid rgba(139, 155, 106, 0.2); }
.bride-groom { font-family: 'Dancing Script', cursive; font-size: 2.8rem; color: #6b7b5a; margin: 15px 0; font-weight: 700; text-shadow: 1px 1px 2px rgba(0,0,0); }

/* Subname style extracted from inline */
.bride-groom-sub { font-size: 1.8rem; color: #8b8b8b; }
.ampersand { font-size: 4rem; color: #8b9b6a; margin: 20px 0; font-family: 'Dancing Script', cursive; animation: float 3s ease-in-out infinite; }

@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } }
.details-section { padding: 30px; }
.detail-item { display: flex; align-items: center; margin: 25px 0; padding: 15px; background: rgba(139, 155, 106, 0.05); border-radius: 10px; border-left: 4px solid #8b9b6a; }
.detail-icon { font-size: 1.5rem; color: #8b9b6a; margin-right: 15px; width: 30px; text-align: center; }
.detail-content h3 { font-family: 'Playfair Display', serif; color: #6b7b5a; font-size: 1.1rem; margin-bottom: 5px; }
.detail-content p { color: #666; font-size: 0.95rem; line-height: 1.4; }
.rsvp-section { background: rgba(139, 155, 106, 0.05); color: #6b7b5a; padding: 30px; text-align: center; border-radius: 20px; }
.rsvp-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 15px; }
.rsvp-details { font-size: 0.9rem; line-height: 1.6; margin-bottom: 20px; }
.contact-info { background: rgba(255,255,255,0.1); padding: 15px; border-radius: 10px; display: inline-block; }
.flowers { position: absolute; color: rgba(139, 155, 106, 0.3); font-size: 2rem; animation: sway 4s ease-in-out infinite; }

@keyframes sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }

.flower-1 { top: 20px; left: 20px; }
.flower-2 { top: 20px; right: 20px; }
.flower-3 { bottom: 20px; left: 20px; }
.flower-4 { bottom: 20px; right: 20px; }
.rsvp-form { margin: 20px 0; text-align: left; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: 10px; }
.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-option { display: flex; align-items: center; cursor: pointer; padding: 10px; border-radius: 8px; background: rgba(255,255,255,0.1); transition: all 0.3s ease; }
.radio-option:hover { background: rgba(255,255,255,0.2); transform: translateX(5px); }
.radio-option input[type="radio"] { display: none; }
.radio-custom { width: 20px; height: 20px; border: 2px solid; border-radius: 50%; margin-right: 10px; position: relative; transition: all 0.3s ease; }
.radio-option input[type="radio"]:checked + .radio-custom { background: white; border-color: white; }
.radio-option input[type="radio"]:checked + .radio-custom::after { content: ''; width: 8px; height: 8px; background: #6b7b5a; border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.radio-text { font-size: 1rem; }
.guest-select, .text-input { width: 100%; padding: 12px; border: 2px solid rgba(255,255,255,0.3); border-radius: 8px; background: rgba(255,255,255,0.1); font-size: 1rem; font-family: 'Open Sans', sans-serif; }
.guest-select:focus, .text-input:focus { outline: none; background: rgba(255,255,255,0.2); }
.text-input { background: #6b7b5a36 }
.guest-select option { background: #6b7b5a; color: white; }
.submit-btn { width: 100%; padding: 15px; background: linear-gradient(135deg, #8b9b6a 0%, #a0b070 100%); border: none; border-radius: 10px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; margin-top: 10px; }
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* Buttons extracted from inline styles */
.confirm-btn { margin: 0 auto; display: block; max-width: 320px; }
.map-btn { margin-top: 10px; padding: 8px 16px; background: #8b9b6a; color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 0.95rem; }
.gift-btn { margin-top: 18px; max-width: 320px; display: block; margin-left: auto; margin-right: auto; }
.success-message { background: rgba(0,255,0,0.2); color: white; padding: 15px; border-radius: 8px; margin-top: 15px; text-align: center; display: none; }
.footer-message { text-align: center; padding: 20px; font-family: 'Dancing Script', cursive; font-size: 1.3rem; color: #8b9b6a; background: linear-gradient(135deg, rgba(139, 155, 106, 0.05) 0%, transparent 100%); }
.countdown-section { font-family: 'Dancing Script', cursive; text-align: center; margin: 20px 0 30px; }
.countdown-number { font-size: clamp(3rem, 14vw, 8rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: #222; }
.countdown-label { font-size: clamp(1rem, 3vw, 1.5rem); color: #666; margin-top: 4px; }

/* Destacar el número asignado (contorno y tamaño mayor) */
#assignedTickets, #assignedTicketsInline {font-family: 'Open Sans', sans-serif; display: inline-block; font-weight: 800; font-size: clamp(1.25rem, 4vw, 1.6rem); color: #6b7b5a; padding: 2px 10px; border: 2px solid #8b9b6a; border-radius: 999px; background: rgba(139,155,106,0.12); line-height: 1.1; box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 1px 2px rgba(0,0,0,0.06);}

@media (max-width: 768px) { .invitation-container { margin: 10px; } .bride-groom { font-size: 2.2rem; } .ampersand { font-size: 3rem; } .title { font-size: 2rem; } }

/* asistencia.html specific */
.hidden { display: none !important; }
.name-status { margin-top: 6px; color: #fff; opacity: .9; font-size: .9rem; min-height: 1em; }
#guestCountGroup.hidden { display: none; }

/* Modal de éxito */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: none; align-items: center; justify-content: center; z-index: 1000; }
.modal-backdrop.show { display: flex; }
.modal-card { background: #fff; color: #222; width: calc(100% - 48px); max-width: 440px; padding: 22px 20px; border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,0.2); text-align: center; }
.modal-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.modal-card p { color: #555; margin-bottom: 14px; }
.modal-actions { display: flex; justify-content: center; }
.modal-actions .submit-btn { min-width: 160px; }
