:root {
    --olive-dark: #3d441e;
    --olive-text: #4b5320;
    --olive-mid: #6b7344;
    --olive-line: #8c9669;
    --grad-center: #f2f4e8;
    --grad-mid: #e4e8d4;
    --grad-edge: #b8be9a;
    --serif: 'Playfair Display', Georgia, serif;
    --body: 'Noto Serif', Georgia, serif;
    --script: 'Imperial Script', cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--body);
    font-weight: 300;
    color: var(--olive-text);
    background:
        radial-gradient(ellipse 120% 85% at 50% 40%, var(--grad-center) 0%, var(--grad-mid) 45%, var(--grad-edge) 100%);
    background-attachment: fixed;
}

/* Contenedor a ancho completo (mismo espacio que las flores) */
.invite {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 3.5rem 1.25rem 3rem;
    text-align: center;
    overflow: visible;
}

/* Placeholders esquinas — ancho completo */
.corner-flower {
    position: fixed;
    width: min(36vw, 10rem);
    pointer-events: none;
    z-index: 2;
    line-height: 0;
}

.corner-flower img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.corner-flower img[src=""],
.corner-flower img:not([src]) {
    display: none;
}

.corner-flower--tl { top: 0; left: 0; }
.corner-flower--tr { top: 0; right: 0; }
.corner-flower--bl { bottom: 0; left: 0; }
.corner-flower--br { bottom: 0; right: 0; }

.invite-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 24rem;
    margin: 0 auto;
}

.invite-eyebrow {
    font-family: var(--serif);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--olive-dark);
    margin: 0 0 0.75rem;
}

.invite-personal {
    font-family: var(--serif);
    color: var(--olive-dark);
    margin: 0 0 0.75rem;
    max-width: 19rem;
    line-height: 1.55;
}

.invite-personal.hidden { display: none; }

.invite-personal-line {
    display: block;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: none;
    margin-bottom: 0.35rem;
}

.invite-personal-event {
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.invite-eyebrow.hidden { display: none; }

.invite-name {
    font-family: var(--script);
    font-size: clamp(4rem, 18vw, 5.5rem);
    font-weight: 400;
    line-height: 0.95;
    margin: 0 0 2rem;
    color: var(--olive-dark);
}

/* Fecha: VIERNES | 10 | JULIO */
.date-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    max-width: 17rem;
    margin-bottom: 1.75rem;
}

.date-weekday,
.date-month {
    font-family: var(--serif);
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--olive-dark);
    flex: 1;
    text-align: center;
    line-height: 1.3;
}

.date-rule {
    width: 1px;
    height: 2.75rem;
    background: var(--olive-line);
    opacity: 0.7;
    flex-shrink: 0;
}

.date-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    min-width: 3.5rem;
}

.date-day {
    font-family: var(--serif);
    font-size: 2.75rem;
    font-weight: 400;
    line-height: 1;
    color: var(--olive-dark);
    letter-spacing: 0.02em;
}

.date-time {
    font-family: var(--serif);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    color: var(--olive-dark);
    margin-top: 0.2rem;
}

.invite-address {
    font-family: var(--serif);
    font-size: 0.78rem;
    line-height: 1.55;
    letter-spacing: 0.04em;
    color: var(--olive-text);
    margin: 0 0 1.25rem;
    max-width: 16rem;
}

.invite-notes {
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--olive-mid);
    margin: -0.75rem 0 1rem;
    max-width: 16rem;
    font-style: italic;
}

.btn-map {
    display: inline-block;
    padding: 0.45rem 1.35rem;
    border-radius: 999px;
    border: 1px solid var(--olive-dark);
    background: rgba(242, 244, 232, 0.45);
    color: var(--olive-dark);
    font-family: var(--serif);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    margin-bottom: 1.5rem;
}

.btn-map:hover {
    background: rgba(242, 244, 232, 0.85);
    border-color: var(--olive-mid);
}

.invite-envelope {
    color: var(--olive-dark);
    margin-bottom: 1rem;
    opacity: 0.9;
}

.invite-envelope svg {
    width: 2.75rem;
    height: 2.75rem;
}

.invite-note {
    font-family: var(--serif);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--olive-text);
    margin: 0;
    line-height: 1.5;
}

/* ── RSVP ── */
.rsvp-section {
    width: 100%;
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(140, 150, 105, 0.45);
}

.rsvp-section.hidden { display: none; }

.rsvp-heading {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 400;
    margin: 0 0 0.35rem;
    color: var(--olive-dark);
}

.rsvp-sub {
    font-size: 0.78rem;
    color: var(--olive-mid);
    margin: 0 0 1rem;
    line-height: 1.45;
}

.guest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(140, 150, 105, 0.3);
    text-align: left;
}

.guest-name {
    font-size: 0.82rem;
    color: var(--olive-dark);
}

.rsvp-btns { display: flex; gap: 0.3rem; }

.rsvp-btn {
    padding: 0.28rem 0.55rem;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid var(--olive-line);
    background: transparent;
    color: var(--olive-mid);
    cursor: pointer;
    font-family: var(--body);
    transition: all 0.15s;
}

.rsvp-btn.yes.selected {
    background: rgba(77, 122, 82, 0.2);
    border-color: #4d7a52;
    color: #3d5c40;
}

.rsvp-btn.no.selected {
    background: rgba(153, 60, 60, 0.12);
    border-color: rgba(153, 60, 60, 0.45);
    color: #7a3030;
}

.rsvp-message {
    width: 100%;
    margin-top: 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(140, 150, 105, 0.45);
    background: rgba(242, 244, 232, 0.6);
    color: var(--olive-dark);
    font-family: var(--body);
    font-size: 0.8rem;
    resize: vertical;
    min-height: 3.5rem;
    outline: none;
}

.rsvp-message:focus { border-color: var(--olive-mid); }

.rsvp-submit {
    margin-top: 0.85rem;
    width: 100%;
    padding: 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--olive-dark);
    background: rgba(242, 244, 232, 0.5);
    color: var(--olive-dark);
    font-family: var(--serif);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.rsvp-submit:hover {
    background: rgba(242, 244, 232, 0.95);
}

.rsvp-done {
    padding: 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(140, 150, 105, 0.4);
    background: rgba(242, 244, 232, 0.55);
}

.rsvp-done h3 {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 400;
    margin: 0 0 0.35rem;
    color: var(--olive-dark);
}

.rsvp-done p {
    margin: 0;
    font-size: 0.78rem;
    color: var(--olive-mid);
    line-height: 1.45;
}

/* Toast */
.toast-wrap {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    pointer-events: none;
}

.toast {
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    font-size: 0.78rem;
    background: var(--grad-center);
    border: 1px solid var(--olive-line);
    color: var(--olive-dark);
    animation: fadeUp 0.3s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeUp 0.7s ease both; }

@media (min-width: 400px) {
    .invite {
        padding: 4rem 1.5rem 3rem;
    }
}
