/* ==========================================================================
   ivan.wismify.com · recurso-em.css — SOLO la página /recursos/emails-shopify (3.er recurso)
   Se suma a recurso.css (común, sin tocar). Todo prefijado con .rc-em.
   - .rc-em-stage: escaparate del hero. La confirmación en una ventana de correo (ordenador) y el carrito abandonado
     en un móvil; las capturas son las vistas previas REALES de las plantillas (assets/img/recursos/
     emails-shopify-confirmacion.webp y -carrito.webp) y recurso-em.js las desplaza solas (solo en pantalla).
     La misma escena genera la portada (900×1200) y la imagen OG (1200×630).
   - .rc-em-tpls: las 3 plantillas en la tarjeta grande · .rc-em-how: «Cómo funciona» en 3 pasos.
   Lima solo en los CTA de descarga (.btn-lime de base). GSAP mueve .rc-em-img: nada de translate CSS de reposo en ella.
   ========================================================================== */

/* Titular más largo que el de los otros recursos: algo más pequeño para que quepa en una línea */
.s-recurso.rc-em .rc-title { font-size: clamp(34px, 8.5vw, 128px); }

/* ---------- Escaparate (hero) ---------- */
.rc-em .rc-em-shot { margin-top: clamp(40px, 5vw, 68px); }
.rc-em-stage {
  container: rcem / inline-size;
  position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(rgba(40, 34, 24, 0.13) 0.9px, transparent 1.25px) 0 0 / 12px 12px,
    radial-gradient(70% 90% at 30% 20%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(165deg, #f7f5f1, #efece6 70%, #e9e5de);
  box-shadow: 0 40px 100px rgba(60, 50, 35, 0.14), 0 10px 30px rgba(60, 50, 35, 0.06), inset 0 1px 0 #fff;
}
/* ventana de correo (ordenador) */
.rc-em-desk { position: absolute; z-index: 1; left: 7%; top: 8%; width: 58%; height: 100%; }
.rc-em-mail {
  display: flex; flex-direction: column; height: 100%; border-radius: 16px 16px 0 0; overflow: hidden; padding: 0;
  box-shadow: 0 30px 80px rgba(60, 50, 35, 0.18), 0 2px 8px rgba(60, 50, 35, 0.08);
}
.rc-em-mail-bar { flex: none; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #faf9f6; }
.rc-em-mail-bar > i { width: 9px; height: 9px; border-radius: 50%; background: rgba(15, 20, 30, 0.13); }
.rc-em-mail-from { margin-left: 12px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; color: var(--fg-3); }
.rc-em-mail-from b { color: var(--fg); font-weight: 650; letter-spacing: 0.02em; }
.rc-em-scr { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #efeeea; }
.rc-em-img { display: block; width: 100%; height: auto; max-width: none; }
/* móvil: el iPhone de WaPhonePreview (cx.wismify.com) a escala. Medidas reales 420×866 (pantalla 390×844, bisel 11,
   botones 4) → en cqw del propio móvil (100cqw = 420 px reales) */
.rc-em-phone {
  position: absolute; z-index: 2; right: 9%; top: 11%; width: 25%; aspect-ratio: 420 / 866; container-type: inline-size;
}
.rc-em-pbtn { position: absolute; width: 1.43cqw; border-radius: 0.7cqw; background: #2a2a2d; }
.rc-em-pbtn--1 { left: 0; top: 17.3cqw; height: 7.6cqw; }
.rc-em-pbtn--2 { left: 0; top: 50cqw; height: 14.8cqw; }
.rc-em-pbtn--3 { left: 0; top: 67.9cqw; height: 14.8cqw; }
.rc-em-pbtn--4 { right: 0; top: 57.1cqw; height: 22.9cqw; }
.rc-em-case {
  position: absolute; left: 0.95cqw; right: 0.95cqw; top: 0; bottom: 0; border-radius: 14.8cqw; padding: 0.6cqw;
  background: linear-gradient(145deg, #3a3a3e, #121214 45%, #2c2c30);
  box-shadow: 0 40px 80px rgba(20, 24, 31, 0.32), 0 6px 18px rgba(20, 24, 31, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.rc-em-bezel { width: 100%; height: 100%; border-radius: 14.3cqw; background: #000; padding: 2.02cqw; }
.rc-em-phone-in { position: relative; height: 100%; display: flex; flex-direction: column; border-radius: 11.9cqw; overflow: hidden; background: #fff; }
.rc-em-phone-in .rc-em-scr { background: #fff; }
.rc-em-status {
  flex: none; display: flex; align-items: center; justify-content: space-between; height: 12.9cqw; padding: 1cqw 8.1cqw 0 10.5cqw;
  color: #000; font: 600 4cqw/1 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.rc-em-status-i { display: flex; align-items: center; gap: 1.4cqw; }
.rc-em-status-i svg { height: 2.9cqw; width: auto; }
.rc-em-notch { position: absolute; z-index: 2; left: 50%; top: 2.6cqw; width: 29.5cqw; height: 8.6cqw; margin-left: -14.75cqw; border-radius: 4.8cqw; background: #000; }
.rc-em-home { position: absolute; z-index: 2; left: 50%; bottom: 2.1cqw; width: 33.3cqw; height: 1.2cqw; margin-left: -16.65cqw; border-radius: 0.7cqw; background: rgba(0, 0, 0, 0.85); }
/* etiquetas */
.rc-em-tag {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: var(--pill);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg); white-space: nowrap;
}
.rc-em-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--fg); }
.rc-em-tag--a { left: 4%; top: 4%; }
.rc-em-tag--b { right: 5%; top: 6%; }

/* ---------- Las 3 plantillas (tarjeta grande) ---------- */
.rc-em-tpls { display: grid; gap: 10px; margin-top: 14px; counter-reset: tpl; }
.rc-em-tpls > li {
  position: relative; display: grid; gap: 4px; padding: 14px 16px 14px 46px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid rgba(15, 20, 30, 0.06);
}
.rc-em-tpls > li::before {
  counter-increment: tpl; content: counter(tpl); position: absolute; left: 14px; top: 14px; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--inv-bg); color: var(--inv-fg); font-family: var(--mono); font-size: 11px;
}
.rc-em-tpls b { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; color: var(--fg); }
.rc-em-tpls span { font-size: 13px; line-height: 1.5; color: var(--fg-2); }
.rc-em-tpls code { justify-self: start; margin-top: 4px; padding: 2px 8px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--fg-1); overflow-wrap: anywhere; }

/* ---------- Cómo funciona ---------- */
.rc-em-how {
  margin-top: clamp(14px, 1.6vw, 20px); padding: clamp(22px, 3vw, 40px); border-radius: var(--rc-r, 22px);
  background: linear-gradient(165deg, #ffffff 0%, #ffffff 45%, #faf8f4 100%); border: 1px solid rgba(15, 20, 30, 0.10);
  box-shadow: 0 14px 36px rgba(60, 50, 35, 0.07), inset 0 1px 0 #fff;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); gap: clamp(20px, 3vw, 48px) clamp(24px, 4vw, 60px);
}
.rc-em-how-head { display: grid; gap: 12px; align-content: start; }
.rc-em-how-t { font-size: clamp(22px, 2.2vw, 32px); font-weight: 780; letter-spacing: -0.035em; line-height: 1.08; color: var(--fg); text-wrap: balance; }
.rc-em-how-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.rc-em-how-list > li { position: relative; display: grid; align-content: start; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.rc-em-how-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-3); font-family: var(--mono); font-size: 12px; color: var(--fg); background: #fff; }
.rc-em-how-list h4 { margin-top: 4px; font-size: 16px; font-weight: 700; letter-spacing: -0.015em; color: var(--fg); }
.rc-em-how-list p { font-size: 13.5px; line-height: 1.6; color: var(--fg-2); }
.rc-em-how-cta { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .rc-em-how { grid-template-columns: minmax(0, 1fr); }
  .rc-em-how-cta { grid-column: auto; }
}
@media (max-width: 720px) {
  .rc-em-stage { aspect-ratio: 4 / 5; border-radius: 20px; }
  .rc-em-desk { left: 5%; top: 11%; width: 82%; }
  .rc-em-mail { border-radius: 12px 12px 0 0; }
  .rc-em-mail-bar { height: 26px; padding: 0 9px; gap: 4px; }
  .rc-em-mail-bar > i { width: 6px; height: 6px; }
  .rc-em-mail-from { margin-left: 6px; font-size: 9.5px; }
  .rc-em-phone { right: 5%; top: 30%; width: 44%; }
  .rc-em-tag { height: 24px; padding: 0 9px; font-size: 8.5px; letter-spacing: 0.1em; gap: 6px; }
  .rc-em-tag--a { left: 5%; top: 3%; }
  .rc-em-tag--b { right: 5%; top: auto; bottom: 3%; }
  .rc-em-how-list { grid-template-columns: minmax(0, 1fr); }
  .rc-em-how-cta .btn { flex: 1 1 100%; }
}
