.hero-text {
  color: var(--color-gray);
  max-width: 640px;
}

/* =========================
   Voz perfecta (Cards)
========================= */
.voz-perfecta{
  background-color: #fff;
}

.voz-subtitle{
  max-width: 720px;
}

.voz-card{
  background:#fff;
  border: 1px solid rgba(16, 24, 40, .10);
  border-radius: 14px;
  padding: 22px 22px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .04);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.voz-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 46px rgba(16, 24, 40, .08);
  border-color: rgba(0, 122, 255, .22);
}

.voz-ico{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgb(0, 98, 255), rgb(0, 163, 255));
    ;
  border: 1px solid rgba(0, 122, 255, .18);
}

.voz-ico i{
  font-size: 18px;
  color: #ffffff
}

/* =========================
   Flujos conversacionales
========================= */
.flujos-conversacionales{
  background-color: #fff;
}
.flujos-subtitle{
  max-width: 720px;
}

.flujos-card{
  background:#fff;
  border: 1px solid rgba(16, 24, 40, .10);
  border-radius: 14px;
  padding: 28px 26px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .04);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.flujos-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 46px rgba(16, 24, 40, .08);
  border-color: rgba(34, 197, 94, .25); /* verde sutil */
}

.flujos-ico{
  width: 54px;
  height: 54px;
  border-radius: 14px;
  margin: 0 auto 14px;
  display:flex;
  align-items:center;
  justify-content:center;
      background: radial-gradient(circle at 20% 20%, rgba(0, 232, 158, 0.55), transparent 55%), radial-gradient(circle at 80% 80%, rgba(0, 171, 99, 0.4), transparent 55%);
    box-shadow: 0 12px 30px rgba(0, 171, 99, 0.25);
    color: #00ab63;
}

.flujos-ico i{
  font-size: 22px;

}

/* ===============================
   SECCIÓN SMS: CASOS DE USO
   =============================== */

.sms-casos-uso{
  background-color: #fff;
}

/* Layout */
.sms-casos-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .sms-casos-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}



/* Tabs */
.sms-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.sms-tab {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e6e6f0;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  

}

.sms-tab:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
}

.sms-tab strong {
  display: block;
  font-size: 14px;
}

.sms-tab span {
  font-size: 13px;
  color: var(--color-gray);
}

/* Active tab (como WhatsApp tipos-mensajes) */
.sms-tab.is-active{
  border-color: rgba(0, 163, 255, 0.4);
    box-shadow: 0 16px 40px rgba(0, 98, 255, 0.18);
    background: radial-gradient(circle at 0% 0%, rgba(255, 84, 161, 0.06), transparent 55%), radial-gradient(circle at 100% 100%, rgba(0, 163, 255, 0.08), transparent 60%);
}



/* Iconos */
.sms-tab-ico {
      width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px !important;
}

/* Colores iconos */
.sms-tab-ico.is-red { background: radial-gradient(circle at 20% 20%, rgba(255, 204, 128, 0.45), transparent 55%), radial-gradient(circle at 80% 80%, rgba(255, 64, 129, 0.45), transparent 55%);
    color: #e1306c; }
.sms-tab-ico.is-blue { background: radial-gradient(circle at 20% 20%, rgba(0, 163, 255, 0.18), transparent 55%), radial-gradient(circle at 80% 80%, rgba(6, 111, 249, 0.32), transparent 55%);
    color: #1877f2; }
.sms-tab-ico.is-orange {     background: radial-gradient(circle at 20% 20%, rgba(255, 153, 0, 0.25), transparent 55%), radial-gradient(circle at 80% 80%, rgba(230, 120, 0, 0.25), transparent 55%);
    color: #ff9900;}
.sms-tab-ico.is-green {     background: radial-gradient(circle at 20% 20%, rgba(37, 211, 102, 0.25), transparent 55%), radial-gradient(circle at 80% 80%, rgba(16, 183, 89, 0.25), transparent 55%);
    color: #25D366;}

/* Phone */
.sms-phone {
    width: 100%;
    max-width: 300px;
    height: 580px;
    background: #ffffff;
    border-radius: 36px;
    padding: 16px 8px 18px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
    border: 5px solid #1E1E1E;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header */
.sms-phone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.sms-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.sms-channel {
  font-size: 12px;
  color: var(--color-gray);
}

.sms-time {
  margin-left: auto;
  font-size: 12px;
  color: var(--color-gray);
}

/* Body */
.sms-phone-body {
  padding: 16px 8px;
  height: 100%;
}

.sms-date {
  font-size: 12px;
  color: var(--color-gray);
  display: block;
  margin-bottom: 12px;
}

.sms-bubble {
  background: #000;
  color: #fff;
  padding: 14px;
  border-radius: 14px;
  font-size: 14px;

  line-height: 1.4;
}

/* Input */
.phone-input-box {
    border-radius: 999px;
    border: 1px solid #e1e6f0;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #c83232;
    color: #ffffff;
    position: absolute;
    bottom: 0px;
    width: 100%;
}

/* ===============================
   Animación cambio contenido (header + body)
   Usa tu wrapper: .sms-phone-anim
   =============================== */

.sms-phone.is-animating{
  pointer-events: none;
}

.sms-phone .sms-phone-anim{
  transition: opacity .22s ease, transform .22s ease, filter .22s ease;
  will-change: opacity, transform, filter;
}

/* salida */
.sms-phone.is-leaving .sms-phone-anim{
  opacity: 0;
  transform: translateY(10px) scale(0.99);
  filter: blur(2px);
}

/* entrada */
.sms-phone.is-entering .sms-phone-anim{
  opacity: 0;
  transform: translateY(-10px) scale(0.99);
  filter: blur(2px);
}

/* normal */
.sms-phone:not(.is-leaving):not(.is-entering) .sms-phone-anim{
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@media (max-width: 767.08px) {
    .sms-tabs {
        display: flex;
        flex-direction: column;
    }
}

/* ===============================
   CHAT: burbujas IA vs Cliente + voz
   =============================== */

.sms-chat{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* IA (usa tu estilo actual: negro) */
.sms-bubble{
  max-width: 92%;
}

/* Cliente: burbuja a la derecha */
.sms-bubble.is-client{
  align-self: flex-end;
  background: var(--color-blue);
  color: #fff;
}

/* Burbuja de voz (siempre) */
.sms-voice{
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f4f6ff;
  border: 1px solid #e6e6f0;
}

.sms-voice-bars{
  display: flex;
  gap: 4px;
  height: 16px;
  align-items: flex-end;
  margin-bottom: 6px;
}

.sms-voice-bars span{
  width: 3px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-blue);
  animation: voiceBars 1s ease-in-out infinite;
}

.sms-voice-bars span:nth-child(2){ animation-delay: .08s; height: 10px; }
.sms-voice-bars span:nth-child(3){ animation-delay: .16s; height: 14px; }
.sms-voice-bars span:nth-child(4){ animation-delay: .24s; height: 9px; }
.sms-voice-bars span:nth-child(5){ animation-delay: .32s; height: 12px; }
.sms-voice-bars span:nth-child(6){ animation-delay: .40s; height: 7px; }
.sms-voice-bars span:nth-child(7){ animation-delay: .48s; height: 13px; }
.sms-voice-bars span:nth-child(8){ animation-delay: .56s; height: 9px; }
.sms-voice-bars span:nth-child(9){ animation-delay: .64s; height: 14px; }
.sms-voice-bars span:nth-child(10){ animation-delay: .72s; height: 8px; }

@keyframes voiceBars{
  0%, 100%{ transform: scaleY(.6); opacity: .75; }
  50%{ transform: scaleY(1.15); opacity: 1; }
}
