/* =========================================================
   PÁGINA INICIAL PIKIT
   Depende de:
   shared/css/pikit-ui.css
   shared/css/pikit-styles.css
========================================================= */

.pikit-home {
  padding: 34px 22px 28px;
}

.home-hero {
  margin: 0 0 28px;
}

.home-mascot {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe1ef, #ffc2df);
  font-size: 2.6rem;
  box-shadow: 0 16px 34px rgba(255, 90, 165, 0.18);
}

.smart-search-card {
  width: 100%;
  margin: 0 auto;
  padding: 12px;
  border: 2px dashed var(--pikit-pink-line);
  border-radius: var(--pikit-radius-xl);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--pikit-shadow-soft);
}

.smart-search-form {
  display: grid;
  grid-template-columns: 66px 1fr 58px;
  align-items: center;
  gap: 10px;
  min-height: 92px;
}

.mic-button,
.send-button {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
}

.mic-button {
  background: var(--pikit-pink-soft);
  color: var(--pikit-pink-dark);
  font-size: 1.85rem;
}

.send-button {
  font-size: 1.5rem;
}

.mic-button.is-listening {
  animation: pulseMic 0.9s infinite alternate;
}

.smart-search-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--pikit-text);
  font-size: clamp(1rem, 4vw, 1.25rem);
  font-weight: 750;
}

.smart-search-input::placeholder {
  color: var(--pikit-text-muted);
}


/* =========================================================
   RESULTADO COMPACTO
========================================================= */

.smart-example {
  display: none;
}

.assistant-result-zone {
  min-height: 0;
  margin: 16px 0 26px;
}

.assistant-result-zone:empty {
  margin: 0 0 24px;
}

.assistant-result {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #ffd3e7;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(40, 20, 60, 0.07);
  text-align: left;
}

.assistant-result-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--pikit-pink-soft);
  font-size: 1.7rem;
}

.assistant-result-text span {
  display: block;
  color: var(--pikit-text-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.assistant-result-text strong {
  display: block;
  margin-top: 2px;
  color: var(--pikit-text);
  font-size: 1.08rem;
  line-height: 1.05;
  font-weight: 950;
}

.assistant-result-btn {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 8px;
  padding: 14px;
  border-radius: 999px;
  color: white;
  text-decoration: none;
  font-weight: 900;
}

.suggestion-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.suggestion-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--pikit-pink-soft);
  color: var(--pikit-text);
  text-decoration: none;
  font-weight: 900;
}

.suggestion-chip span:last-child {
  color: var(--pikit-pink-dark);
  font-size: 1.6rem;
  line-height: 1;
}


/* =========================================================
   MÁS USADAS COMPACTAS
========================================================= */

.most-used-section {
  text-align: left;
}

.most-used-section h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.quick-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-tool {
  flex: 1;
  min-width: 140px;
  padding: 14px 16px;
  border: 1px solid #ffd3e7;
  border-radius: 999px;
  background: white;
  color: var(--pikit-text);
  text-align: center;
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(40, 20, 60, 0.06);
}


/* =========================================================
   LEGADO
   Ya no debería verse, pero lo dejamos oculto por seguridad
========================================================= */

.most-used-grid {
  display: none;
}


/* =========================================================
   MODAL INSTALAR PIKIT
========================================================= */

.pikit-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(23, 23, 47, 0.34);
  backdrop-filter: blur(8px);
}

.pikit-modal-overlay.pikit-hidden {
  display: none;
}

.pikit-install-modal {
  position: relative;
  width: min(100%, 390px);
  padding: 26px 22px 20px;
  border: 1px solid #ffd3e7;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, #ffe2f0, transparent 38%),
    #fffdf8;
  box-shadow: 0 22px 60px rgba(40, 20, 60, 0.2);
  text-align: center;
}

.install-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--pikit-pink-soft);
  color: var(--pikit-pink-dark);
  font-weight: 900;
  cursor: pointer;
}

.install-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ff82bf, #ff4d9e);
  color: white;
  font-size: 2.2rem;
  box-shadow: var(--pikit-shadow-pink);
}

.pikit-install-modal h2 {
  margin: 0 0 8px;
  color: var(--pikit-text);
  font-size: 1.65rem;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.pikit-install-modal p {
  max-width: 290px;
  margin: 0 auto 18px;
  color: var(--pikit-text-soft);
  font-size: 0.98rem;
  line-height: 1.25;
  font-weight: 750;
}

.install-main-btn {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(180deg, #ff73b5, #ff3f97);
  color: white;
  font-size: 1rem;
  font-weight: 950;
  box-shadow: var(--pikit-shadow-pink);
  cursor: pointer;
}

.install-later-btn {
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: var(--pikit-text-muted);
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
}


/* =========================================================
   ANIMACIONES
========================================================= */

@keyframes pulseMic {
  from {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255, 90, 165, 0);
  }

  to {
    transform: scale(1.06);
    box-shadow: 0 0 0 10px rgba(255, 90, 165, 0.12);
  }
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 640px) {
  .pikit-home {
    padding: 26px 18px 24px;
  }

  .home-mascot {
    width: 76px;
    height: 76px;
    margin-bottom: 14px;
    font-size: 2.3rem;
  }

  .smart-search-card {
    padding: 10px;
  }

  .smart-search-form {
    grid-template-columns: 56px 1fr 50px;
    min-height: 82px;
    gap: 8px;
  }

  .mic-button,
  .send-button {
    width: 50px;