/* =============================================
   ESTILOS GENERALES
   ============================================= */

@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700');

/*Preguntas y respuestas en negocios*/
.negocio-sbtn {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.borrarptas {
    background-color: #f28705;
    display: inline-block;
    padding: 10px 15px;
    margin:10px;
    text-align: center;
    min-width: 140px;
    border-radius: 6px;
    cursor: pointer;
}


/* CONTENEDOR PRINCIPAL */
.chat-container {
  max-width: 650px;
  margin: 40px auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  overflow: hidden;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

/* HEADER */
.chat-header {
  background: #3498db;
  color: #fff;
  text-align: center;
  padding: 25px 15px;
  font-size: 1.3rem;
  font-weight: bold;
}

.highlight {
  color: #f1c40f;
}

/* BODY */
.chat-body {
  padding: 25px;
  background: #f4f7fa;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.msg-user {
  align-self: flex-start;
  background: #e8f0fe;
  border-left: 5px solid #3498db;
  border-radius: 10px;
  padding: 15px;
  max-width: 90%;
}

.msg-user strong {
  color: #2c3e50;
  font-size: 1.1rem;
}

.msg-user small {
  color: #7f8c8d;
  display: block;
}

/* BURBUJA DE LA PREGUNTA */
.pregunta-box {
  background: #eaf3ff;
  padding: 18px;
  border-radius: 15px;
  border-left: 6px solid #3498db;
  animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
  from {opacity: 0; transform: translateX(-20px);}
  to {opacity: 1; transform: translateX(0);}
}

.pregunta-box strong {
  font-size: 1.2rem;
}

.pregunta-box small {
  color: #7f8c8d;
}

/* CONTENEDOR DE RESPUESTAS */
.respuestas-wrapper {
  max-height: 350px; /* Scroll si hay muchas respuestas */
  overflow-y: auto;
  padding-right: 10px;
  margin-top: 10px;
}

/* BARRA DE SCROLL */
.respuestas-wrapper::-webkit-scrollbar {
  width: 8px;
}
.respuestas-wrapper::-webkit-scrollbar-thumb {
  background: #3498db;
  border-radius: 10px;
}
.respuestas-wrapper::-webkit-scrollbar-track {
  background: #dce6f1;
}

/* BURBUJAS DE RESPUESTA */
.respuesta {
  background: #ffffff;
  border-radius: 15px;
  padding: 12px 16px;
  border: 1px solid #dfe6ee;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  animation: fadeResponse 0.4s ease-in;
}

@keyframes fadeResponse {
  from {opacity: 0;}
  to {opacity: 1;}
}

.respuesta small {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  color: #7f8c8d;
}

/* MOTIVACIÓN */
.motivacion {
  text-align: center;
  background: #fff3cd;
  border-radius: 10px;
  padding: 15px;
  color: #856404;
  font-weight: 500;
  margin: 10px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(241,196,15, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(241,196,15, 0); }
  100% { box-shadow: 0 0 0 0 rgba(241,196,15, 0); }
}

/* FOOTER */
.chat-footer {
  border-top: 1px solid #eee;
  padding: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-footer-actions {
  display: flex;
  justify-content: flex-end; /* manda el botón a la derecha */
}

.chat-footer textarea {
  border-radius: 15px;
  padding: 12px 20px;
  border: 1px solid #ccc;
  width: 100%;
  resize: vertical;
  transition: 0.3s;
}

.chat-footer textarea:focus {
  border-color: #3498db;
  box-shadow: 0 0 8px rgba(52,152,219,0.3);
}

.chat-footer button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 30px;
  font-weight: bold;
  transition: 0.3s;
}

.chat-footer button:hover {
  background-color: #218838;
  transform: scale(1.05);
}

/*Fin del modulo de respuesta y pretas chat*/


/* Contenedor principal */
main {
  min-width: 320px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 15px 10px;
  background: #fff;
}

/* Tabs - Sistema principal */
.tab-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tab-header label {
  padding: 14px 20px;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  font-weight: 600;
  color: #666;
  transition: all 0.3s;
  white-space: nowrap;
}

.tab-header input[type="radio"]:checked + label {
  background: #038C8C;
  color: white;
  border-color: #038C8C;
  border-bottom: 2px solid #038C8C;
}

.tab-header input[type="radio"] {
  display: none;
}

.tab-contents .tab-content {
  display: none;           /* Oculta todas por defecto */
  padding: 25px 0;
  background: #038C8C;
  color: #fff;
  border-radius: 0 8px 8px 8px;
}

/* Contenido de pestañas */
.tab-content {
  display: none;
  padding: 25px 0;
  background: #038C8C;
  color: #fff;
  border-radius: 0 8px 8px 8px;
}

.tab-content.active {
  display: block;
}


/* Burbuja de advertencia */
.chat-bubble {
  background-color: #038C8C;
  border-radius: 10px;
  padding: 15px 20px;
  color: #FFFFFF;
  margin: 20px auto;
  max-width: 90%;
  text-align: justify;
  position: relative;
}

.chat-bubble::after {
  content: "";
  position: absolute;
  left: 80px;
  top: 100%;
  border: 20px solid transparent;
  border-top-color: #038C8C;
}

/* Botones */
button.btnActDatos,
button.enviar_campana {
  background-color: #F28705;
  color: #FFF;
  border-radius: 30px;
  width: 250px;
  height: 48px;
  border: none;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

button.btnActDatos:hover,
button.enviar_campana:hover {
  background-color: #d97604;
}

/* Flex containers */
.flex-container-tab2,
.flex-container-tab3,
.flex-container-ladosbc,
.flex-container-dir {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #FFF;
}

.datos-izq { width: 50%; }
.datos-dcha { width: 50%; }

.advertencia {
  color: #FFFFFF;
  padding: 20px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
}

/* =============================================
   PESTAÑA ACCESO (content3)
   ============================================= */
.col-md-6 {
    width: 45%;
    margin-top: 40px;
}

#imgPerfil img{
  width:45%;
  margin:40px 0;
}

/*Choose file*/
#subirImagen{
  display:none;
  margin:20px 0px;
  border:2px dotted #ccc;
  overflow: hidden;
  padding:40px;
  cursor:pointer;
}

#subirImagen img{
  width:100%;
  padding:10px;
}

#subirImagen #datosImagen{
  height:65px;
}
/*Fin pestaña 3*/

/*===============================
 Modal para campaña de marketing
 ===============================*/
.modal.marketing {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.title-campana{
  color:#F28705;
  font-weight: 600;
}

.modal-content p {
  color:#FFF;
  font-weight: 600;
}

.btn-primary {
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
    margin-top: 15px;
}

.modal.marketing:nth-of-type(even) {
    z-index: 1050 !important;
}
.modal-backdrop.show:nth-of-type(even) {
    z-index: 1051 !important;
}

.marketing .modal-content {
  width: 50%;
  margin: 70px auto;
  padding: 20px;
  text-align: center;
  background-color: #038C8C;

  max-height: 80vh; /* Establece el alto máximo del contenido */
  overflow-y: auto; /* Permite el desplazamiento interno si el contenido excede el alto máximo */
}

.marketing .closeMarketing {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
  color: #FFF;
} 

.formMarketing {
  background-color: #038C8C;
  border-top: 1px solid #FFF;
  height: auto;
  overflow: auto;
  color: #FFF;
  text-align: left;
} 

.bodyMarquetin {
  margin-top: 30px;
}

#previewModal {
  z-index: 1050; /* Valor mayor que el z-index de la modal de marketing */
}

#proveedoresSelect {
    color: black;
    width: 100%;
    padding: 5px;
  }

/*Fin MARKETING*/

/*====================
Mis negocios
=====================*/
.content-wrapper{
  background-color: #038C8C;
  overflow: auto;
  margin: 10px 10px 10px 10px;
}

.flex-container-cabeza-negocios{
  display: flex;
  justify-content:center;
  align-items:center;
  background-color: #0D5363
}

.indicadores table tr td{
  padding: 1px;
  color:#FFF;
}

.sujeto{
  color: #F28705;
  font-size: 20px;
  margin-top: 10px;
}

.content-wrapper h4{
  color: #F28705;
  font-weight: 600;
}
.content-wrapper h1{
  color: #FFF;
}
/* Estilos para el ícono */
.glyphicon-trash {
color: #CCC;
font-size: 20px;
margin-top: 7px;
}

.enviarrespuesta input[type="checkbox"]{ 
display: none;
}

.borrandorpta input[type="checkbox"] {
display: none;
}

.borrandorpta .delete-label .selected span {
color: red !important;
}

.preguntas-contenedor{
  display: flex;
  justify-content: center;
  margin-top: 10px;
  padding: 10px;
}

.preguntas-contenedor p{
  font-size: 20px;
  color: #FFF;
}

.burbuja {
  display: inline-block;
    background-color: #0D5363;
    border-radius: 5px;
    padding: 10px 15px;
    margin-bottom: 1px;
    max-width: 70%;
}

.flex-container-listanegocios{
  display: flex;
  justify-content: center;
}

.estado-pregunta-res{
  color:greenyellow;
  float: right;
  font-size: 12px;
  font-weight: 600;
  margin-left: 20px;
}

.estado-pregunta-sin{
  color:red;
  float: right;
  font-size: 12px;
  font-weight: 600;
  margin-left: 20px; 
}
.comment-form-container {
  background: #0D5363;
  padding: 5px;
  border-radius: 4px;
  max-width: 700px;
}

.input-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 675px;
  margin-top: 5px;
}

.caja-rpta{
  flex: 1;
}

.input-row small{
  color: #FFF;
    margin: 10px;
    font-size: 20px;
    background-color: #038C8C;
    border-radius: 5px;
    padding: 5px;
} 

.enviarrespuesta{
  display: flex;
  align-items: center;
  justify-content:right;
  margin-bottom: 5px;
  padding: 0px 10px 0px 10px;
}

.caja-adjunto{
  color: white;
}

.borrafile{
  font-size: 15px; 
  color: white;
  margin: 0px 25px 0px 5px;
}


.jlfontaw{
  font-size: 24px; 
  color: white;
  margin: 0px 10px 0px 10px;
}

.enviarrespuesta .btn-reply {
    color: #FFF;
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
    background-color: #F28705;
    border-radius: 5px;
    width: 65px;
    padding: 2px;
    text-align: center;
}

    .delete-label-pgta {
      margin-right: 10px;
    }

.input-field {
    width: 100%;
    border-radius: 35px;
    padding: 20px 10px 5px 10px;
    border: #e0dfdf 1px solid;
    margin-bottom: 10px;
}

.btn-submit {
  padding: 0px 20px;
  background: #F28705;
  border: 0px solid;
  color: #FFF;
  font-size: 16px;
  width: 100px;
  height: 35px;
  border-radius: 4px;
  cursor: pointer;
}

.zonarpta{
  margin-top: 5px;
}

.comment-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 600px;
  border-bottom: #e0dfdf 1px solid;
  border-radius: 5px;
/*  margin-bottom: 0px;*/
  padding: 15px;
/*  margin-left: 85px;*/
  background-color: #FFF;
/*  margin-top: 5px;*/
  margin:5px 10px 5px 85px;
}

.outer-comment {
  background: #F0F0F0;
  padding: 20px;
  border: #dedddd 1px solid;
  border-radius: 4px;
}

span.comment-row-label {
  color: #484848;
}

span.posted-by {
  font-weight: bold;
}

.comment-info {
    flex: 1;
    max-width: 95%;
}

.comment-text {
  margin: 10px 0px 30px 0;
}

.btn-reply:hover {
  text-decoration: underline;
}

.msgsuccess {
  margin-left: 200px;
  color: #FFF;
  display: none;
}

.borrandorpta{
  flex: 0 0 5%;
  display: flex;
  justify-content: flex-end;
  width: 25px;
}

input[type="checkbox" i] {
    background-color: initial;
    cursor: default;
    appearance: auto;
    box-sizing: border-box;
    margin: 0px 3px 3px 4px;
    padding: initial;
    border: initial;
}

.label {
  padding: 0 0 4px 0;
}
/*Fin MIS NEGOCIOS*/

/*=====================
  Portafolio front-end
=====================*/
.portafolio-media {
    width: 100%;
    height: 250px;              /* Ajusta según tu diseño */
    object-fit: cover;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
    background-color: #f8f9fa; /* Elegante para documentos */
}


/* Inicia Responsive */
@media (max-width: 320px) {
  .flex-container-tab2,
  .flex-container-tab3,
  .flex-container-ladosbc,
  .flex-container-dir {
    flex-direction: column;
    gap: 15px;
  }

  .tab-header label {
    padding: 5px 10px;
  }

  .tab-contents .tab-content {
    padding: 15px 10px;
  }

  .negocio-sbtn {
        flex-direction: column;
        gap: 8px;
    }

    .borrarptas {
        width: 100%;
        max-width: 250px;
    }

  .datos-izq, .datos-dcha { width: 100%; }

  button.btnActDatos {
    width: 100%;
    max-width: 180px;
    margin: 10px auto;
  }

  .content-wrapper h1 {
    font-size: 16px;
  }

  .preguntas-contenedor p {
    font-size: 16px;
  }

  .burbuja {
    max-width: 93%;
  }

  .comment-row {
    margin: 5px 10px 5px 3px;
  }

  .col-md-6 {
    width: 100%;
  }


}

@media (min-width: 321px) and (max-width: 576px) {
  .flex-container-tab2,
  .flex-container-tab3,
  .flex-container-ladosbc,
  .flex-container-dir {
    flex-direction: column;
    gap: 20px;
  }

  .tab-header label {
    padding: 5px 10px;
  }

  .tab-contents .tab-content {
    padding: 15px 10px;
  }

  .content-wrapper h1 {
    font-size: 16px;
  }

  .preguntas-contenedor p {
    font-size: 16px;
  }

  .datos-izq, .datos-dcha { width: 100%; }

  .chat-container {
    margin: 10px;
  }
  .chat-header {
    font-size: 1.1rem;
  }

  .col-md-6 {
    width: 98%;
  }

  .btn-danger {
    margin-top: 10px;
  }

}

@media (min-width: 577px) {
  .flex-container-tab2,
  .flex-container-tab3 {
    flex-direction: row;
  }

  .flex-container-acceso {
    flex-direction: column;
    gap: 25px;
  }

  .acceso-izq,
  .acceso-dcha {
    width: 100%;
  }
}
