/* Spanish-only Cleo voice pilot. Shared Cleo files and other languages stay untouched. */
body[data-cleo-voice-pilot="es"] .cleo-voice-launcher,
body[data-cleo-voice-pilot="es"] #assistantPanel[data-cleo-voice-pilot="es"]{
  --cleo-navy:#10263b;
  --cleo-blue:#087aa9;
  --cleo-teal:#149ba3;
  --cleo-coral:#c74343;
  --cleo-soft:#eef8fa;
  letter-spacing:0;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-launcher{
  display:grid;
  grid-template-columns:66px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  width:100%;
  max-width:650px;
  min-height:82px;
  margin-top:14px;
  padding:8px 9px 8px 8px;
  border:1px solid rgba(16,38,59,.11);
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 26px rgba(15,23,42,.08);
}

body[data-cleo-voice-pilot="es"] .cleo-voice-launcher__avatar{
  position:relative;
  align-self:stretch;
  overflow:hidden;
  min-height:64px;
  border-radius:13px;
  background:#eaf6f7;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-launcher__avatar img{
  position:absolute;
  top:-5px;
  left:50%;
  width:52px;
  height:auto;
  transform:translateX(-50%);
  filter:drop-shadow(0 5px 7px rgba(16,38,59,.14));
}

body[data-cleo-voice-pilot="es"] .cleo-voice-launcher__copy{
  min-width:0;
  display:grid;
  gap:2px;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-launcher__copy strong{
  color:var(--cleo-navy);
  font-size:17px;
  line-height:1.15;
  font-weight:800;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-launcher__copy span{
  color:#617387;
  font-size:13px;
  line-height:1.35;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-launcher__actions{
  display:flex;
  align-items:center;
  gap:7px;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-primary,
body[data-cleo-voice-pilot="es"] .cleo-voice-secondary,
body[data-cleo-voice-pilot="es"] .cleo-voice-control,
body[data-cleo-voice-pilot="es"] .cleo-voice-text-link,
body[data-cleo-voice-pilot="es"] .cleo-text-return{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:0;
  font:inherit;
  font-weight:800;
  letter-spacing:0;
  cursor:pointer;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-primary{
  min-height:46px;
  padding:0 15px;
  border-radius:999px;
  background:var(--cleo-blue);
  color:#fff;
  box-shadow:0 7px 17px rgba(8,122,169,.2);
}

body[data-cleo-voice-pilot="es"] .cleo-voice-primary:hover,
body[data-cleo-voice-pilot="es"] .cleo-voice-primary:focus-visible{
  background:#086c96;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-primary[hidden]{
  display:none!important;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-secondary{
  min-width:44px;
  min-height:44px;
  padding:0 11px;
  border:1px solid rgba(16,38,59,.12);
  border-radius:999px;
  background:#f8fbfc;
  color:var(--cleo-navy);
}

body[data-cleo-voice-pilot="es"] .cleo-voice-primary svg,
body[data-cleo-voice-pilot="es"] .cleo-voice-secondary svg,
body[data-cleo-voice-pilot="es"] .cleo-voice-control svg,
body[data-cleo-voice-pilot="es"] .cleo-voice-text-link svg,
body[data-cleo-voice-pilot="es"] .cleo-text-return svg{
  flex:0 0 auto;
  width:20px;
  height:20px;
}

body[data-cleo-voice-pilot="es"].cleo-voice-ready #homeHeroForm[hidden]{
  display:none!important;
}

body[data-cleo-voice-pilot="es"] #homeHeroForm.is-text-open{
  margin-top:9px;
}

body[data-cleo-voice-pilot="es"] #assistantPanel[data-cleo-voice-pilot="es"] .cleo-voice-stage{
  flex:1 1 auto;
  min-height:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:15px;
  padding:22px 28px 24px;
  text-align:center;
  background:#f7f9fc;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-stage__visual{
  position:relative;
  width:180px;
  height:180px;
  display:grid;
  place-items:center;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-avatar{
  position:relative;
  overflow:hidden;
  width:164px;
  height:164px;
  border:1px solid rgba(20,155,163,.24);
  border-radius:50%;
  background:#eaf6f7;
  box-shadow:0 10px 28px rgba(16,38,59,.12),0 0 0 8px rgba(20,155,163,.07);
  transition:border-color .2s ease,box-shadow .2s ease;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-avatar img{
  position:absolute;
  top:-10px;
  left:50%;
  width:174px;
  height:auto;
  transform:translateX(-50%);
  filter:drop-shadow(0 8px 10px rgba(16,38,59,.13));
}

body[data-cleo-voice-pilot="es"] [data-voice-phase="listening"] .cleo-voice-avatar,
body[data-cleo-voice-pilot="es"] [data-voice-phase="thinking"] .cleo-voice-avatar,
body[data-cleo-voice-pilot="es"] [data-voice-phase="speaking"] .cleo-voice-avatar{
  border-color:rgba(20,155,163,.65);
  box-shadow:0 10px 28px rgba(16,38,59,.12),0 0 0 9px rgba(20,155,163,.12);
}

body[data-cleo-voice-pilot="es"] .cleo-voice-bars{
  position:absolute;
  right:0;
  bottom:9px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:3px;
  width:48px;
  height:38px;
  border:4px solid #f7f9fc;
  border-radius:999px;
  background:var(--cleo-blue);
  box-shadow:0 7px 18px rgba(16,38,59,.18);
}

body[data-cleo-voice-pilot="es"] .cleo-voice-bars i{
  width:3px;
  height:8px;
  border-radius:3px;
  background:#fff;
  transform-origin:center;
}

body[data-cleo-voice-pilot="es"] [data-voice-phase="listening"] .cleo-voice-bars i,
body[data-cleo-voice-pilot="es"] [data-voice-phase="thinking"] .cleo-voice-bars i,
body[data-cleo-voice-pilot="es"] [data-voice-phase="speaking"] .cleo-voice-bars i{
  animation:cleoVoiceBar .8s ease-in-out infinite alternate;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-bars i:nth-child(2){animation-delay:.12s}
body[data-cleo-voice-pilot="es"] .cleo-voice-bars i:nth-child(3){animation-delay:.24s}
body[data-cleo-voice-pilot="es"] .cleo-voice-bars i:nth-child(4){animation-delay:.36s}
body[data-cleo-voice-pilot="es"] .cleo-voice-bars i:nth-child(5){animation-delay:.48s}

@keyframes cleoVoiceBar{
  from{height:6px}
  to{height:20px}
}

body[data-cleo-voice-pilot="es"] .cleo-voice-stage__copy h2{
  margin:0;
  color:var(--cleo-navy);
  font-size:25px;
  line-height:1.15;
  font-weight:850;
  letter-spacing:0;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-stage__copy p{
  min-height:22px;
  margin:7px 0 0;
  color:#617387;
  font-size:15px;
  line-height:1.45;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-stage__start{
  min-width:210px;
  min-height:50px;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-controls{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:54px;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-controls[hidden]{
  display:none!important;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-control{
  width:48px;
  height:48px;
  padding:0;
  border:1px solid rgba(16,38,59,.12);
  border-radius:50%;
  background:#fff;
  color:var(--cleo-navy);
  box-shadow:0 6px 15px rgba(16,38,59,.07);
}

body[data-cleo-voice-pilot="es"] .cleo-voice-control:hover,
body[data-cleo-voice-pilot="es"] .cleo-voice-control:focus-visible{
  border-color:rgba(8,122,169,.45);
  color:var(--cleo-blue);
}

body[data-cleo-voice-pilot="es"] .cleo-voice-control:disabled{
  opacity:.38;
  cursor:not-allowed;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-control.is-active{
  background:#fff1f1;
  border-color:rgba(199,67,67,.35);
  color:var(--cleo-coral);
}

body[data-cleo-voice-pilot="es"] .cleo-voice-control--end{
  background:var(--cleo-coral);
  border-color:var(--cleo-coral);
  color:#fff;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-control--end:hover,
body[data-cleo-voice-pilot="es"] .cleo-voice-control--end:focus-visible{
  background:#aa3434;
  color:#fff;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-transcript{
  width:100%;
  max-width:370px;
  max-height:120px;
  overflow:auto;
  padding:10px 12px;
  border-top:1px solid rgba(16,38,59,.09);
  border-bottom:1px solid rgba(16,38,59,.09);
  color:#617387;
  text-align:left;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-transcript[hidden]{
  display:none!important;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-transcript p{
  margin:0;
  font-size:13px;
  line-height:1.45;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-transcript p + p{
  margin-top:6px;
  color:var(--cleo-navy);
}

body[data-cleo-voice-pilot="es"] .cleo-voice-links{
  width:100%;
  max-width:370px;
  display:grid;
  gap:7px;
  text-align:left;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-links[hidden]{
  display:none!important;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-links > span{
  color:#617387;
  font-size:12px;
  font-weight:800;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-links > div{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-links a{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  max-width:100%;
  padding:6px 10px;
  border:1px solid rgba(8,122,169,.2);
  border-radius:8px;
  background:#fff;
  color:var(--cleo-blue);
  font-size:12px;
  font-weight:800;
  line-height:1.3;
  text-decoration:none;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-links a:hover,
body[data-cleo-voice-pilot="es"] .cleo-voice-links a:focus-visible{
  border-color:rgba(8,122,169,.5);
  background:var(--cleo-soft);
}

body[data-cleo-voice-pilot="es"] .cleo-voice-quality-note{
  max-width:430px;
  margin:2px auto 0;
  color:#6b7c8d;
  font-size:11px;
  line-height:1.4;
  text-align:center;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-text-link,
body[data-cleo-voice-pilot="es"] .cleo-text-return{
  min-height:40px;
  padding:0 8px;
  background:transparent;
  color:#53677b;
  font-size:14px;
}

body[data-cleo-voice-pilot="es"] .cleo-voice-text-link:hover,
body[data-cleo-voice-pilot="es"] .cleo-voice-text-link:focus-visible,
body[data-cleo-voice-pilot="es"] .cleo-text-return:hover,
body[data-cleo-voice-pilot="es"] .cleo-text-return:focus-visible{
  color:var(--cleo-blue);
}

body[data-cleo-voice-pilot="es"] .cleo-text-return{
  display:none;
  align-self:center;
  margin:10px 18px 0;
}

body[data-cleo-voice-pilot="es"] #assistantPanel.cleo-voice-mode #assistantEmptyState,
body[data-cleo-voice-pilot="es"] #assistantPanel.cleo-voice-mode > .messages,
body[data-cleo-voice-pilot="es"] #assistantPanel.cleo-voice-mode > .composer,
body[data-cleo-voice-pilot="es"] #assistantPanel.cleo-voice-mode > .notice{
  display:none!important;
}

body[data-cleo-voice-pilot="es"] #assistantPanel.cleo-text-mode .cleo-voice-stage{
  display:none!important;
}

body[data-cleo-voice-pilot="es"] #assistantPanel.cleo-text-mode .cleo-text-return{
  display:inline-flex;
}

body[data-cleo-voice-pilot="es"] #assistantPanel.cleo-text-mode.is-empty > .messages{
  display:none;
}

body[data-cleo-voice-pilot="es"] .cleo-remote-audio{
  position:fixed;
  width:1px;
  height:1px;
  overflow:hidden;
  opacity:.01;
  pointer-events:none;
}

body[data-cleo-voice-pilot="es"] [data-voice-phase="error"] .cleo-voice-bars{
  background:var(--cleo-coral);
}

@media (max-width:720px){
  body[data-cleo-voice-pilot="es"] .cleo-voice-launcher{
    grid-template-columns:58px minmax(0,1fr);
    min-height:0;
    padding:8px;
    gap:9px 11px;
  }

  body[data-cleo-voice-pilot="es"] .cleo-voice-launcher__avatar{
    grid-row:1 / span 2;
    min-height:96px;
  }

  body[data-cleo-voice-pilot="es"] .cleo-voice-launcher__avatar img{
    top:0;
    width:54px;
  }

  body[data-cleo-voice-pilot="es"] .cleo-voice-launcher__actions{
    grid-column:2;
    width:100%;
  }

  body[data-cleo-voice-pilot="es"] .cleo-voice-launcher__actions .cleo-voice-primary{
    flex:1 1 auto;
    min-height:44px;
    padding:0 13px;
    font-size:14px;
  }

  body[data-cleo-voice-pilot="es"] .cleo-voice-secondary{
    flex:0 0 44px;
    width:44px;
    padding:0;
  }

  body[data-cleo-voice-pilot="es"] .cleo-voice-secondary span{
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip:rect(0 0 0 0);
    white-space:nowrap;
  }

  body[data-cleo-voice-pilot="es"] #assistantPanel[data-cleo-voice-pilot="es"] .cleo-voice-stage{
    justify-content:flex-start;
    overflow:auto;
    padding:24px 22px calc(24px + env(safe-area-inset-bottom));
  }

  body[data-cleo-voice-pilot="es"] .cleo-voice-stage__visual{
    flex:0 0 158px;
    width:158px;
    height:158px;
  }

  body[data-cleo-voice-pilot="es"] .cleo-voice-avatar{
    width:144px;
    height:144px;
  }

  body[data-cleo-voice-pilot="es"] .cleo-voice-avatar img{
    width:154px;
  }
}

@media (max-width:370px){
  body[data-cleo-voice-pilot="es"] .cleo-voice-launcher__copy span{
    font-size:12px;
  }

  body[data-cleo-voice-pilot="es"] .cleo-voice-primary{
    font-size:13px;
  }
}

@media (prefers-reduced-motion:reduce){
  body[data-cleo-voice-pilot="es"] .cleo-voice-bars i{
    animation:none!important;
  }
  body[data-cleo-voice-pilot="es"] .cleo-voice-avatar{
    transition:none;
  }
}

