/* WA-APP. Chats Tropiauto. Pantalla completa. No toca la portada. */
.waapp-back {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #fff;
  display: flex;
}
.waapp-back[hidden] { display: none; }
.waapp-phone {
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: 0;
  background: #fff;
  color: #111b21;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'SEAT BCN', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  box-sizing: border-box;
  position: relative;
}
.waapp-phone input,
.waapp-phone textarea,
.waapp-phone button { font-family: inherit; }
.waapp-phone input { font-size: 18px; }
html.wa-modal-open,
body.wa-modal-open { overflow: hidden; }
.waapp-cols { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.waapp-lado { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.waapp-conv { display: none; min-width: 0; min-height: 0; }
.waapp-phone.en-chat .waapp-lado { display: none; }
.waapp-phone.en-chat .waapp-conv { display: flex; flex: 1; flex-direction: column; min-height: 0; }

.waapp-brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: max(12px, env(safe-area-inset-top)) 12px 0;
}
.waapp-marca { display: flex; flex-direction: column; min-width: 0; }
.waapp-marca b { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #8d6844; }
.waapp-marca span { font-size: 12px; color: #667781; }
.waapp-appbar { display: flex; gap: 6px; flex: none; }
.waapp-appbtn, .waapp-tabcerrar {
  border: 0;
  background: #f0f2f5;
  color: #111;
  border-radius: 999px;
  min-height: 40px;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}
.waapp-titulo .waapp-x {
  background: transparent;
  color: #54656f;
  min-height: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 22px;
  font-weight: 500;
}
.waapp-titulo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(8px, env(safe-area-inset-top)) 8px 0 0;
}
.waapp-title, .waapp-titulo .waapp-title {
  margin: 8px 0 4px 16px;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.waapp-marca-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px 0 8px;
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px #e6e6ea;
}
.waapp-marca-btn img { width: 18px; height: 18px; object-fit: contain; }
.waapp-marca-btn.seat { color: #e10600; }
.waapp-marca-btn.cupra { color: #8d6844; }
.waapp-pie { display: flex; flex-direction: column; gap: 2px; padding: 0 14px 6px 16px; }
.waapp-sub { margin: 0; color: #667781; font-size: 15px; }
.waapp-reloj b { display: block; font-size: 14px; font-weight: 800; }
.waapp-reloj b.wa-on { color: #0b8f4d; }
.waapp-reloj b.wa-off { color: #e11d2e; }
.waapp-reloj small { display: block; margin: 0 0 4px; color: #667781; font-size: 13px; }
.waapp-search {
  margin: 6px 16px 8px;
  background: #e9e9eb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 36px;
  color: #8e8e93;
}
.waapp-tab svg { width: 24px; height: 24px; fill: currentColor; display: block; }
.waapp-tab.on { color: #1fa855; background: transparent; }
.waapp-search input { border: 0; background: transparent; width: 100%; color: #111b21; outline: none; font-size: 17px; }
.waapp-row {
  width: 100%;
  border: 0;
  background: #fff;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  min-height: 74px;
  padding: 8px 16px 8px 16px;
  font: inherit;
  color: inherit;
  position: relative;
}
.waapp-row::after { content: ""; position: absolute; left: 84px; right: 0; bottom: 0; height: 1px; background: #e9edef; }
.waapp-av {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: #0b6e5b;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.waapp-av img { width: 56px; height: 56px; object-fit: cover; display: block; }
.waapp-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.waapp-name { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 500; font-size: 17px; color: #111b21; }
.waapp-name span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.waapp-time { color: #667781; font-size: 12px; font-weight: 400; flex: none; }
.waapp-time.abierto { color: #25d366; }
.waapp-preview { display: block; color: #667781; font-size: 14px; font-weight: 400; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.waapp-chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 10px; -webkit-overflow-scrolling: touch; }
.waapp-chip {
  border: 0;
  background: #f2f2f7;
  color: #111;
  border-radius: 16px;
  padding: 6px 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.waapp-chip.on { background: #d8fdd2; color: #111; box-shadow: none; }
.waapp-bar {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  gap: 6px;
  padding: 6px 8px calc(2px + env(safe-area-inset-bottom));
  border-top: .5px solid rgba(60, 60, 67, .18);
  background: rgba(249, 249, 249, .94);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.waapp-tab {
  border: 0;
  background: transparent;
  color: #8e8e93;
  font: inherit;
  font-size: 10px;
  font-weight: 500;
  text-decoration: none;
  padding: 2px 16px 4px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.waapp-list { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.waapp-row.on, .waapp-row:active { background: #f5f6f6; }
.waapp-av svg { width: 28px; height: 28px; fill: currentColor; }
.waapp-av.foto { background: #fff; }
.waapp-av.taller { background: #fff; }
.waapp-av.taller img { object-fit: contain; background: #fff; }
.waapp-av.approved img, .waapp-av.renting img { object-fit: cover; }
.waapp-av i {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 0 2px #fff;
}
.waapp-av i.off { background: #ff3b30; }
.waapp-sheet {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, .35);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.waapp-sheet-box {
  width: min(420px, calc(100% - 16px));
  max-height: 78vh;
  overflow: auto;
  margin: 0 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(249, 249, 249, .98);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.waapp-sheet-dep {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-top: .5px solid rgba(60, 60, 67, .18);
}
.waapp-sheet-logo {
  border: 0;
  background: transparent;
  padding: 0;
  flex: none;
}
.waapp-sheet-logo .waapp-av { width: 52px; height: 52px; }
.waapp-sheet-logo .waapp-av img { width: 52px; height: 52px; }
.waapp-sheet-nums { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.waapp-sheet-nums strong { font-size: 16px; color: #111; }
.waapp-sheet-num {
  border: 0;
  background: transparent;
  color: #007aff;
  font: inherit;
  font-size: 16px;
  padding: 4px 0;
  text-align: left;
}
.waapp-sheet-chat {
  flex: none;
  border: 0;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  min-height: 36px;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}
.waapp-sheet-chat svg { width: 16px; height: 16px; fill: #fff; display: block; }
.waapp-sheet-tit {
  margin: 0;
  padding: 14px 16px 8px;
  text-align: center;
  color: #8e8e93;
  font-size: 13px;
}
.waapp-sheet-op {
  width: 100%;
  border: 0;
  border-top: .5px solid rgba(60, 60, 67, .18);
  background: transparent;
  min-height: 52px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: inherit;
  font-size: 17px;
  color: #007aff;
}
.waapp-sheet-op strong { font-weight: 600; color: #111; }
.waapp-sheet-op span { color: #8e8e93; font-size: 15px; }
.waapp-sheet-no { justify-content: center; font-weight: 600; color: #007aff; }
.waapp-tab i { font-style: normal; font-size: 20px; line-height: 1; }

.waapp-chat {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  background-color: #efeae2;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(11, 110, 91, .05) 0 8px, transparent 9px),
    radial-gradient(circle at 80% 60%, rgba(17, 27, 33, .04) 0 6px, transparent 7px);
  background-size: 140px 140px, 180px 180px;
}
.waapp-chathead {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: max(8px, env(safe-area-inset-top)) 10px 8px;
  background: #f0f2f5;
  flex: none;
}
.waapp-waback {
  width: 32px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #007aff;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  padding: 0;
}
.waapp-chathead .waapp-av { width: 40px; height: 40px; }
.waapp-chathead .waapp-av img,
.waapp-chathead .waapp-av svg { width: 40px; height: 40px; }
.waapp-chathead .who { flex: 1; min-width: 0; }
.waapp-chathead strong { display: inline; font-size: 19px; }
.waapp-chathead em { display: block; font-style: normal; font-size: 15px; color: #667781; }
.waapp-chathead em.ok { color: #128c7e; font-weight: 700; }
.waapp-ia {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #111b21;
  color: #fff;
  font-size: 10px;
  letter-spacing: .08em;
  vertical-align: 2px;
}
.waapp-waico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #111;
  text-decoration: none;
  flex: none;
}
.waapp-msgs {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
}
.waapp-day {
  align-self: center;
  background: #fff;
  color: #667781;
  font-size: 12px;
  border-radius: 8px;
  padding: 4px 10px;
}
.waapp-in, .waapp-out {
  max-width: 86%;
  padding: 6px 8px 4px 10px;
  border-radius: 18px;
  font-size: 17px;
  line-height: 1.4;
  white-space: pre-wrap;
  box-shadow: 0 1px .5px rgba(0,0,0,.13);
}
.waapp-in { background: #fff; align-self: flex-start; border-top-left-radius: 4px; }
.waapp-out { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 4px; }
.waapp-in small, .waapp-out small { float: right; margin: 4px 0 0 12px; color: #667781; font-size: 13px; }
.waapp-out small { color: #53bdeb; }
.waapp-in, .waapp-out { animation: waapp-pop .18s ease; }
@keyframes waapp-pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.waapp-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 1px .5px rgba(0,0,0,.13);
}
.waapp-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8696a0;
  animation: waapp-dot 1s infinite;
}
.waapp-typing i:nth-child(2) { animation-delay: .15s; }
.waapp-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes waapp-dot {
  0%, 80%, 100% { opacity: .35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
.waapp-dock { flex: none; background: #f0f2f5; }
.waapp-phone.wa-teclado .waapp-dock {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 8;
  background: #f0f2f5;
}
.waapp-quick { display: flex; gap: 8px; overflow-x: auto; padding: 8px 10px 0; -webkit-overflow-scrolling: touch; }
.waapp-quick button {
  border: 0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 15px;
  white-space: nowrap;
}
.waapp-quick button.waapp-frase { background: #d9fdd3; font-weight: 700; }
.waapp-pasar {
  display: block;
  margin: 4px 12px;
  border: 0;
  background: transparent;
  color: #027eb5;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: right;
  width: calc(100% - 24px);
}
.waapp-compose {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
  background: #f0f2f5;
}
.waapp-phone.wa-teclado .waapp-compose { padding-bottom: 8px; }
.waapp-plus {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #54656f;
  font-size: 32px;
  line-height: 1;
}
.waapp-compose input {
  flex: 1;
  border: 0;
  border-radius: 22px;
  padding: 11px 14px;
  outline: none;
  background: #fff;
}
.waapp-send {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 20px;
}
.waapp-vacio { margin: auto; text-align: center; color: #667781; padding: 24px; }
.waapp-vacio strong { display: block; color: #111b21; font-size: 22px; margin-bottom: 6px; }

@media (min-width: 900px) {
  .waapp-cols { flex-direction: row; }
  .waapp-lado { width: 380px; flex: none; border-right: 1px solid #e9edef; }
  .waapp-conv { display: flex; flex: 1; }
  .waapp-phone.en-chat .waapp-lado { display: flex; }
  .waapp-pie { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .waapp-reloj { text-align: right; }
  .waapp-title, .waapp-titulo .waapp-title { font-size: 40px; }
}

/* 05/11/2026 · Orden de Antonio: la app de WhatsApp tambien va en SEAT BCN */
