/* Portafolio de invitaciones (/portafolio-inv). Página de venta: intro, filtros, galería en celulares,
   paquetes con precio real de la tienda, pasos y cierre. La invitación en vivo se abre solo al dar clic.
   Colores del sitio: turquesa #30c7b5, morado #6b5bd6 / #b4a8ff, oscuro #110227. Noche = body.light-d.
   Todas las clases llevan el prefijo px- para no chocar con el tema del sitio. */
.px {
  --ink: #110227; --muted: #5b5473; --bg: #f6f3ff; --alt: #ece7ff; --card: #ffffff; --line: rgba(17, 2, 39, .10);
  --teal: #30c7b5; --teal-ink: #0b7f72; --violet: #6b5bd6; --glow: rgba(48, 199, 181, .28);
  --shadow: 0 1px 2px rgba(17, 2, 39, .06), 0 18px 40px -28px rgba(17, 2, 39, .45);
  --r: 20px;
  background: var(--bg); color: var(--ink); font-family: 'Poppins', system-ui, sans-serif;
}
body.light-d .px {
  --ink: #ffffff; --muted: #d3cbef; --bg: #120330; --alt: #1b0b44; --card: #261a5c; --line: rgba(255, 255, 255, .12);
  --teal-ink: #5eead4; --violet: #b4a8ff; --glow: rgba(48, 199, 181, .20);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 20px 44px -26px rgba(0, 0, 0, .9);
}
.px h2, .px h3, .px p { margin: 0; }
.px h2, .px h3 { color: var(--ink); font-family: 'Poppins', sans-serif; }
.px-sec { padding: 72px 0; }
.px-alt { background: var(--alt); }
.px-kicker { font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); margin-bottom: 10px !important; }
.px-head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.px-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; margin-bottom: 12px; }
.px-head > p:last-child { color: var(--muted); font-size: 1rem; line-height: 1.6; }

/* Botones */
.px-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.px-cta .theme-btn { margin: 0; }
.px-ghost { font-weight: 700; color: var(--ink) !important; text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.px-ghost:hover { color: var(--teal-ink) !important; }

/* 1. Intro */
.px-hero { position: relative; overflow: hidden; padding: 64px 0 40px; background:
  radial-gradient(600px 380px at 85% 30%, var(--glow), transparent 70%),
  radial-gradient(500px 300px at 10% 100%, rgba(107, 91, 214, .16), transparent 70%), var(--bg); }
.px-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.px-hero h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.06; letter-spacing: -.02em; margin-bottom: 18px; }
.px-hero h2 span { display: block; background: linear-gradient(90deg, var(--teal), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.px-lead { max-width: 540px; font-size: 1.08rem; line-height: 1.65; color: var(--muted); margin-bottom: 28px !important; }
.px-facts { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; padding: 0; margin: 34px 0 0; }
.px-facts li { min-width: 150px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.px-facts strong { display: block; font-size: 1.7rem; line-height: 1; font-weight: 800; color: var(--ink); }
.px-facts span { display: block; margin-top: 6px; font-size: .82rem; color: var(--muted); }
.px-hero-art { position: relative; height: 470px; }
.px-mock { position: absolute; width: 190px; aspect-ratio: 390 / 844; padding: 7px; border-radius: 32px;
  background: linear-gradient(145deg, #3c455f, #10141f 55%, #2a3145); box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.px-mock-0 { left: 50%; top: 0; margin-left: -95px; z-index: 3; width: 210px; margin-left: -105px; }
.px-mock-1 { left: 4%; top: 60px; transform: rotate(-8deg); z-index: 2; opacity: .95; }
.px-mock-2 { right: 4%; top: 60px; transform: rotate(8deg); z-index: 1; opacity: .95; }
.px-mock .px-scr { border-radius: 26px; }
.px-mock .px-full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* Intro más compacta: menos alto, título y celulares más chicos, para que la galería aparezca antes. */
.px-hero { padding: 36px 0 28px; }
.px-hero-in { gap: 28px; }
.px-hero h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.1; margin-bottom: 12px; }
.px-lead { font-size: 1rem; line-height: 1.6; margin-bottom: 20px !important; }
.px-facts { gap: 10px; margin-top: 22px; }
.px-facts li { min-width: 0; padding: 10px 14px; border-radius: 14px; }
.px-facts strong { font-size: 1.35rem; }
.px-facts span { font-size: .78rem; margin-top: 4px; }
.px-hero-art { height: 340px; }
.px-mock { width: 140px; padding: 6px; border-radius: 26px; }
.px-mock .px-scr { border-radius: 21px; }
.px-mock .px-island { top: 10px; height: 10px; }
.px-mock-0 { width: 158px; margin-left: -79px; }
.px-mock-1 { left: 8%; top: 44px; }
.px-mock-2 { right: 8%; top: 44px; }

/* Celular (tarjetas, intro y ventana) */
.px-island { position: absolute; top: 12px; left: 50%; width: 30%; height: 12px; margin-left: -15%; border-radius: 999px; background: #05070d; z-index: 3; }
.px-scr { position: relative; width: 100%; height: 100%; overflow: hidden; background: #0b1224; }
/* La imagen es cuadrada: de fondo va la misma imagen desenfocada, así no quedan franjas vacías. */
.px-bg { position: absolute; inset: -12%; width: 124%; height: 124%; max-width: none; object-fit: cover; filter: blur(16px) saturate(1.2); opacity: .8; }
.px-shot { position: absolute; left: 0; top: 50%; width: 100%; height: auto; transform: translateY(-50%); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .6); }

/* 2. Filtros */
.px-filters { position: sticky; top: 76px; z-index: 6; display: grid; gap: 10px; padding: 14px 16px; margin-bottom: 18px;
  border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.px-frow { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.px-frow::-webkit-scrollbar { display: none; }
.px-flabel { flex: none; width: 70px; font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); }
.px-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--ink); font: 600 .86rem 'Poppins', sans-serif; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.px-chip small { font-size: .72rem; font-weight: 700; color: var(--muted); }
.px-chip:hover { border-color: var(--teal); }
.px-chip.is-on { background: var(--teal); border-color: var(--teal); color: #110227; }
.px-chip.is-on small { color: #110227; opacity: .7; }
/* Sin invitaciones con el otro filtro: se ve tenue (al tocarlo, se quita el otro filtro). */
.px-chip.is-zero { opacity: .45; }
/* Filtro de paquete con su logo original (IDj_*.png). */
.px-chip-logo { gap: 8px; padding: 0 12px 0 10px; }
.px-chip-logo img { height: 28px; width: auto; display: block; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.px-chip-logo.is-on { background: color-mix(in srgb, var(--teal) 22%, transparent); color: var(--ink); box-shadow: inset 0 0 0 1px var(--teal); }
.px-chip-logo.is-on small { color: var(--ink); opacity: .8; }
.px-count { margin: 0 0 18px !important; font-size: .9rem; font-weight: 600; color: var(--muted); }

/* 3. Galería */
.px-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.px-item[hidden] { display: none; }
.px-card { display: flex; flex-direction: column; height: 100%; color: inherit !important; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.px-card:hover, .px-card:focus-visible { transform: translateY(-5px); border-color: var(--teal); outline: none; box-shadow: var(--shadow), 0 24px 40px -26px var(--glow); }
.px-stage { position: relative; display: flex; justify-content: center; padding: 30px 0 16px; background: radial-gradient(220px 200px at 50% 50%, var(--glow), transparent 70%); }
.px-phone { position: relative; width: 56%; max-width: 150px; aspect-ratio: 390 / 844; padding: 6px; border-radius: 26px;
  background: linear-gradient(145deg, #3c455f, #10141f 55%, #2a3145); box-shadow: 0 24px 34px -22px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform .35s ease; }
.px-phone .px-scr { border-radius: 20px; }
.px-phone .px-island { top: 11px; }
.px-card:hover .px-phone { transform: translateY(-6px) scale(1.04); }
.px-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: #5b5473; }
.px-stage .px-badge { position: absolute; top: 12px; left: 12px; z-index: 4; }
.px-b-classic { background: #6b6f80; }
.px-b-gold { background: #a87b12; }
.px-b-diamond { background: #b0306a; }
.px-b-luxury { background: #0e8f86; }
.px-b-web { background: #2a3fd1; }
.px-b-essential { background: #7a6a9a; }
.px-live { position: absolute; left: 50%; bottom: 20px; z-index: 4; transform: translate(-50%, 8px); opacity: 0;
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: var(--teal); color: #110227;
  font-size: .8rem; font-weight: 800; white-space: nowrap; box-shadow: 0 12px 24px -10px rgba(48, 199, 181, .9); transition: opacity .25s, transform .25s; }
.px-live svg { width: 13px; height: 13px; fill: currentColor; }
.px-card:hover .px-live, .px-card:focus-visible .px-live { opacity: 1; transform: translate(-50%, 0); }
.px-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.px-ev { font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); }
.px-body h3 { font-size: 1.08rem; line-height: 1.25; font-weight: 800; }
.px-pkg { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--teal-ink); }
.px-pkg img { width: auto; height: 24px; }
.px-more-wrap { display: flex; justify-content: center; margin-top: 30px; }
.px-more { height: 50px; padding: 0 28px; border: 2px solid var(--teal); border-radius: 999px; background: transparent; color: var(--ink);
  font: 800 .92rem 'Poppins', sans-serif; cursor: pointer; transition: background .2s, color .2s; }
.px-more:hover { background: var(--teal); color: #110227; }
.px-more[hidden] { display: none; }
.px-empty { margin: 30px 0 0 !important; text-align: center; color: var(--muted); }
.px-empty a { color: var(--teal-ink); font-weight: 700; }

/* 4. Paquetes */
.px-pkgs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.px-pk { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 18px 18px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--card); box-shadow: var(--shadow); }
.px-pk.is-top { border-color: var(--teal); box-shadow: var(--shadow), 0 0 0 2px var(--teal) inset; }
.px-pk-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: var(--teal); color: #110227;
  font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.px-pk-logo { height: 46px; width: auto; object-fit: contain; align-self: flex-start; }
.px-pk-price { font-size: 1.7rem; font-weight: 800; line-height: 1.1; color: var(--ink); }
.px-pk-price small { font-size: .8rem; font-weight: 700; color: var(--muted); }
.px-pk-inc { font-size: .82rem; font-weight: 700; color: var(--teal-ink); }
.px-pk-desc { flex: 1; font-size: .88rem; line-height: 1.55; color: var(--muted); }
.px-pk-act { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.px-pk-see { height: 40px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--ink); font: 700 .84rem 'Poppins', sans-serif; cursor: pointer; }
.px-pk-see:hover { border-color: var(--teal); }
.px-pk-act a { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 12px; background: var(--teal); color: #110227 !important; font-weight: 800; font-size: .84rem; }
.px-pk-act a:hover { filter: brightness(1.05); }
.px-pk-act a { gap: 8px; background: #110227; color: #fff !important; border: 1px solid var(--teal); }
.px-pk-act a img { height: 24px; width: auto; display: block; }
.px-pk.is-top .px-pk-act a { box-shadow: 0 0 0 1px var(--teal), 0 10px 24px -12px rgba(48, 199, 181, .8); }
/* El tema del sitio pinta todos los <p> en gris (body.light-d p); aquí se recupera el color de cada texto. */
.px .px-pk .px-pk-price { color: var(--ink); }
.px .px-pk .px-pk-inc { color: var(--teal-ink); }
.px .px-pk .px-pk-desc, .px .px-lead, .px .px-head > p:last-child, .px .px-steps p, .px .px-count { color: var(--muted); }
.px .px-kicker { color: var(--violet); }

/* 5. Pasos */
.px-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; counter-reset: none; }
.px-steps li { padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.px-steps span { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--violet)); color: #fff; font-weight: 800; }
.px-steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.px-steps p { font-size: .92rem; line-height: 1.6; color: var(--muted); }

/* 6. Cierre */
.px-final { padding: 80px 0; text-align: center; color: #fff; background:
  radial-gradient(700px 300px at 100% 0, rgba(48, 199, 181, .35), transparent 60%),
  radial-gradient(600px 300px at 0 100%, rgba(107, 91, 214, .35), transparent 60%), #110227; }
.px-final h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 12px; }
.px-final p { color: #d3cbef; font-size: 1.05rem; margin-bottom: 28px !important; }
.px-cta-c { justify-content: center; }
.px-final .px-ghost { color: #fff !important; }

/* Ventana con la invitación en vivo */
.px-modal { position: fixed; inset: 0; margin: auto; width: min(900px, 94vw); height: fit-content; max-height: 94vh; overflow: auto; padding: 0; border: 0;
  border-radius: 24px; background: #110227; color: #fff; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9); }
.px-modal::backdrop { background: rgba(6, 2, 18, .74); backdrop-filter: blur(5px); }
.px-m-in { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 38px; align-items: center; padding: 30px 38px; }
.px-x { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.px-x:hover { background: rgba(255, 255, 255, .2); }
.px-m-phone { position: relative; width: min(330px, 62vh * 390 / 844); aspect-ratio: 390 / 844; padding: 9px; border-radius: 42px;
  background: linear-gradient(145deg, #3c455f, #10141f 55%, #2a3145); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.px-m-phone .px-island { top: 17px; height: 18px; }
.px-m-scr { position: relative; width: 100%; height: 100%; border-radius: 33px; overflow: hidden; background: #fff; }
.px-m-scr iframe { position: absolute; top: 0; left: 0; width: 390px; height: 844px; border: 0; transform-origin: 0 0; background: #fff; opacity: 0; transition: opacity .35s; }
.px-m-scr.is-ready iframe { opacity: 1; }
.px-m-scr .px-bg, .px-m-scr .px-shot { pointer-events: none; }
.px-loading { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); padding: 7px 15px; border-radius: 999px; background: rgba(17, 2, 39, .8); color: #fff; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.px-m-scr.is-ready .px-loading { display: none; }
.px-m-side h2 { color: #fff; font-size: 1.9rem; line-height: 1.12; margin: 6px 0 8px; }
.px-m-ev { margin-top: 14px !important; font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #b4a8ff; }
.px-m-price { font-size: 1.05rem; font-weight: 700; color: #5eead4; }
.px-m-note { margin: 14px 0 24px !important; color: #d3cbef; font-size: .95rem; line-height: 1.6; }
.px-m-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.px-m-cta .theme-btn { margin: 0; }
.px-m-cta .px-ghost { color: #fff !important; }
/* Pantalla completa: botón secundario visible (antes era texto chico) y botón ⤢ en la esquina del teléfono. */
.px-m-full { display: inline-flex; align-items: center; gap: .55rem; padding: .78rem 1.25rem; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 999px;
  font-size: .92rem; font-weight: 700; line-height: 1.2; color: #fff !important; text-decoration: none; transition: background .2s, border-color .2s; }
.px-m-full:hover, .px-m-full:focus-visible { background: rgba(255, 255, 255, .12); border-color: #fff; }
.px-m-full svg, .px-m-expand svg { width: 18px; height: 18px; flex: none; }
/* Color explícito: el tema del sitio pinta los path de los SVG y les ganaba a currentColor. */
.px-modal .px-m-full svg path, .px-modal .px-m-expand svg path { fill: none !important; stroke: #fff !important; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.px-modal .px-m-expand:hover svg path, .px-modal .px-m-expand:focus-visible svg path { stroke: #110227 !important; }
.px-m-expand { position: absolute; right: 16px; bottom: 16px; z-index: 4; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(17, 2, 39, .78); color: #fff !important; box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .6); transition: transform .2s, background .2s; }
.px-m-expand:hover, .px-m-expand:focus-visible { background: #30c7b5; color: #110227 !important; transform: scale(1.06); }
.px-m-full:focus-visible, .px-m-expand:focus-visible { outline: 3px solid #8989ff; outline-offset: 3px; }
.px-m-shoplink { display: inline-block; margin-top: 18px; }
.px-modal .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Responsivo */
@media (max-width: 1100px) {
  .px-pkgs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .px-hero-in { grid-template-columns: 1fr; }
  .px-hero-art { height: 300px; order: -1; }
  .px-mock { width: 130px; } .px-mock-0 { width: 148px; margin-left: -74px; }
  .px-steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .px-sec { padding: 52px 0; }
  .px-hero { padding: 36px 0 24px; }
  .px-hero-art { height: 250px; }
  .px-mock { width: 108px; border-radius: 20px; padding: 5px; } .px-mock-0 { width: 124px; margin-left: -62px; } .px-mock .px-scr { border-radius: 16px; }
  .px-facts li { flex: 1 1 30%; min-width: 0; padding: 12px; }
  .px-facts strong { font-size: 1.35rem; }
  .px-filters { top: 64px; padding: 12px; }
  .px-flabel { width: 62px; }
  .px-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .px-phone { width: 66%; border-radius: 20px; padding: 5px; } .px-phone .px-scr { border-radius: 15px; }
  .px-stage { padding: 34px 0 12px; }
  .px-stage .px-badge { top: 9px; left: 9px; font-size: .6rem; padding: 3px 8px; }
  .px-body { padding: 12px; }
  .px-body h3 { font-size: .95rem; }
  .px-ev { font-size: .7rem; }
  .px-pkg { font-size: .76rem; } .px-pkg img { height: 18px; }
  .px-live { display: none; }
  .px-pkgs { grid-template-columns: 1fr; }
  .px-m-in { grid-template-columns: 1fr; gap: 16px; padding: 54px 16px 22px; justify-items: center; text-align: center; }
  .px-m-phone { width: min(290px, 72vw, 56vh * 390 / 844); }
  .px-m-side h2 { font-size: 1.35rem; }
  .px-m-note { display: none; }
  /* Celular: acciones una debajo de otra, a lo ancho, sin encimarse. */
  .px-m-side { width: 100%; }
  .px-m-cta { flex-direction: column; align-items: center; gap: 12px; width: 100%; margin-top: 16px; }
  .px-m-shoplink { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .px-card, .px-phone, .px-live, .px-chip { transition: none; }
}
