@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Montserrat', sans-serif; color: #4a3728; background: #fdf9f3; }

/* === PÁGINA BASE === */
.inv-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* === HERO CON FOTO === */
.inv-hero {
    width: 100%;
    position: relative;
    padding: 48px 24px 0;
    background: linear-gradient(135deg, #f8e8d4 0%, #fce4ec 30%, #e8f0fe 60%, #f3e5f5 100%);
    overflow: hidden;
}
.inv-hero::before {
    content: '🌸';
    position: absolute;
    top: 20px; left: 20px;
    font-size: 28px;
    opacity: 0.3;
}
.inv-hero::after {
    content: '🌿';
    position: absolute;
    top: 30px; right: 24px;
    font-size: 24px;
    opacity: 0.3;
}

.inv-photo {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 28px;
    border: 5px solid #fff;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}
.inv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Flores decorativas alrededor de la foto */
.inv-photo-wrap {
    position: relative;
    display: inline-block;
}
.inv-photo-wrap .floral-tl { position: absolute; top: -8px; left: -8px; font-size: 32px; z-index: 3; }
.inv-photo-wrap .floral-tr { position: absolute; top: -8px; right: -8px; font-size: 28px; z-index: 3; }
.inv-photo-wrap .floral-bl { position: absolute; bottom: -4px; left: 0; font-size: 24px; z-index: 3; }
.inv-photo-wrap .floral-br { position: absolute; bottom: -4px; right: 0; font-size: 28px; z-index: 3; }

/* === NOMBRES === */
.inv-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 500;
    color: #5c3d2e;
    line-height: 1.15;
}
.inv-ampersand {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 44px;
    color: #d4956a;
    display: block;
    margin: 6px 0;
    font-weight: 300;
}

/* === SUBTÍTULO === */
.inv-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: #d4956a;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 24px;
}

/* === FECHA === */
.inv-date {
    font-size: 14px;
    color: #d4956a;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 600;
    margin: 24px 0;
    padding: 12px 24px;
    background: rgba(212,149,106,0.08);
    border-radius: 30px;
    display: inline-block;
}

/* === LÍNEA === */
.inv-line { width: 50px; height: 1px; background: #d4956a; margin: 24px auto; opacity: 0.5; }

/* === MENSAJE === */
.inv-message {
    max-width: 420px;
    margin: 0 auto 28px;
    color: #7a6050;
    line-height: 1.9;
    font-size: 14px;
    font-weight: 300;
}

/* === CONTENIDO === */
.inv-content { max-width: 520px; width: 100%; margin: 0 auto; position: relative; z-index: 1; }

.inv-body {
    background: #fdf9f3;
    padding: 40px 24px 60px;
    width: 100%;
}

/* === ORNAMENTO === */
.inv-ornament { color: #d4956a; font-size: 14px; letter-spacing: 10px; margin-bottom: 20px; opacity: 0.6; }

/* === NOMBRE INVITADO === */
.inv-guest-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    color: #5c3d2e;
    font-weight: 500;
}
.inv-guest-info { font-size: 12px; color: #b09080; font-weight: 400; }

/* === DETALLES EVENTO === */
.inv-details-box {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 28px;
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(212,149,106,0.12);
}
.inv-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    color: #6a5040;
    font-size: 13px;
    line-height: 1.6;
}
.inv-detail:last-child { margin-bottom: 0; }
.inv-detail i { color: #d4956a; width: 18px; text-align: center; margin-top: 3px; font-size: 14px; }
.inv-detail strong { color: #5c3d2e; font-weight: 600; }
.inv-detail a { color: #d4956a; font-weight: 500; text-decoration: none; }

/* === COUNTDOWN === */
.inv-countdown { display: flex; gap: 24px; justify-content: center; margin: 28px 0; }
.inv-countdown-item { text-align: center; background: #fff; padding: 14px 18px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); min-width: 70px; }
.inv-countdown-item .num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 34px;
    color: #5c3d2e;
    font-weight: 600;
    line-height: 1;
}
.inv-countdown-item .label {
    font-size: 9px;
    color: #d4956a;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
    font-weight: 600;
}

/* === RSVP === */
.rsvp-box {
    margin: 28px auto 0;
    padding: 28px 24px;
    background: #fff;
    border-radius: 16px;
    border: 2px solid #d4956a;
    box-shadow: 0 4px 20px rgba(212,149,106,0.1);
    max-width: 400px;
}
.rsvp-form .form-group { margin-bottom: 16px; text-align: left; }
.rsvp-form label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #7a6050;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.rsvp-form select, .rsvp-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e8ddd4;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #fdf9f3;
    color: #5c3d2e;
}
.rsvp-form select:focus, .rsvp-form input:focus {
    border-color: #d4956a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(212,149,106,0.12);
}

.btn-rsvp {
    display: block; width: 100%; padding: 14px;
    background: linear-gradient(135deg, #d4956a 0%, #c4785a 100%);
    color: #fff; border: none; border-radius: 10px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    letter-spacing: 1.5px; text-transform: uppercase;
    transition: 0.3s; font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 12px rgba(212,149,106,0.3);
}
.btn-rsvp:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(212,149,106,0.4); }

.btn-rsvp-decline {
    display: block; width: 100%; padding: 12px;
    background: transparent; color: #b09080;
    border: 1px solid #e8ddd4; border-radius: 10px;
    font-size: 11px; font-weight: 500; cursor: pointer;
    letter-spacing: 1px; text-transform: uppercase;
    transition: 0.3s; margin-top: 10px;
    font-family: 'Montserrat', sans-serif;
}
.btn-rsvp-decline:hover { border-color: #d4956a; color: #5c3d2e; }

.rsvp-confirmed {
    text-align: center; padding: 20px 0;
    background: rgba(34,197,94,0.05);
    border-radius: 12px; padding: 24px;
}
.rsvp-rejected {
    text-align: center;
    background: rgba(239,68,68,0.04);
    border-radius: 12px; padding: 24px;
}

.alert-inv {
    padding: 12px 20px; border-radius: 10px; margin-bottom: 20px;
    font-size: 13px; text-align: center;
}
.alert-inv-success { background: rgba(34,197,94,0.08); color: #166534; border: 1px solid rgba(34,197,94,0.2); }

/* === FOOTER === */
.inv-footer {
    margin-top: 40px;
    font-size: 10px;
    color: #c0b0a0;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* === PRONTO INVITACIÓN BOX === */
.inv-pronto-box {
    margin: 8px auto 28px;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(212,149,106,0.12);
    max-width: 400px;
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
    .inv-names { font-size: 30px; }
    .inv-ampersand { font-size: 32px; }
    .inv-photo { width: 200px; height: 200px; }
    .inv-countdown { gap: 12px; }
    .inv-countdown-item { padding: 10px 12px; min-width: 60px; }
    .inv-countdown-item .num { font-size: 28px; }
    .inv-hero { padding: 36px 20px 0; }
    .inv-body { padding: 32px 20px 48px; }
    .inv-photo-wrap .floral-tl, .inv-photo-wrap .floral-tr,
    .inv-photo-wrap .floral-bl, .inv-photo-wrap .floral-br { font-size: 20px; }
}
