/* Móvil de la portada. Copia la pantalla de chat de la app en claro: mismos colores (apps/web/src/index.css), burbuja del usuario en verde claro, tarjeta de resultado con marca de verificación y barra inferior con Tareas, teclado, micrófono, + y Archivo. */

.phone {
  --app-bg: #ffffff;
  --app-block: #f3f3f0;
  --app-ink: #37352f;
  --app-muted: #6f6e69;
  --app-line: #e4e4e0;
  --app-accent: #1f5c45;
  --app-tint: #e9efec;
  --app-pdf: #c8423b;
  width: min(340px, 100%);
  margin: 0 auto;
  padding: 12px;
  border-radius: 54px;
  background: #1d1d1a;
  box-shadow:
    inset 0 0 0 2px #4a4a46,
    0 50px 90px -40px rgba(29, 29, 26, 0.6),
    0 0 0 1px rgba(0, 0, 0, 0.3);
}
.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 640px;
  border-radius: 42px;
  background: var(--app-bg);
  color: var(--app-ink);
  font-size: 14px;
  line-height: 1.35;
  overflow: hidden;
}

/* Barra de estado y la isla de la cámara */
.phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 26px 4px;
  font-size: 13px;
  font-weight: 600;
}
.phone__status span:last-child {
  font-size: 8px;
  letter-spacing: 2px;
}
.phone__island {
  width: 86px;
  height: 24px;
  border-radius: 999px;
  background: #1d1d1a;
}

/* Cabecera de la app: logotipo y resumen */
.phone__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px 10px;
  border-bottom: 1px solid var(--app-line);
}
.phone__head img {
  height: 19px;
  width: auto;
}
.phone__head em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--app-muted);
  white-space: nowrap;
}

/* Conversación */
.phone__chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 12px;
}
.bubble {
  margin: 0;
  max-width: 86%;
  align-self: flex-end;
  padding: 9px 12px;
  border-radius: 18px 18px 4px 18px;
  background: var(--app-tint);
}
.chip {
  display: inline-flex;
  align-self: flex-end;
  align-items: center;
  min-height: 36px;
  margin-bottom: -8px;
  padding: 0 12px;
  border-radius: 16px;
  background: var(--app-block);
  color: var(--app-accent);
  font-weight: 600;
  font-size: 13px;
}
.reply {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.mark {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--app-accent) url("brand/bautista-icon.svg") center / 20px
    no-repeat;
}

/* Tarjeta de resultado: icono a la izquierda, título y detalle a la derecha, «Deshacer» debajo */
.card {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 2px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--app-line);
  background: var(--app-bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.card .ico {
  grid-row: span 2;
}
.card strong {
  grid-column: 2;
  min-width: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.card strong b {
  white-space: nowrap;
  font-weight: inherit;
}
.card span {
  grid-column: 2;
  font-size: 12.5px;
  color: var(--app-muted);
}
.card small {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--app-accent);
}

/* Iconos, copiados de los de la app */
.ico {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ico--check {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--app-accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}
.ico--pdf {
  width: 24px;
  height: 28px;
  margin-top: 1px;
  border-radius: 4px;
  background: var(--app-pdf);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.3px;
}
.ico--keyboard,
.ico--plus {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--app-ink);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 24px;
}
.ico--keyboard {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2337352f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='6' width='19' height='12' rx='2'/%3E%3Cpath d='M6.5 10h.01M10 10h.01M14 10h.01M17.5 10h.01M8 14h8'/%3E%3C/svg%3E");
}
.ico--plus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2337352f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

/* Barra inferior: Tareas · [teclado, micrófono, +] · Archivo */
.phone__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 4px;
  padding: 6px 4px 6px;
  border-top: 1px solid var(--app-line);
}
.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 48px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--app-muted);
}
.tab--on {
  color: var(--app-accent);
  font-weight: 600;
  border-bottom: 3px solid var(--app-accent);
  border-radius: 0;
}
.pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--app-block);
}
.mic {
  position: relative;
  width: 56px;
  height: 56px;
  margin: -8px 0;
  border-radius: 50%;
  background: var(--app-accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='3' width='6' height='11' rx='3'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v3'/%3E%3C/svg%3E")
    center / 26px no-repeat;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow:
      0 2px 8px rgba(0, 0, 0, 0.2),
      0 0 0 0 rgba(31, 92, 69, 0.35);
  }
  50% {
    box-shadow:
      0 2px 8px rgba(0, 0, 0, 0.2),
      0 0 0 12px rgba(31, 92, 69, 0);
  }
}
.phone__home {
  display: block;
  width: 120px;
  height: 5px;
  margin: 4px auto 8px;
  border-radius: 999px;
  background: #1d1d1a;
}
