#vc-kansai-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #e60012 !important;
    color: #fff !important;
    border: none !important;
    padding: 15px 22px !important;
    border-radius: 30px !important;
    font-weight: bold !important;
    z-index: 9999 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
    transition: all 0.2s ease-in-out !important;
}
#vc-kansai-button:hover {
    background-color: #b7000e !important;
    transform: scale(1.05) !important;
}

#vc-kansai-popup {
    position: fixed !important;
    bottom: 100px !important;
    right: 30px !important;
    background: #fff !important;
    border: 2px solid #e60012 !important;
    border-radius: 22px !important;
    box-shadow: 0 0 25px rgba(0,0,0,0.25) !important;
    padding: 26px !important;
    z-index: 10000 !important;
    width: 380px !important;
    max-width: 95% !important;
    font-family: 'Segoe UI', sans-serif !important;
    animation: fadeIn 0.3s ease !important;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.vc-title {
    color: #e60012 !important;
    text-align: center !important;
    margin-bottom: 18px !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
}

.vc-vendedor-card {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border: 1px solid #eee !important;
    border-radius: 14px !important;
    padding: 12px !important;
    margin-bottom: 10px !important;
    cursor: pointer !important;
    background: #fafafa !important;
    transition: all 0.2s !important;
}
.vc-vendedor-card:hover {
    background-color: #fff5f5 !important;
    border-color: #e60012 !important;
}
.vc-avatar {
    width: 42px !important;
    height: 42px !important;
    background-color: #e60012 !important;
    border-radius: 50% !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
}

.vc-form input, 
.vc-form textarea {
    width: 100% !important;
    padding: 10px 14px !important;
    margin: 6px 0 !important;
    border-radius: 12px !important;
    border: 1px solid #ccc !important;
    font-size: 15px !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    background: #fff !important;
}
.vc-form input:focus, 
.vc-form textarea:focus {
    border-color: #e60012 !important;
    box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.15) !important;
    outline: none !important;
}
.vc-form textarea { resize: none !important; height: 80px !important; }

.vc-btn {
    background-color: #e60012 !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px !important;
    width: 100% !important;
    margin-top: 12px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}
.vc-btn:hover {
    background-color: #b7000e !important;
}

.vc-btn-sec {
    background: #fff !important;
    border: 2px solid #e60012 !important;
    color: #e60012 !important;
    border-radius: 12px !important;
    padding: 10px !important;
    width: 100% !important;
    margin-top: 8px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    transition: all 0.2s ease-in-out !important;
}
.vc-btn-sec:hover {
    background: #e60012 !important;
    color: white !important;
}

.vc-btn-end {
    background: #e60012 !important;
    color: white !important;
    border: none !important;
    padding: 12px !important;
    border-radius: 12px !important;
    margin-top: 12px !important;
    width: 100% !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}
.vc-btn-end:hover { background: #b7000e !important; }

.vc-loading, .vc-espera, .vc-call, .vc-feedback {
    text-align: center !important;
    padding: 20px !important;
}

.vc-loader {
    margin: 20px auto !important;
    border: 6px solid #eee !important;
    border-top: 6px solid #e60012 !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    animation: spin 1s linear infinite !important;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vc-avatar{
  width: 46px;
  height: 46px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e60012;
  flex: 0 0 46px;
}

.vc-avatar-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vc-avatar-fallback{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
}

.vc-form-header{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
}

.vc-form-avatar{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  overflow: hidden;
  background: #e60012;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.vc-form-avatar-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vc-form-avatar-fallback{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
}


/* =========================
   Mobile improvements (Kansai VC)
   ========================= */
@media (max-width: 768px) {

  /* Botón flotante: más compacto y centrado */
  #vc-kansai-button {
    left: 12px !important;
    right: 12px !important;
    bottom: 14px !important;
    width: calc(100% - 24px) !important;
    border-radius: 16px !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
  }

  /* Popup: ocupar casi todo el ancho del celular */
  #vc-kansai-popup {
    left: 12px !important;
    right: 12px !important;
    bottom: 70px !important; /* deja espacio para el botón */
    width: auto !important;
    max-width: none !important;

    padding: 16px !important;
    border-radius: 18px !important;

    /* que no se “salga” de la pantalla */
    max-height: calc(100vh - 110px) !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .vc-title {
    font-size: 1.1rem !important;
    margin-bottom: 12px !important;
  }

  /* Cards de vendedores más compactas */
  .vc-vendedor-card {
    padding: 10px !important;
    gap: 10px !important;
    border-radius: 14px !important;
    margin-bottom: 8px !important;
  }
  .vc-avatar { width: 40px !important; height: 40px !important; flex: 0 0 40px !important; }
  .vc-avatar-fallback { font-size: 16px !important; }

  /* Inputs un poco más compactos */
  .vc-form input,
  .vc-form textarea {
    padding: 10px 12px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
  }

  /* ✅ Video/Jitsi responsive: ocupa buena parte de la pantalla */
  #jitsi-container {
    width: 100% !important;
    height: 62vh !important;   /* clave */
    min-height: 360px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  /* Botonera: en 2 columnas para ahorrar alto */
  .vc-call > div[style*="margin-top:10px"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    text-align: initial !important;
  }

  /* El botón de finalizar que ocupe todo el ancho (más importante) */
  #finalizar {
    grid-column: 1 / -1 !important;
  }

  /* Botones: menos altos */
  .vc-btn, .vc-btn-sec, .vc-btn-end {
    padding: 12px !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    margin-top: 0 !important;
  }

  /* Espacios internos más pequeños */
  .vc-loading, .vc-espera, .vc-call, .vc-feedback {
    padding: 12px !important;
  }
  
  .vc-btn{
      padding-bottom: 20px;
  }
}

/* =========================
   Mobile "App mode" (fullscreen) - SAFE
   ========================= */
@media (max-width: 768px) {

  #vc-kansai-popup {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;

    width: 100% !important;
    height: 100dvh !important;

    border-radius: 0 !important;
    padding: 16px !important;

    /* ✅ El scroll vive acá (no en los hijos) */
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;

    z-index: 999999 !important;
  }

  /* Jitsi más alto en modo app */
  #jitsi-container {
    width: 100% !important;
    height: 68dvh !important;
    min-height: 420px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #000;
  }

  #jitsi-container iframe {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    border: 0 !important;
  }
}

/* =========================
   Desktop: Jitsi container sizing (avoid clipping)
   ========================= */
@media (min-width: 769px) {
  #jitsi-container {
    width: 100% !important;
    height: 560px !important;        /* ajustá 520/560/600 según te guste */
    min-height: 560px !important;
    overflow: hidden !important;     /* mantiene bordes redondeados */
    border-radius: 14px !important;
    background: #000;
  }

  /* Asegurar que el iframe ocupe el 100% del contenedor */
  #jitsi-container iframe {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    border: 0 !important;
  }
}

/* ✅ Fix responsive inputs + placeholder */
#vc-kansai-popup * { box-sizing: border-box; }

#vc-kansai-popup .vc-form input,
#vc-kansai-popup .vc-form select,
#vc-kansai-popup .vc-form textarea{
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  font-size: 16px;      /* evita zoom raro en iOS y mejora legibilidad */
  line-height: 1.2;
  border-radius: 12px;
  border: 1px solid #ddd;
  outline: none;
}

#vc-kansai-popup .vc-form input::placeholder{
  font-size: 15px;
  opacity: .75;
}

#vc-kansai-popup .vc-form{
  display: grid;
  gap: 10px;
}





