/* ============================================
   VARIABLES DE TAMAÑO
============================================ */
:root {
  --chat-font-size: 16px;        /* tamaño general UI (botones, header, inputs) */
  --chat-message-size: 18px;     /* tamaño SOLO mensajes (bot + usuario) */
}

/* ============================================
   LAUNCHER
============================================ */
#ombra-launcher{
  width:60px;
  height:60px;
  background:#000;
  color:#fff;
  border-radius:50%;
  position:fixed;
  bottom:20px;
  right:20px;
  display:flex;
  justify-content:center;
  align-items:center;
  cursor:pointer;
  font-size:22px;
  z-index:99999;
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

#ombra-launcher:hover{
  transform: scale(1.1);
  transition: 0.2s;
}

/* ============================================
   CHAT BOX
============================================ */
#ombra-chat{
  width:380px;
  height:580px;
  position:fixed;
  bottom:90px;
  right:20px;
  background:#fff;
  border-radius:16px;
  box-shadow:0 10px 30px rgba(0,0,0,0.2);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  font-family:Arial;
  z-index:99999;
}

.ombra-hidden{
  display:none !important;
}

/* ============================================
   HEADER
============================================ */
#ombra-header{
  background:#000;
  color:#fff;
  padding:12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size: 16px; /* FIJO, no escala */
}

/* X MÁS GRANDE */
#ombra-close{
  font-size:24px !important;
  font-weight:600;
  cursor:pointer;
  padding:6px;
  border-radius:6px;
  line-height:1;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

#ombra-close:hover{
  background: rgba(255,255,255,0.15);
}

/* ============================================
   CONTROLES A+ / A−
============================================ */
#ombra-font-controls{
  display:flex;
  align-items:center;
  gap:8px;
}

#ombra-font-controls button{
  background:#fff;
  color:#000;
  border:none;
  padding:4px 8px;
  border-radius:6px;
  cursor:pointer;
  font-size: 14px; /* FIJO, no escala */
}

#ombra-font-controls button:hover{
  background:#ddd;
}

/* ============================================
   MENSAJES (LO ÚNICO QUE ESCALA)
============================================ */
#ombra-messages{
  flex:1;
  padding:10px;
  padding-bottom:90px;
  overflow-y:auto;
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size: var(--chat-message-size); /* SOLO mensajes */
}

.msg{
  padding:10px;
  border-radius:12px;
  max-width:80%;
  font-size: var(--chat-message-size); /* SOLO mensajes */
}

.bot{ 
  background:#f1f1f1; 
  align-self:flex-start; 
}

.user{ 
  background:#000; 
  color:#fff; 
  align-self:flex-end; 
}

/* ============================================
   OPCIONES (TRIGGERS)
============================================ */
#ombra-options{
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
  position:sticky;
  bottom:0;
  background:#fff;
  z-index:10;
  border-top:1px solid #eee;
  font-size: 16px; /* FIJO */
}

.option{
  padding:6px 8px;
  border:1px solid #ddd;
  border-radius:10px;
  cursor:pointer;
  background:#fff;
  font-size: 16px; /* FIJO, NO escala con A+ / A− */
  transition:0.2s;
  color:#000;
  white-space: normal;
  word-break: break-word;
}

.option:hover{
  background:#f7f7f7;
}

/* ============================================
   INPUTS
============================================ */
#ombra-options input{
  padding:10px;
  border:1px solid #ccc;
  border-radius:8px;
  font-size: 16px; /* FIJO */
}

#ombra-options button{
  padding:10px;
  border-radius:8px;
  background:#000;
  color:#fff;
  border:none;
  cursor:pointer;
  font-size: 16px; /* FIJO */
}

#ombra-options button:hover{
  opacity:0.85;
}

/* ============================================
   TOOLTIP
============================================ */
#ombra-tooltip{
  position:fixed;
  bottom:95px;
  right:20px;
  background:#fff;
  color:#000;
  padding:10px 14px;
  border-radius:12px;
  font-size: 14px; /* FIJO */
  box-shadow:0 10px 25px rgba(0,0,0,0.15);
  opacity:0;
  transform: translateY(10px);
  visibility:hidden;
  transition: all 0.25s ease;
  z-index:100000;
  white-space:nowrap;
}

#ombra-tooltip.show{
  opacity:1;
  transform: translateY(0);
  visibility:visible;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 480px){

  :root {
    --chat-message-size: 19px;
  }

  #ombra-chat{
    width: 90vw;
    height: 70vh;
    right: 5vw;
    bottom: 90px;
  }

  #ombra-launcher{
    width: 52px;
    height: 52px;
    font-size: 20px;
    bottom: 16px;
    right: 16px;
  }

  #ombra-tooltip{
    bottom: 80px;
    right: 16px;
    max-width: 80vw;
    white-space: normal;
  }

  /* ⭐ TRIGGERS MÁS PEQUEÑOS Y COMPACTOS */
  .option{
    font-size: 13px;   /* antes 15px */
    padding: 5px 6px;  /* menos altura */
    line-height: 1.2;  /* más compacto */
  }
}

/* ============================================
   FIX FINAL: TRIGGERS BLANCOS
============================================ */
#ombra-options .option{
  background:#fff !important;
  color:#000 !important;
  border:1px solid #ddd !important;
}

#ombra-options .option:hover{
  background:#f7f7f7 !important;
}
