/* Portadas de la invitación: textura real con tinte, fotografía, arco y nubes. */
.iv-cover { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 72px 30px 120px; text-align: center; overflow: hidden; color: #fff; background: var(--iv-accent); transition: transform .8s cubic-bezier(.6, 0, .2, 1), opacity .8s; }
.is-embed .iv-cover { min-height: 844px; }
.iv-cover__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.iv-cover__tint { position: absolute; inset: 0; }
.iv-cover__tint--photo { background: linear-gradient(180deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, .08) 30%, rgba(0, 0, 0, .22) 55%, rgba(0, 0, 0, .66)); }
.iv-cover__text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; text-shadow: 0 1px 18px rgba(0, 0, 0, .18); }
.iv-cover .iv-kicker { font-size: .66rem; letter-spacing: .42em; opacity: .9; margin-bottom: 18px; }

/* Nombres: mayúsculas con "y" manuscrita (como una invitación de imprenta) o manuscrita completa. */
.iv-names { margin: 0; display: flex; flex-direction: column; align-items: center; font-family: var(--iv-script); font-weight: 400; font-size: 3.9rem; line-height: .98; }
.iv-names .iv-amp { font-size: .55em; line-height: 1.25; }
.iv-names--caps { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: clamp(1.6rem, 9vw, 2.35rem); max-width: 100%; overflow-wrap: anywhere; letter-spacing: .14em; text-transform: uppercase; line-height: 1.12; padding-left: .14em; }
.iv-names--caps .iv-amp { font-family: var(--iv-script); font-size: 1.55em; letter-spacing: 0; text-transform: none; line-height: .78; margin: 2px 0 4px; padding-right: .14em; }
.iv-spaced { margin: 22px 0 0; font: 500 .82rem var(--iv-sans); letter-spacing: .34em; }
.iv-city { margin: 0; font: .6rem var(--iv-sans); letter-spacing: .32em; text-transform: uppercase; opacity: .85; }
.iv-vrule { width: 1px; height: 64px; margin-top: 26px; background: currentColor; opacity: .55; }
.iv-open { position: absolute; z-index: 3; bottom: 54px; left: 50%; translate: -50% 0; padding: .95em 2em .7em; border: 1px solid currentColor; background: transparent; color: inherit; font: 500 .66rem var(--iv-sans); letter-spacing: .3em; text-transform: uppercase; cursor: pointer; transition: background .25s, color .25s; }
.iv-open::after { content: ''; display: block; width: 6px; height: 6px; margin: 6px auto 0; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.iv-open:hover { background: rgba(255, 255, 255, .14); }

/* Texturas claras (marfil, olivo): texto oscuro. */
.iv-cover.is-light { color: var(--iv-ink); }
.iv-cover.is-light .iv-cover__text { text-shadow: none; }
.iv-cover.is-light .iv-names--caps { color: color-mix(in srgb, var(--iv-ink) 82%, var(--iv-accent)); }
.iv-cover.is-light .iv-amp { color: var(--iv-accent); }

/* Marco geométrico para Noche y Gala */
.iv-deco { position: absolute; inset: 18px; z-index: 1; }
.iv-deco svg { width: 100%; height: 100%; }
.has-frame .iv-names--caps { color: var(--iv-accent); }
.has-frame .iv-kicker, .has-frame .iv-spaced { color: color-mix(in srgb, var(--iv-accent) 80%, #fff); }

/* Marco de foto dentro de la portada: arco, óvalo, círculo o mitad superior. */
.iv-slot { position: relative; z-index: 2; margin: 0 0 26px; overflow: hidden; box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .55); }
.iv-slot img { width: 100%; height: 100%; object-fit: cover; }
.iv-slot--arch { width: 60%; aspect-ratio: 3 / 4; border-radius: 999px 999px 4px 4px; outline: 1px solid currentColor; outline-offset: 7px; }
.iv-slot--oval { width: 54%; aspect-ratio: 3 / 4; border-radius: 50%; outline: 1px solid var(--iv-accent); outline-offset: 7px; }
.iv-slot--circle { width: 44%; aspect-ratio: 1; border-radius: 50%; border: 5px solid rgba(255, 255, 255, .9); }
.iv-slot--split { position: absolute; inset: 0 0 auto; height: 50%; margin: 0; box-shadow: none; }
.iv-slot--split::after { content: ''; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, rgba(0, 0, 0, .35)); }
.has-slot { justify-content: flex-start; padding-top: 64px; }
.has-slot .iv-cover__text { gap: 6px; }
.has-slot .iv-kicker { margin-bottom: 8px; }
.has-slot .iv-names--caps { font-size: 1.95rem; }
.has-slot .iv-spaced { margin-top: 12px; }
.has-slot .iv-vrule { display: none; }
.has-slot--split { justify-content: flex-end; padding-bottom: 130px; }
.has-slot--split .iv-cover__text { margin-top: 0; }
.is-light .iv-slot--arch { outline-color: var(--iv-accent); }

/* Apertura (nivel Gala y superior): la portada se levanta como una tarjeta. */
.iv-cover.is-open { transform: translateY(-14%); opacity: .0; }

.iv-count span { position: relative; }
/* En texturas oscuras el tinte "multiplica": colorea la textura sin taparla. */
.iv-cover--texture:not(.is-light) .iv-cover__tint { mix-blend-mode: multiply; }
.iv-cover--texture .iv-cover__tint.is-own { mix-blend-mode: normal; }

/* ===================== Acomodos modernos (estilo revista) ===================== */
.iv-cover--editorial, .iv-cover--numeral { justify-content: flex-end; align-items: stretch; text-align: left; padding: 0; color: #fff; background: #111; }
.iv-cover--editorial .iv-open, .iv-cover--numeral .iv-open { bottom: 40px; }

/* Editorial (Noche) */
.ed-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .78)); }
.ed-top { position: absolute; z-index: 2; inset: 52px 26px auto; display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .55); font: 500 .62rem var(--iv-sans); letter-spacing: .32em; text-transform: uppercase; }
.ed-bottom { position: relative; z-index: 2; padding: 0 26px 120px; }
.ed-names { margin: 0; display: flex; flex-direction: column; font-family: 'Bodoni Moda', 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 400; font-size: 4.1rem; line-height: .9; letter-spacing: -.02em; }
.ed-names .amp { font-size: .5em; line-height: 1.3; padding-left: .2em; opacity: .85; }
.ed-meta { margin: 18px 0 0; font: .66rem var(--iv-sans); letter-spacing: .26em; text-transform: uppercase; opacity: .9; }

/* Foto arriba (Rosa) */
.iv-cover--phototop { justify-content: flex-start; padding: 0; background: var(--iv-paper); color: var(--iv-ink); }
.pt-photo { position: relative; margin: 0; width: 100%; height: 56%; overflow: hidden; }
.is-embed .pt-photo { height: 470px; }
.pt-img { width: 100%; height: 100%; object-fit: cover; }
.pt-body { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 0 28px; margin-top: -46px; }
.pt-kicker { order: 2; margin: 10px 0 0; font: .62rem var(--iv-sans); letter-spacing: .36em; text-transform: uppercase; color: var(--iv-muted); }
.pt-names { order: 1; margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; justify-content: center; gap: 0 .25em; font-family: var(--iv-script); font-weight: 400; font-size: 3.6rem; line-height: 1.05; color: var(--iv-accent); text-shadow: 0 2px 0 var(--iv-paper), 0 -2px 0 var(--iv-paper); }
.pt-names .amp { font-size: .6em; color: var(--iv-ink); }
.pt-date { order: 3; display: flex; align-items: center; gap: 12px; margin: 18px 0 0; font: 500 .74rem var(--iv-sans); letter-spacing: .3em; text-transform: uppercase; }
.pt-date i { width: 22px; height: 1px; background: var(--iv-accent); }
.pt-city { order: 4; margin: 8px 0 0; font: .6rem var(--iv-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--iv-muted); }
.iv-cover--phototop .iv-open { color: var(--iv-ink); }

/* XV con numeral gigante (Cielo) */
.nu-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 22, 48, 0) 30%, rgba(14, 30, 62, .55) 58%, rgba(10, 22, 48, .95)); }
.nu-body { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px 120px; }
.nu-big { position: absolute; left: 50%; bottom: 150px; translate: -50% 0; z-index: -1; font-family: 'Bodoni Moda', 'Playfair Display', Georgia, serif; font-weight: 400; font-size: 13rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .55); letter-spacing: -.02em; }
.nu-kicker { margin: 0 0 6px; font: 500 .62rem var(--iv-sans); letter-spacing: .4em; text-transform: uppercase; color: var(--iv-accent2); }
.nu-names { margin: 0; display: flex; flex-direction: column; font-family: var(--iv-script); font-weight: 400; font-size: 4.4rem; line-height: 1; }
.nu-names .amp { font-size: .5em; }
.nu-date { margin: 14px 0 0; font: .7rem var(--iv-sans); letter-spacing: .22em; text-transform: uppercase; opacity: .9; }

/* Impresa (Gala) */
.iv-cover--inset { justify-content: flex-start; padding: 54px 0 0; background: var(--iv-paper); color: var(--iv-ink); }
.in-grain { position: absolute; inset: 0; opacity: .22; background-image: radial-gradient(rgba(255, 255, 255, .5) .6px, transparent .6px); background-size: 3px 3px; mix-blend-mode: overlay; }
.in-print { position: relative; z-index: 1; margin: 0; width: 78%; aspect-ratio: 4 / 5; padding: 10px 10px 34px; background: #fbf8f3; box-shadow: 0 30px 50px -28px rgba(0, 0, 0, .7); transform: rotate(-2deg); }
.in-img { width: 100%; height: 100%; object-fit: cover; }
.in-body { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 26px 24px 0; text-align: center; }
.in-kicker { margin: 0; font: 500 .62rem var(--iv-sans); letter-spacing: .4em; text-transform: uppercase; color: var(--iv-accent); }
.in-names { margin: 6px 0 0; display: flex; flex-direction: column; font-family: 'Bodoni Moda', 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 400; font-size: 3.3rem; line-height: .95; }
.in-names .amp { font-size: .55em; }
.in-date { margin: 12px 0 0; font: 500 .74rem var(--iv-sans); letter-spacing: .34em; color: var(--iv-accent); }
.iv-cover--inset .iv-open { color: var(--iv-ink); }
/* Ajustes: los nombres de "foto arriba" ya no se enciman con la foto; "impresa" clara sin grano. */
.pt-body { margin-top: 22px; }
.pt-names { text-shadow: none; }
.iv-cover--inset:not([data-dark]) .in-grain { opacity: .12; mix-blend-mode: multiply; background-image: radial-gradient(rgba(0, 0, 0, .25) .6px, transparent .6px); }

/* Monograma (Minimal, Bautizo moderno) */
.iv-cover--monogram { justify-content: flex-start; padding: 64px 30px 120px; background: var(--iv-paper); color: var(--iv-ink); }
.mo-kicker { margin: 0 0 14px; font: 500 .6rem var(--iv-sans); letter-spacing: .42em; text-transform: uppercase; color: var(--iv-muted); }
.mo-letters { display: flex; align-items: center; gap: 18px; font-family: 'Bodoni Moda', 'Playfair Display', Georgia, serif; font-weight: 400; font-size: 5.6rem; line-height: 1; color: var(--iv-accent); }
.mo-letters i { width: 1px; height: 70px; background: currentColor; opacity: .5; transform: rotate(18deg); }
.mo-photo { margin: 24px 0 22px; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.mo-img { width: 100%; height: 100%; object-fit: cover; }
.mo-names { margin: 0; display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 0 .35em; font-family: var(--iv-display); font-weight: 500; font-size: 1.5rem; letter-spacing: .28em; text-transform: uppercase; padding-left: .28em; }
.mo-names .amp { font-family: var(--iv-script); font-size: 1.3em; letter-spacing: 0; text-transform: none; color: var(--iv-accent); }
.mo-date { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; font: 500 .72rem var(--iv-sans); letter-spacing: .34em; }
.mo-date i { width: 34px; height: 1px; background: currentColor; opacity: .5; }
.mo-city { margin: 8px 0 0; font: .58rem var(--iv-sans); letter-spacing: .32em; text-transform: uppercase; color: var(--iv-muted); }
.iv-cover--monogram .iv-open { color: var(--iv-ink); }

/* Grano de película para el estilo Aesthetic (editorial a color) */
.iv-cover--editorial:not(.is-mono) .ed-shade { background: linear-gradient(180deg, rgba(20, 16, 30, .35), rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 45%, rgba(20, 16, 30, .72)); }

/* Nombres largos: el tamaño se ajusta al ancho del teléfono y nunca se salen. */
.ed-names, .nu-names, .pt-names, .in-names, .mo-names, .iv-names { max-width: 100%; overflow-wrap: anywhere; }
.ed-names { font-size: clamp(2.6rem, 15vw, 4.1rem); }
.nu-names { font-size: clamp(2.8rem, 15vw, 4.4rem); }
.pt-names { font-size: clamp(2.4rem, 13vw, 3.6rem); }
.in-names { font-size: clamp(2.2rem, 12vw, 3.3rem); }
.iv-names:not(.iv-names--caps) { font-size: clamp(2.8rem, 14vw, 3.9rem); }
