/* Invitaciones Digitales · estilo del sitio de Jorxel (Poppins, verde azulado #30c7b5, botones inclinados).
   Vive dentro de un Shadow DOM: no afecta ni es afectado por el CSS del sitio.
   Modo día/noche: el atributo data-theme lo pone la tienda según la clase "light-d" del <body> del sitio. */
.shop-root {
  --teal: #30c7b5;
  --navy: #110227;
  --radius: 12px;
  --font: 'Poppins', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --shadow: 0 6px 22px -14px rgba(17, 2, 39, .35);
  --shadow-lg: 0 24px 50px -26px rgba(17, 2, 39, .55);

  /* Día (por defecto) */
  --bg: #efeaff;
  --bg-2: #f6fbff;
  --card: #ffffff;
  --ink: #110227;
  --muted: #5b5473;
  --line: rgba(17, 2, 39, .14);
  --soft: rgba(48, 199, 181, .14);
  --accent: var(--teal);
  --accent-ink: #0b7f72;
  --on-accent: #110227;
  --ok: #0e8a52;
  --danger: #c0352b;
  --danger-bg: rgba(224, 59, 48, .1);
  --glow: rgba(48, 199, 181, .28);

  display: block;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}
.shop-root[data-theme='dark'] {
  --bg: #4a4081;
  --bg-2: #41376f;
  --card: #2d2563;
  --ink: #ffffff;
  --muted: #d3cbef;
  --line: rgba(255, 255, 255, .2);
  --soft: rgba(48, 199, 181, .18);
  --accent-ink: #5eead4;
  --ok: #5eead4;
  --danger: #ffb4ab;
  --danger-bg: rgba(255, 120, 110, .16);
  --shadow: 0 6px 22px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 50px -26px rgba(0, 0, 0, .8);
  --glow: rgba(48, 199, 181, .35);
}
.shop-root *, .shop-root *::before, .shop-root *::after { box-sizing: border-box; }
.shop-root a { color: inherit; text-decoration: none; }
.shop-root h1, .shop-root h2, .shop-root h3 { font-family: var(--font); font-weight: 700; line-height: 1.2; margin: 0 0 12px; color: var(--ink); }
.shop-root h1 { font-size: 2rem; }
.shop-root h2 { font-size: 1.8rem; }
.shop-root p { margin: 0 0 12px; }
.shop-root img, .shop-root svg { max-width: 100%; }
.shop-root button, .shop-root input, .shop-root select, .shop-root textarea { font: inherit; }
.shop-root :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.shop-root [id] { scroll-margin-top: 110px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding-top: 56px; padding-bottom: 56px; }
.section-head { text-align: center; margin: 0 auto 32px; max-width: 700px; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.section-head p { color: var(--muted); }
.muted { color: var(--muted); font-size: .9rem; }
.icon { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Botones (paralelogramo, como el sitio) ---------- */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 32px; border: 0; background: transparent; color: var(--on-accent); font-weight: 700; cursor: pointer; text-align: center; transition: transform .2s; }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; transform: skewX(-14deg); background: var(--accent); border: 2px solid var(--accent); transition: background .2s, border-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { box-shadow: 0 10px 24px -10px var(--glow); }
.btn-outline { color: var(--accent-ink); }
.btn-outline::before { background: transparent; }
.btn-outline:hover::before { background: var(--soft); }
.btn-ghost { color: var(--ink); }
.btn-ghost::before { background: transparent; border-color: var(--line); }
.btn-ghost:hover::before { background: var(--soft); border-color: var(--accent); }
.btn-light { color: var(--navy); }
.btn-light::before { background: #fff; border-color: #fff; }
/* ".shop-root a { color: inherit }" le ganaba al color de los botones que son enlaces: en la franja oscura
   "Elegir mi diseño" quedaba texto blanco sobre fondo blanco. Mismo peso de selector para cada variante. */
.shop-root a.btn { color: var(--on-accent); }
.shop-root a.btn-outline { color: var(--accent-ink); }
.shop-root a.btn-ghost { color: var(--ink); }
.shop-root a.btn-light { color: var(--navy); }
.btn.block { display: flex; width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.link-btn { display: inline-block; margin-top: 12px; color: var(--accent-ink); background: none; border: 0; cursor: pointer; padding: 0; font-weight: 600; }
.link-btn:hover { text-decoration: underline; }
.link-danger { background: none; border: 0; color: var(--danger); cursor: pointer; padding: 0; font-size: .9rem; text-align: left; text-decoration: underline; }

/* ---------- Barra de la tienda (el header/footer los pone el sitio) ---------- */
.announce { background: var(--navy); color: #fff; text-align: center; font-size: .85rem; padding: 9px 12px; }
.announce .dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(48, 199, 181, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(48, 199, 181, 0); } 100% { box-shadow: 0 0 0 0 rgba(48, 199, 181, 0); } }
.shop-bar { background: var(--card); border-bottom: 1px solid var(--line); }
.shop-bar-in { max-width: 1160px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.shop-title { font-weight: 700; font-size: 1.15rem; }
.shop-title span { color: var(--accent-ink); }
.shop-logo { display: inline-flex; align-items: center; }
.shop-logo img { height: 26px; width: auto; display: block; }
.shop-logo-light { display: none; }
.shop-root[data-theme='dark'] .shop-logo-dark { display: none; }
.shop-root[data-theme='dark'] .shop-logo-light { display: block; }
.shop-links { display: flex; align-items: center; gap: 22px; font-size: .92rem; font-weight: 500; color: var(--muted); flex-wrap: wrap; }
.shop-links a:hover { color: var(--ink); }
.cart-link { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); }
.cart-link:hover { border-color: var(--accent); color: var(--ink); }
.badge { background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 0 8px; font-size: .78rem; font-weight: 700; min-width: 22px; text-align: center; }

/* ---------- Teléfono con invitación incrustada ---------- */
.phone { position: relative; width: 100%; container-type: inline-size; }
.phone-bezel { padding: 3.4cqw; border-radius: 14cqw; background: linear-gradient(145deg, #3c455f, #10141f 55%, #2a3145);
  box-shadow: inset 0 0 0 .5cqw rgba(255, 255, 255, .12), 0 36px 60px -30px rgba(17, 2, 39, .7), 0 0 50px -24px var(--glow); }
.phone-screen { position: relative; aspect-ratio: 390 / 844; border-radius: 10.8cqw; overflow: hidden; background: #0b1224; isolation: isolate; }
.phone-screen iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #fff; max-width: none; }
.phone-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.phone-island { position: absolute; top: 2.4cqw; left: 50%; width: 27cqw; height: 7cqw; margin-left: -13.5cqw; border-radius: 999px; background: #05070d; z-index: 3; pointer-events: none; }
.phone-btn { position: absolute; width: 1cqw; border-radius: .6cqw; background: #2a3145; }
.phone-btn-a { left: -.6cqw; top: 24cqw; height: 7cqw; }
.phone-btn-b { left: -.6cqw; top: 36cqw; height: 13cqw; }
.phone-btn-c { right: -.6cqw; top: 32cqw; height: 18cqw; }
.phone-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5cqw; padding: 0 8cqw; text-align: center;
  background: radial-gradient(circle at 50% 28%, #3d3478, #110227 72%); }
.inv-emoji { font-size: 34cqw; line-height: 1; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .5)); }
.inv-name { font-weight: 700; font-size: 8cqw; line-height: 1.2; color: #fff; }
.inv { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 520px at 80% 25%, var(--glow), transparent 62%), var(--bg); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; padding-top: 52px; padding-bottom: 68px; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 700; margin: 18px 0; }
.hero p { font-size: 1.08rem; color: var(--muted); max-width: 520px; }
.pill { display: inline-block; border: 1px solid var(--accent); background: var(--soft); color: var(--accent-ink); padding: 6px 16px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0; }
.hero-proof { display: flex; gap: 10px; align-items: center; font-size: .92rem; color: var(--muted); flex-wrap: wrap; }
.stars { color: #e6a700; letter-spacing: 1px; }
.hero-art { position: relative; height: 580px; }
.hero-phone { position: absolute; }
.hp-0 { width: 190px; left: 0; top: 130px; transform: rotate(-9deg); z-index: 1; animation: floaty 7s ease-in-out infinite; }
.hp-1 { width: 262px; left: 50%; margin-left: -131px; top: 20px; z-index: 3; animation: floaty 6s ease-in-out -2s infinite; }
.hp-2 { width: 190px; right: 0; top: 150px; transform: rotate(9deg); z-index: 2; animation: floaty 8s ease-in-out -4s infinite; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* ---------- Beneficios ---------- */
.benefits { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.benefits-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding-top: 28px; padding-bottom: 28px; }
.benefit { display: flex; gap: 14px; align-items: flex-start; }
.benefit strong { display: block; margin-bottom: 2px; }
.benefit p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.benefit-icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; font-size: 1.35rem; border-radius: 10px; background: var(--soft); border: 1px solid var(--accent); }

/* ---------- Catálogo ---------- */
.toolbar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: var(--card); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--muted); transition: border-color .2s, color .2s; }
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip.active, .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tools { display: flex; gap: 10px; flex-wrap: wrap; }
.tools input, .tools select, .pkg-filter select, .order-form input, .order-form textarea { padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: .92rem; color: var(--ink); }
.tools input::placeholder, .order-form input::placeholder { color: var(--muted); }
.tools input { min-width: 220px; }
/* Buscar, ordenar y botón en un mismo renglón (en celular, uno debajo de otro). El tema del sitio pone a
   input/select/.nice-select ancho 100% y 65px de alto; aquí se igualan los tres a 52px. */
.shop-root .tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 250px) auto; gap: 12px; align-items: stretch; }
.shop-root .tools input, .shop-root .tools select, .shop-root .tools .nice-select { width: 100%; min-width: 0; height: 52px; margin: 0; float: none; line-height: 50px; }
.shop-root .tools .btn { height: 52px; margin: 0; padding: 0 30px; white-space: nowrap; }
@media (max-width: 760px) {
  .shop-root .tools { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .shop-root .tools .btn { width: 100%; }
}
.pkg-filter { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 10px 0 18px; }
.pkg-filter-label { font-weight: 600; font-size: .9rem; color: var(--muted); }
.pkg-filter .chips { gap: 8px; }
/* Botón de paquete con su logo original (IDj_*.png) en lugar del nombre. */
.chip.chip-logo { display: inline-flex; align-items: center; justify-content: center; padding-top: 6px; padding-bottom: 6px; }
.chip.chip-logo .pkg-logo { height: 30px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.chip.chip-logo.active { background: color-mix(in srgb, var(--accent) 22%, var(--card)); box-shadow: inset 0 0 0 2px var(--accent); }
.results { color: var(--muted); font-size: .9rem; margin: 12px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .25s, border-color .25s, box-shadow .25s; }
.card:hover, .card:focus-visible { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.card-img { position: relative; padding: 28px 0 8px; background: radial-gradient(240px 220px at 50% 45%, var(--glow), transparent 70%); display: flex; justify-content: center; }
.card-img .inv { width: 150px; max-width: 70%; }
.card-img .phone { transition: transform .35s ease; }
.card:hover .card-img .phone { transform: translateY(-6px) scale(1.03); }
.card-body { padding: 14px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.card-body h3 { font-size: 1.08rem; margin: 0; }
/* Tipo de evento (Boda, XV años...): sin fondo, peso 900, con el segundo acento del sitio (el morado de
   assets/nosotros/nosotros.css, --n-accent2) para distinguirlo del paquete, que va en el turquesa del sitio. */
.category { align-self: flex-start; font-size: .88rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; line-height: 1.2; color: #6b5bd6; background: none; padding: 0; }
.shop-root[data-theme='dark'] .category { color: #b4a8ff; }
/* El tema del sitio (style.css / style-dark.css) también tiene una clase .category, con borde, fondo blanco
   y una caja gris detrás (:before). Dentro de la tienda se anula para que quede solo el texto. */
.shop-root .category { display: inline-block; border: 0; margin: 0; background: none !important; box-shadow: none; }
.shop-root .category::before { content: none; display: none; }
.rating-line { display: flex; align-items: center; gap: 6px; }
.rating-line.big { font-size: 1.05rem; }
.rating-line small { color: var(--muted); }
.price-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-size: 1.15rem; font-weight: 700; }
.price.large { font-size: 2rem; }
.old { color: var(--muted); font-size: .88rem; }
.off { background: var(--soft); color: var(--ok); font-weight: 700; font-size: .78rem; padding: 2px 8px; border-radius: 6px; }
.tag { position: absolute; top: 14px; left: 14px; z-index: 5; background: #8a6410; color: #fff; font-size: .7rem; font-weight: 700; padding: 4px 12px; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); padding-right: 16px; }
.tag-sale { background: #d63a2f; }
.card-package { align-self: flex-start; color: var(--accent-ink); font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
/* Logo original del paquete (IDj_*.png): pequeño en las tarjetas y en la cabecera de la tabla. */
.pkg-logo { display: block; width: auto; height: 30px; object-fit: contain; }
.compare thead th .pkg-logo { height: 38px; margin: 0 auto 6px; }
/* Imagen fija de la invitación dentro del teléfono (tarjetas y portada, sin música). */
.phone-screen .inv-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.card-delivery { color: var(--muted); font-size: .76rem; line-height: 1.3; }

/* ---------- Tabla comparativa ---------- */
.compare-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
.compare caption { text-align: left; padding: 16px 18px; font-weight: 700; font-size: 1.1rem; }
.compare th, .compare td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; background: transparent; }
.compare thead th { background: var(--soft); color: var(--ink); font-weight: 700; }
.compare tbody th[scope="row"] { text-align: left; font-weight: 500; color: var(--muted); min-width: 190px; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:nth-child(even) th, .compare tbody tr:nth-child(even) td { background: rgba(48, 199, 181, .06); }
.compare .is-highlight, .compare tbody tr:nth-child(even) .is-highlight { background: var(--soft); }
.compare thead .is-highlight { background: var(--accent); color: var(--on-accent); }
.compare td [aria-hidden="true"] { font-weight: 700; color: var(--accent-ink); }
/* Palomita de "incluido": 2px más grande que el texto de la tabla y en peso 900. */
.compare td .mark-yes { font-size: calc(1em + 2px); font-weight: 900; line-height: 1; }
.compare .price-regular { color: var(--muted); text-decoration: line-through; }
.compare .price-sale { color: var(--accent-ink); font-weight: 700; }
.compare-wrap:focus-visible { outline-offset: 0; }

/* ---------- Cómo funciona / testimonios / CTA ---------- */
.how { background: var(--bg-2); border-block: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow); }
.step::before { content: ''; position: absolute; top: 0; left: 22px; width: 44px; height: 3px; background: var(--accent); }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); margin: 0; font-size: .92rem; }
.step-n { display: inline-block; margin-bottom: 8px; font-weight: 700; color: var(--accent-ink); }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--card); box-shadow: var(--shadow); }
.testimonial blockquote { margin: 10px 0 14px; font-style: italic; }
.testimonial figcaption { color: var(--muted); font-size: .9rem; }
.cta-band { background: radial-gradient(600px 260px at 100% 0, rgba(48, 199, 181, .35), transparent 60%), var(--navy); color: #fff; text-align: center; padding: 60px 0; }
.cta-band h2 { max-width: 640px; margin: 0 auto 22px; font-size: clamp(1.5rem, 3vw, 2.2rem); color: #fff; }
.fine-print { font-size: .8rem; color: var(--muted); margin: 0; }

/* ---------- Página de producto ---------- */
.pdp { padding-bottom: 70px; }
.breadcrumb { padding: 22px 0; font-size: .86rem; color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-ink); }
.product { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 52px; align-items: start; }
.gallery { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 100px; }
.gallery-main { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 34px 20px 24px; border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(320px 300px at 50% 40%, var(--glow), transparent 70%), var(--card); }
.gallery-main .inv { width: min(100%, 290px); }
.more-examples { margin: 12px 0 0; font-size: .88rem; }
.more-examples a { color: var(--accent-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.demo-full { font-size: .85rem; color: var(--accent-ink); font-weight: 600; }
.demo-full:hover { text-decoration: underline; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.thumb { padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); cursor: pointer; font-size: .84rem; font-weight: 600; transition: border-color .2s, color .2s; }
.thumb:hover { color: var(--ink); border-color: var(--accent); }
.thumb.active { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.info { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.info h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0; }
.desc { font-size: 1.02rem; color: var(--muted); margin: 0; }
.includes { list-style: none; margin: 0; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 7px; width: 100%; font-size: .92rem; }
.buy-box { width: 100%; background: var(--card); border: 2px solid var(--accent); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: .86rem; color: var(--muted); }
.trust.column { grid-template-columns: 1fr; margin-top: 14px; }
.includes li { line-height: 1.4; }
.delivery-text { text-align: right; font-weight: 600; max-width: 60%; }
.qty { min-width: 28px; text-align: center; font-weight: 700; }
.reviews { margin-top: 60px; }
.reviews-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.summary { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 22px; text-align: center; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.summary-score { font-size: 3.2rem; font-weight: 700; line-height: 1; }
.bars { width: 100%; margin-top: 10px; display: grid; gap: 6px; font-size: .82rem; }
.bar-row { display: grid; grid-template-columns: 28px 1fr 20px; gap: 8px; align-items: center; }
.bar { height: 8px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.bar div { height: 100%; background: #e6a700; }
.reviews-empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px 20px; text-align: center; color: var(--muted); margin: 0; }
.review-list { display: grid; gap: 14px; }
.review { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 18px 20px; }
.review header { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.review header > div { display: flex; flex-direction: column; flex: 1; line-height: 1.2; }
.review p { margin: 0; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; }
.verified { color: var(--ok); font-size: .78rem; }
.related { margin-top: 60px; }
.package-compare { margin-top: 60px; }
.sticky-buy { display: none; }

/* ---------- Carrito y pedido ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; margin-top: 16px; }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 70px 1fr auto 90px; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.cart-thumb { display: block; width: 56px; }
.cart-thumb .inv-name { display: none; }
.cart-thumb .inv-emoji { font-size: 40cqw; }
.cart-info { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.cart-name { font-weight: 600; font-size: 1.02rem; }
.cart-name:hover { color: var(--accent-ink); }
.line-total { text-align: right; font-size: 1.05rem; }
.summary-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 100px; box-shadow: var(--shadow); }
.summary-card h2 { font-size: 1.25rem; }
.row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); }
.row.total-row { border-bottom: 0; font-size: 1.2rem; padding: 14px 0; }
.free { color: var(--ok); font-weight: 600; }
.empty, .order-done { text-align: center; }
.emoji.big { font-size: 4.5rem; line-height: 1; }
.notice { padding: 12px 16px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); margin: 8px 0; }
.notice.error { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
.notice.ok { background: var(--soft); border-color: var(--accent); color: var(--ok); margin: 0; }
.order-form { display: grid; gap: 6px; margin: 18px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.order-form h3 { font-size: 1.05rem; margin-bottom: 4px; }
.order-form label { font-size: .84rem; font-weight: 600; margin-top: 6px; }
.order-form input, .order-form textarea { width: 100%; border-radius: 8px; resize: vertical; }
.order-form .btn { margin-top: 12px; }

/* ---------- Chat asistente (solo si está configurado) ---------- */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-launcher { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); font-size: 1.5rem; cursor: pointer; box-shadow: var(--shadow-lg); transition: transform .15s; }
.chat-launcher:hover { transform: scale(1.06); }
.chat-panel { width: min(380px, calc(100vw - 40px)); height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; color: var(--ink); }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; background: var(--navy); color: #fff; }
.chat-head-actions { display: flex; gap: 4px; }
.chat-icon-btn { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #fff; font-size: 1.05rem; cursor: pointer; }
.chat-icon-btn:hover { background: rgba(255, 255, 255, .15); }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.chat-msg { max-width: 85%; margin: 0; padding: 9px 13px; border-radius: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg-bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-msg-user { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 4px; }
.chat-typing { color: var(--muted); font-style: italic; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-chip { padding: 7px 12px; border: 1px solid var(--accent); border-radius: 999px; background: var(--card); color: var(--accent-ink); cursor: pointer; font-size: .88rem; }
.chat-chip:hover { background: var(--soft); }
.chat-error { margin: 0; padding: 8px 14px; background: var(--danger-bg); color: var(--danger); font-size: .9rem; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--card); }
.chat-form input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); }
.chat-form .btn { padding: 9px 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { height: 500px; max-width: 520px; margin: 0 auto; width: 100%; }
  .benefits-in { grid-template-columns: 1fr 1fr; }
  .steps, .testimonials { grid-template-columns: 1fr; }
  .product, .reviews-layout, .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .gallery { width: 100%; max-width: 440px; margin: 0 auto; position: static; }
  .summary-card { position: static; }
}
@media (max-width: 760px) {
  .announce { font-size: .75rem; }
  .shop-links { gap: 14px; font-size: .85rem; }
  .cart-item { grid-template-columns: 56px 1fr; }
  .line-total { text-align: left; }
  .buy-actions, .trust { grid-template-columns: 1fr; }
  .tools, .tools input { width: 100%; }
  .hero-art { height: 430px; }
  .hp-0, .hp-2 { width: 140px; }
  .hp-1 { width: 200px; margin-left: -100px; }
  .compare tbody th[scope="row"] { position: sticky; left: 0; z-index: 1; min-width: 150px; background: var(--card); box-shadow: 1px 0 0 var(--line); }
  .compare { font-size: .85rem; }
  .delivery-text { max-width: 70%; }
  .chat { right: 12px; bottom: 84px; }
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--card); border-top: 1px solid var(--line); padding: 10px 16px; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -4px 14px rgba(0, 0, 0, .15); }
  .sticky-buy strong { font-size: 1.25rem; margin-right: 8px; }
  .pdp { padding-bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-root *, .shop-root *::before, .shop-root *::after { animation: none !important; transition: none !important; }
}
