:root {
  --ale-brand: #4ca59b;
  --ale-dark: #385c57;
}

.alejandra-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: var(--ale-dark);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(56, 92, 87, 0.35);
}

.alejandra-fab img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.alejandra-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 81;
  width: min(400px, calc(100vw - 24px));
  height: min(520px, calc(100vh - 32px));
  display: none;
  flex-direction: column;
  background: #fff;
  color: #1a2e2c;
  color-scheme: light;
  border: 1px solid var(--border, #d7e6e3);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(26, 46, 44, 0.18);
  overflow: hidden;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.alejandra-panel.is-open {
  display: flex;
}

.alejandra-panel[hidden],
.alejandra-fab[hidden] {
  display: none !important;
}

.alejandra-panel header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--ale-dark);
  color: #f0faf8;
}

.alejandra-panel header strong {
  display: block;
  font-size: 15px;
}

.alejandra-panel header span {
  font-size: 11px;
  opacity: 0.85;
}

.alejandra-panel header button {
  margin-left: auto;
  border: none;
  background: transparent;
  color: #f0faf8;
  font-size: 22px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  z-index: 2;
  position: relative;
}

.alejandra-fuentes {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.alejandra-fuentes a {
  font-size: 11px;
  color: #2f6f68;
  background: #eef8f6;
  border-radius: 999px;
  padding: 3px 8px;
  text-decoration: none;
}

.alejandra-panel .cuerpo {
  flex: 1;
  overflow: auto;
  padding: 12px 14px;
  background: #fff;
  font-size: 13.5px;
  line-height: 1.45;
  color: #1a2e2c;
}

.alejandra-bienvenida {
  margin: -12px -14px 8px;
  padding: 12px 14px 0;
  background: #fff;
}

.alejandra-bienvenida__marca {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.alejandra-bienvenida__marca img {
  width: 36px;
  height: 36px;
  display: block;
}

.alejandra-bienvenida__brand {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #385c57;
}

.alejandra-bienvenida__brand span {
  font-weight: 500;
}

.alejandra-bienvenida__by {
  margin: 2px 0 0;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a7f7b;
}

.alejandra-bienvenida__grid {
  display: grid;
  grid-template-columns: 1fr 46%;
  align-items: start;
  min-height: 0;
}

.alejandra-bienvenida__texto h2 {
  margin: 0 0 4px;
  font-size: 28px;
  color: #1a2e2c;
}

.alejandra-bienvenida__rol {
  margin: 0 0 12px;
  font-size: 14px;
  color: #385c57;
}

.alejandra-bienvenida__rol em {
  font-style: normal;
  color: #4ca59b;
  font-weight: 650;
}

.alejandra-bienvenida__lead {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.4;
}

.alejandra-bienvenida__pregunta {
  margin: 0 0 12px;
  display: inline-block;
  padding: 10px 12px;
  border: 1.5px solid #4ca59b;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  color: #1a2e2c;
  font-size: 14px;
  font-weight: 650;
}

.alejandra-sugerencias {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}

.alejandra-sugerencias button {
  border: 1px solid #d7e6e3;
  background: #fff;
  color: #385c57;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.alejandra-sugerencias button.alejandra-sugerencias__promo {
  border: none;
  background: #4ca59b;
  color: #fff;
  font-weight: 650;
  font-size: 12.5px;
  padding: 7px 12px;
  box-shadow: 0 3px 10px rgba(76, 165, 155, 0.32);
}

.alejandra-sugerencias button.alejandra-sugerencias__promo:hover {
  background: #3d8f86;
}

.alejandra-bienvenida__foto {
  width: 100%;
  height: 280px;
  object-fit: contain;
  object-position: bottom right;
  display: block;
  background: #fff;
  image-rendering: auto;
}

@media (min-width: 769px) {
  .alejandra-bienvenida__foto {
    height: 340px;
  }
}

.alejandra-panel .msg {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #d7e6e3;
}

.alejandra-panel .msg.user {
  white-space: pre-wrap;
}

.alejandra-md p {
  margin: 0 0 0.55em;
}

.alejandra-md p:last-child {
  margin-bottom: 0;
}

.alejandra-md .alejandra-paso {
  margin: 0.75em 0 0.2em;
  font-weight: 650;
  color: #385c57;
  font-size: 13px;
}

.alejandra-md ul {
  margin: 0.3em 0 0.55em;
  padding-left: 1.15em;
}

.alejandra-md ol.alejandra-pasos {
  margin: 0.35em 0 0.65em;
  padding: 0;
  list-style: none;
  counter-reset: ale-paso;
}

.alejandra-md ol.alejandra-pasos > li {
  counter-increment: ale-paso;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0.55em 0;
}

.alejandra-md ol.alejandra-pasos > li::before {
  content: counter(ale-paso);
  flex: 0 0 1.5em;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: #eef8f6;
  color: #2f6f68;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5em;
  text-align: center;
}

.alejandra-panel .msg.user {
  background: var(--ale-brand);
  color: #fff;
  -webkit-text-fill-color: #fff;
  border: none;
}

.alejandra-panel form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #d7e6e3;
  background: #fff;
}

.alejandra-panel form input {
  flex: 1;
  min-width: 0;
  border: 1px solid #d7e6e3;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  background: #fff !important;
  color: #1a2e2c !important;
  -webkit-text-fill-color: #1a2e2c;
  caret-color: #1a2e2c;
  color-scheme: light;
}

.alejandra-panel form input::placeholder {
  color: #6a7f7b;
  -webkit-text-fill-color: #6a7f7b;
  opacity: 1;
}

.alejandra-panel form input:-webkit-autofill,
.alejandra-panel form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: #1a2e2c;
}

.alejandra-panel form button {
  border: none;
  border-radius: 12px;
  background: var(--ale-brand);
  color: #fff;
  font-weight: 650;
  padding: 0 14px;
  cursor: pointer;
}

@media print {
  .alejandra-fab,
  .alejandra-panel {
    display: none !important;
  }
}
