/* Grupo de WhatsApp en un móvil (sección del dolor) */
.wa-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
/* Marco de iPhone: banda de titanio, bisel negro, botones laterales y Dynamic Island */
.phone.wa-phone { width: 340px; height: 702px; padding: 3.5px; border-radius: 58px;
  background: linear-gradient(135deg, #8d9098 0%, #3b3e45 14%, #5c6068 38%, #2b2d33 62%, #50535a 86%, #9a9da4 100%);
  box-shadow: 0 34px 80px rgba(10, 33, 79, 0.3), 0 0 0 0.5px rgba(0, 0, 0, 0.6), inset 0 0 0 0.8px rgba(255, 255, 255, 0.35); }
.phone.wa-phone::before, .phone.wa-phone::after { content: ""; position: absolute; width: 3.5px; background: linear-gradient(90deg, #2a2c31, #6d7078 60%, #3d4047); }
.phone.wa-phone::before { left: -3px; top: 118px; height: 168px; border-radius: 2px 0 0 2px;
  -webkit-mask: linear-gradient(#000 0 28px, transparent 28px 52px, #000 52px 108px, transparent 108px 118px, #000 118px 168px);
  mask: linear-gradient(#000 0 28px, transparent 28px 52px, #000 52px 108px, transparent 108px 118px, #000 118px 168px); }
.phone.wa-phone::after { right: -3px; top: 192px; height: 96px; border-radius: 0 2px 2px 0; transform: scaleX(-1); }
.wa-phone .phone-screen { box-sizing: border-box; border: 10px solid #000; border-radius: 54.5px; }
.wa-phone .phone-notch { top: 24px; width: 104px; height: 30px; margin-left: -52px; border-radius: 20px; background: #000;
  background-image: radial-gradient(circle at 84px 15px, #1d2a44 0 3px, #0a0f1c 3.6px, transparent 4.2px); }
.wa-screen { display: flex; flex-direction: column; background: #efeae2;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter Variable", Inter, system-ui, sans-serif; }

/* Barra de estado de iOS */
.ios-status { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 4px 26px 0 34px; color: #000; }
.ios-status b { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.ios-icons { display: flex; align-items: center; gap: 5px; fill: #000; }
.ios-battery { position: relative; width: 24px; height: 12px; padding: 1.5px; border: 1px solid rgba(0, 0, 0, 0.4); border-radius: 4px; }
.ios-battery::after { content: ""; position: absolute; top: 3.5px; right: -3.5px; width: 1.5px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(0, 0, 0, 0.4); }
.ios-battery i { display: block; width: 62%; height: 100%; border-radius: 1.5px; background: #000; }
.ios-home { position: absolute; bottom: 7px; left: 50%; z-index: 4; width: 118px; height: 4.5px; margin-left: -59px; border-radius: 3px; background: #000; }

/* Cabecera de WhatsApp para iOS */
.wa-top { position: relative; z-index: 2; background: rgba(246, 246, 246, 0.94); box-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.18); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.wa-head { display: flex; align-items: center; gap: 7px; padding: 2px 12px 8px 8px; color: #000; }
.wa-back { display: inline-flex; align-items: center; gap: 3px; color: #007aff; font-size: 16px; line-height: 1; }
.wa-group-av { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; margin-left: 4px; border-radius: 50%; background: #000; }
.wa-group-av img { width: 50%; height: auto; }
.wa-group { flex: 1; min-width: 0; line-height: 1.2; }
.wa-group b { display: block; overflow: hidden; font-size: 15px; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
.wa-group small { display: block; overflow: hidden; color: #8a8a8e; font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
.wa-group small.is-typing { color: #8a8a8e; }
.wa-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 18px; color: #007aff; }
.wa-body { flex: 1; display: flex; flex-direction: column; gap: 5px; padding: 10px 10px 12px; overflow: hidden;
  background: #efeae2 url("img/wa-fondo.png") center top / 100% auto repeat; }
.wa-day { align-self: center; margin: 2px 0 6px; padding: 3px 10px; border-radius: 8px; background: #fff; color: #54656f; font-size: 11px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); }
.wa-sys { align-self: center; margin: 6px 0; padding: 4px 10px; border-radius: 8px; background: #fff7cc; color: #54656f; font-size: 11.5px; text-align: center; animation: wa-in 0.35s ease; }
.wa-msg { display: flex; flex: 0 0 auto; align-items: flex-end; gap: 6px; max-width: 92%; animation: wa-in 0.35s ease; }
.wa-msg.me { align-self: flex-end; }
.wa-av { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: #fff; }
.wa-av.bot { padding: 1px; background: #fff; box-shadow: 0 0 0 1.5px var(--blue); object-fit: contain; }
.wa-bubble { position: relative; padding: 6px 8px 5px; border-radius: 10px 10px 10px 2px; background: #fff; color: #111b21; font-size: 13px; line-height: 1.38; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); }
.wa-msg.me .wa-bubble { border-radius: 10px 10px 2px 10px; background: #d9fdd3; }
.wa-name { display: block; margin-bottom: 1px; font-size: 12px; font-weight: 700; }
.wa-time { float: right; margin: 6px 0 -3px 8px; font-size: 10px; color: #667781; }
.wa-msg.me .wa-time::after { content: " ✓✓"; color: #53bdeb; }
.wa-bubble b { font-weight: 750; }
.wa-msg.bot .wa-bubble { background: #eef5ff; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), inset 0 0 0 1px #cfe0ff; }
.wa-msg.bot .wa-name { color: var(--blue); }
.wa-verified { display: inline-grid; place-items: center; width: 13px; height: 13px; margin-left: 3px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 8px; vertical-align: 1px; }
.wa-card { margin-top: 4px; overflow: hidden; border-radius: 8px; background: #fff; border: 1px solid #cfe0ff; }
.wa-card-top { padding: 10px; background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; }
.wa-card-top b { display: block; font-size: 13.5px; }
.wa-card-top small { display: block; font-size: 11.5px; opacity: 0.85; }
.wa-card a { display: block; padding: 8px; color: var(--blue); font-size: 13px; font-weight: 800; text-align: center; text-decoration: none; }
.wa-typing .wa-bubble { display: inline-flex; gap: 3px; padding: 10px 11px; }
.wa-typing i { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: wa-dot 1s infinite; }
.wa-typing i:nth-child(2) { animation-delay: 0.15s; }
.wa-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes wa-dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes wa-in { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }
/* Colita de los bocadillos, como en iOS */
.wa-bubble::before { content: ""; position: absolute; bottom: 0; left: -6px; width: 12px; height: 13px; background: inherit; clip-path: path("M12 0C12 7 8 11.5 0 13H12Z"); }
.wa-msg.me .wa-bubble::before { left: auto; right: -6px; clip-path: path("M0 0C0 7 4 11.5 12 13H0Z"); }
.wa-msg.bot .wa-bubble::before { background: #eef5ff; }

/* Barra de escritura de iOS: el micro se convierte en el botón de enviar cuando hay texto */
.wa-input { position: relative; z-index: 2; display: flex; align-items: flex-end; gap: 12px; padding: 7px 14px 26px 12px; background: rgba(246, 246, 246, 0.96); box-shadow: 0 -0.5px 0 rgba(0, 0, 0, 0.18); color: #007aff; }
.wa-input > svg { flex: 0 0 auto; margin-bottom: 7px; }
.wa-field { position: relative; display: flex; flex-direction: column; justify-content: flex-end; flex: 1; min-width: 0; min-height: 34px; max-height: 92px; overflow: hidden; padding: 7px 32px 7px 12px; border: 1px solid #d8d8dc; border-radius: 18px; background: #fff; color: #000; font-size: 14px; line-height: 18px; overflow-wrap: anywhere; }
.wa-sticker { position: absolute; right: 9px; bottom: 7px; color: #007aff; }
.wa-input.has-text [data-wa-field]::after { content: ""; display: inline-block; width: 2px; height: 17px; margin: 0 0 -3px 1px; border-radius: 1px; background: #25d366; animation: wa-caret 1s steps(1) infinite; }
.wa-send { display: none; flex: 0 0 auto; place-items: center; width: 32px; height: 32px; margin-bottom: 1px; border-radius: 50%; background: #25d366; transition: transform 0.12s ease; }
.wa-input.has-text .wa-cam, .wa-input.has-text .wa-mic { display: none; }
.wa-input.has-text .wa-send { display: grid; animation: wa-pop 0.2s ease; }
.wa-input.is-sending .wa-send { transform: scale(0.84); filter: brightness(0.92); }
@keyframes wa-caret { 50% { opacity: 0; } }
@keyframes wa-pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.wa-replay { display: inline-flex; align-items: center; gap: 6px; padding: 0; background: none; border: 0; color: var(--blue); font-size: 14px; font-weight: 750; cursor: pointer; }
@media (max-width: 640px) {
  .phone.wa-phone { width: 300px; height: 620px; border-radius: 52px; }
  .wa-phone .phone-screen { border-width: 9px; border-radius: 49px; }
  .wa-phone .phone-notch { top: 21px; width: 92px; height: 27px; margin-left: -46px; background-image: radial-gradient(circle at 74px 13.5px, #1d2a44 0 2.6px, #0a0f1c 3.2px, transparent 3.8px); }
  .ios-status { height: 40px; padding: 2px 22px 0 30px; }
  .wa-head { gap: 6px; padding-right: 10px; }
  .wa-group-av { width: 30px; height: 30px; margin-left: 2px; font-size: 17px; }
  .wa-group b { font-size: 14.5px; }
  .wa-actions { gap: 13px; }
  .wa-actions svg:first-child { width: 22px; }
}

/* Columna izquierda del dolor: los tres datos, que se encienden cuando Aitorín los explica */
.pain-grid { align-items: center; }
.pain-facts.pain-facts-v { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 28px; padding: 0; background: none; box-shadow: none; color: var(--ink); }
.pain-facts-v .fact { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; padding: 14px 18px; border: 1px solid transparent; border-radius: 16px; background: var(--navy); color: #fff; opacity: 0.55; transform: scale(0.98); transition: opacity 0.5s, transform 0.5s, box-shadow 0.5s, border-color 0.5s; }
.pain-facts-v .fact + .fact { border-left: 1px solid transparent; border-top: 0; }
.pain-facts-v .fact.is-lit { opacity: 1; transform: none; border-color: #3b82ff; box-shadow: 0 0 0 4px rgba(8, 103, 255, 0.18), 0 18px 40px rgba(7, 27, 67, 0.25); }
.pain-facts-v .fact h3 { margin: 0 0 4px; font-size: 17px; }
.pain-facts-v .fact p { font-size: 13.5px; }
.pain-facts-v .fact-visual { height: 48px; }
.pain-facts-v .eq { min-width: 30px; height: 34px; padding: 0 5px; font-size: 15px; border-radius: 8px; }
.pain-facts-v .eq-eq { font-size: 16px; }
.pain-facts-v .months { gap: 3px; }
.pain-facts-v .months i { width: 8px; height: 22px; }
.pain-facts-v .months i.on { height: 34px; }
.pain-facts-v .weights span { grid-template-columns: 32px 1fr; font-size: 11px; }
.pain-copy .pain-close { margin-top: 40px; }
.pain-copy .pain-close p { font-size: 26px; }
@media (max-width: 640px) {
  .pain-facts-v .fact { grid-template-columns: 1fr; gap: 8px; }
}
@media (min-width: 981px) {
  .pain-grid { grid-template-columns: 0.9fr 1.1fr; }
  .pain-grid .wa-wrap { order: -1; }
}
