/**********************/
/****** ENCABEZADO *****/
/**********************/
section {
  display: block;
  padding: 20px 0 0;
  border-top: 1px solid #ddd;
}

.headerppal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background-color: #ffffff;
  padding: 10px 15px;
}

/* Logo - Izquierda */
.columncb:first-child {
  flex: 0 0 auto;               /* No crece */
}

.logo img {
  max-width: 350px;
  height: auto;
}

/* Centro - Slideshow */
.colmediox {
  flex: 1;                      /* Ocupa el espacio disponible */
  display: none;
  justify-content: center;      /* Centra el slideshow */
  align-items: center;
  min-width: 220px;
  text-align: center;
  margin-left: 120px;
}

/* =============================================
 SLIDESHOW (Parte del medio)
============================================= */
#slideshow {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 520px;             /* Ancho máximo razonable */
}

#slideshow-text {
    background-color: #038C8C;
    color: #FFF;
    border-radius: 5px;
    padding: 10px 10px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/*=============================================
 PARTE DERECHA DEL HEADER (Usuario NO logueado)
============================================= */
.colderechoy {
    margin-left: auto;           /* Esto es la clave principal */
    display: flex;
    flex-direction: column;
    align-items: flex-start;       /* Alinea el contenido interno a la derecha */
    gap: 10px;
    flex-shrink: 0;              /* Evita que se comprima */
}
/* =============================================
   Cuando el usuario NO ha iniciado sesión
   ============================================= */
/* Texto: "¿Ofreces un servicio?" */
.accionusuario {
    color: #f28705;
    font-size: 19px;
    font-weight: bold;
    text-align: left;
    white-space: nowrap;
    margin: 0 0 8px 0;
    padding-left: 3px;
}

/* Contenedor de los dos botones */
.flex-container-inout {
    display: flex;
    align-items: center;
    gap: 12px;                    /* Espacio entre los dos botones */
    flex-wrap: wrap;              /* Se adapta si la pantalla es muy pequeña */
}

/* Botón Publica tu servicio */
.proveedor-btn {
  background: #F28705;
  color: #fff;
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s;
  white-space: nowrap;
}

.proveedor-btn:hover {
  background: #d97604;
  transform: translateY(-2px);
}

/* Botón "Iniciar sesión" (imagen) */
.iniciarsesion img {
    width: 98px;                 /* Tamaño más equilibrado */
    height: auto;
    transition: transform 0.3s ease;
}

.iniciarsesion img:hover {
    transform: scale(1.04);
}

.btnOpciones {
  display:none;
}

.msgperfil {
  color:#038C8C;
  font-size: 14px;
}

/*menu amburguesa*/
.heading {
  display: none;
}

/* Modal Intro Proveedor */
.modal-proveedor {
  border-radius: 12px;
}

.btnContinuarProveedor {
  background: #F28705;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 15px;
}

.btnContinuarProveedor:hover {
  background: #d97604;
}

/* Buscador */
.fotofondo {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #038C8C;
  padding: 5px 0;
}

/*ini*/
/* ====================== BUSCADOR MEJORADO ====================== */

.cont-buscador {
    width: 630px;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 50px;           /* Bordes redondeados modernos */
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 680px;              /* Ancho máximo recomendado */
    margin: 0 auto;                /* Centrado */
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    border-color: #f28705;
    box-shadow: 0 0 0 4px rgba(242, 135, 5, 0.15);
}

.search-input {
    flex: 1;
    border: none !important;
    outline: none;
    padding: 25px 20px;
    font-size: 16px;
    background: transparent;
    border-radius: 50px 0 0 50px;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background: #f28705;
    color: white;
    border: none;
    padding: 14px 24px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 0 50px 50px 0;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background: #e67700;
}

.search-btn i {
    font-size: 18px;
}
/*fin*/

/* Buscador mejorado */
.autocomplete {
  width: 100%;
}

/*.cont-buscador {
    display: flex;
    background: #fff;
    border-radius: 50px;
    width: 100%;
    max-width: 620px;
    padding: 6px;
    height: 40px;
}*/

/*.searchinp {
    flex: 1;
    border: none;
    width: 100%;
    padding: 2px 20px;
    font-size: 16px;
    border-radius: 50px 0 0 50px;
    outline: none;
    background: transparent;
    color: #038C8C;
}*/

/*.searchinp:focus {
    outline: none;
}*/

/*.btn-buscar {
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 4px;
}

.btn-buscar:hover {
    background: #d97604;
    transform: scale(1.08);
}

.lupaicon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}*/

#show-listx {
  max-height: 100px;
}

#servicios-list {
  float: left;
  list-style: none;
  margin-top: 0px;
  background: #038C8C;
  color: #FFFFFF;
  font-weight: 700;
  padding: 3px;
  width: 315px;
  position: absolute;
  margin-left: 20px;
  z-index: 2;
}

#servicios-list li:hover {
  background: #27a9a9;
  color: #FFF;
  cursor: pointer;
}
/* Fin Buscador mejorado */

/* ==================== MODALES ==================== */
/*Validacion erroes en registro*/
.error {
    border: 2px solid red;
}
.error-message {
    color: red;
    font-size: 0.8em;
    display: block;
}
.form-field {
    margin-bottom: 15px;
}

.alert.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
    padding: 10px;
    margin-bottom: 10px;
}

.form-field small {
  display: none;
}

.form-field small {
  color: #8a6d3b;
  background-color: #fcf8e3;
  border-color: #faebcc;
  font-size: 14px;
  width: 100%;
  padding: 5px;
  box-sizing: border-box;
  border-radius: 5px;
  margin-bottom: 5px;
}

.form-field.error small::before {
  content: 'ERROR: ';
  font-weight: bold;
  color: red;
}

.modal-proveedor {
    border-radius: 12px;
    padding: 20px;
}

.btnContinuarProveedor {
    background: #F28705;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btnContinuarProveedor:hover {
  background: #d97604;
}

.modal-content.modal-proveedor p {
  color: #000;
  font-size: 14px;
  line-height: 1.5;
}

.premodal {
  color:#000000;
}

#paso1, #paso2 {
  transition: all 0.3s ease;
}

.btnVolver {
  background: none;
  border: none;
  color: #666;
  margin-top: 10px;
  cursor: pointer;
}


#modalRegistro .modal-content {
  position: relative;           /* Importante para posicionar el botón */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

#modalRegistro form {
  background: #038C8C;
  color: #fff;
  padding: 25px 20px;
  margin: 0;
}

#modalRegistro .form-field {
  margin-bottom: 18px;
}

#modalRegistro .form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #fff;
}

#modalRegistro .form-field input,
#modalRegistro .form-field select {
  width: 100%;
  padding: 12px 15px;
  border-radius: 25px;
  border: 2px solid #f0f0f0;
  font-size: 15px;
  box-sizing: border-box;
  color:#038C8C;;
}

#modalRegistro .form-field input:focus {
  outline: none;
  border-color: #F28705;
  /*box-shadow: 0 0 0 3px rgba(242, 135, 5, 0.2);*/
  box-shadow: 0 0 0 2px #F28705;
}

#servicio {
  color: #0D5363;
  padding: 10px;
  width: 100%;
}

a.olvido-cs{
  color: #F28705;
  margin-top: 10px;
  font-size: 13px;
}

.checkBox{
  display: flex;
  margin-top: 15px;
  margin-left: 25px;
}

.politica{
  height: 30px;
  width: 30px;
}

.leermas{ 
  text-align: justify;
  font-size: 12px;
  margin: 0 0px 11px 0px; 
}

.codicion-p{
  font-size: 12px;
  text-align: justify;
  padding: 0px 0px 0px 15px;
  width: 200px;
}

/*btn Registrarse regPassword*/
.input-password {
  position: relative;
  width: 100%;
}

.input-password input {
  width: 100%;
  padding-right: 40px; /* espacio para el icono */
}

.toggle-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  user-select: none;
}

input.larger {
  width: 30px;
  height: 30px;
  margin: 0px 15px 0px 5px;
  border-radius: 5px;
}

button.btnIngreso {
  width: 100%;
  padding: 14px;
  background: #F28705;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  font-size: 16px;
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

button.btnIngreso:hover {
  background: #d97604;
  transform: scale(1.03);
}

/* Botón Cerrar */
#modalRegistro .close {
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  font-size: 32px;
  color: #F28705;
  font-weight: bold;
  cursor: pointer;
  opacity: 1;
  padding: 0;
  line-height: 1;
  transition: all 0.2s ease;
}

#modalRegistro .close:hover {
  color: #fff;
  background: rgba(242, 135, 5, 0.15);
  border-radius: 50%;
  transform: scale(1.1);
}

/* El span con la "×" */
#modalRegistro .cerrar {
  font-size: 34px;
  line-height: 1;
  margin-top: -4px;
}
/* Paso 2 del registro */
#paso2 {
  animation: fadeIn 0.4s ease;
}

/*Autorizacion popup*/
#laAutorizacion .modal-dialog{
  display: flex;
  justify-content: center;
  align-items: center;
}
/*politicas popup*/
#myPoliticas .modal-dialog{
  display: flex;
  justify-content: center;
  align-items: center;
}

.laspoliticas{
  color: #F28705;
}
/*fin politicas*/

/* =============================================
   MODAL INICIAR SESIÓN
   ============================================= */

#modalAbreSession .modal-content {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background-color: #038C8C;        /* Color de fondo principal */
}

#modalAbreSession .modal-body {
  padding: 30px 25px 35px;
}

/* Botón Cerrar */
#modalAbreSession .close {
  position: absolute;
  top: 12px;
  right: 18px;
  z-index: 10;
  opacity: 1;
  font-size: 28px;
  color: #F28705;
  font-weight: bold;
  text-shadow: none;
}

#modalAbreSession .close:hover {
  color: #fff;
  transform: scale(1.1);
}

/* Contenido del formulario */
#modalAbreSession .contact-form {
  text-align: center;
}

#form_session {
  background-color: transparent;   /* Ya tenemos color en .modal-content */
  margin: 0;
}

/* Títulos */
#form_session h1 {
  color: #FFF;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 15px;
}

/* Imagen carita */
.caritapaso2 {
  max-width: 65px;
  margin: 10px auto 20px;
  display: block;
}

/* Mensaje */
.login-box-msg {
  color: #FFF;
  text-align: center;
  padding: 0 15px 20px;
  font-size: 15px;
  line-height: 1.5;
}

/* Campos de entrada */
#modalAbreSession .form-field input {
  width: 100%;
  border: 2px solid #f0f0f0;
  border-radius: 50px;
  padding: 14px 18px;
  font-size: 15px;
  margin-bottom: 18px;
  text-align: center;
  color: #333;
}

#modalAbreSession .form-field input:focus {
  outline: none;
  border-color: #F28705;
  box-shadow: 0 0 0 3px rgba(242, 135, 5, 0.2);
}

/* Botón Ingresar */
.btnSession {
  background-color: #F28705;
  color: #FFF;
  border: none;
  border-radius: 30px;
  width: 100%;
  max-width: 260px;
  height: 48px;
  font-size: 18px;
  font-weight: bold;
  margin: 10px auto;
  display: block;
  cursor: pointer;
  transition: all 0.3s;
}

.btnSession:hover {
  background-color: #d97604;
  transform: translateY(-2px);
}

/* Enlace "¿Olvidaste tu contraseña?" */
.olvido-cs {
  color: #F28705;
  text-decoration: underline;
}

.olvido-cs:hover {
  color: #fff;
}
/*FIN INICIAR SESSION*/

/* =============================================
   MODAL OLVIDO DE CONTRASEÑA (Armonizado)
   ============================================= */

#modalPassword .modal-content {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  background-color: #038C8C;
  color: #fff;
}

#modalPassword .modal-body {
  padding: 35px 30px 40px;
}

/* Botón Cerrar */
#modalPassword .close {
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 10;
  font-size: 32px;
  color: #F28705;
  opacity: 1;
}

#modalPassword .close:hover {
  color: #fff;
  transform: scale(1.1);
}

/* Título */
.pastitulo {
  color: #FFF;
  text-align: center;
  margin-bottom: 25px;
  font-size: 22px;
  font-weight: 600;
}

/* Label */
#modalPassword label.text-muted {
  color: #ddd;
  display: block;
  margin-bottom: 10px;
  text-align: center;
  font-size: 15px;
}

/* Campo de email */
#modalPassword .form-field input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 50px;
  border: 2px solid #f0f0f0;
  font-size: 16px;
  text-align: center;
  margin-bottom: 20px;
  background: #fff;
  color: #333;
}

#modalPassword .form-field input:focus {
  outline: none;
  border-color: #F28705;
  box-shadow: 0 0 0 3px rgba(242, 135, 5, 0.2);
}

/* Botón Enviar */
.btn-olvidopass {
  width: 100%;
  max-width: 260px;
  margin: 15px auto 0;
  display: block;
  background-color: #F28705;
  color: #FFF;
  border: none;
  border-radius: 30px;
  padding: 14px 30px;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-olvidopass:hover {
  background-color: #d97604;
  transform: translateY(-2px);
}
/**************************/
/*Menu cuando abre session*/
/**************************/
.colderecho{
  margin: -230px 40px 10px auto;
}

.elmenu{
  width: 250px;
}

.img-circle{
  max-width: 50px;
  height: 40px;
  margin-top: -4px;
  margin-left: 10px;
}

/* =============================================
   MENÚ CUANDO EL USUARIO HA INICIADO SESIÓN
   ============================================= */

#menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-items {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

#menu ul {
  display: flex;
  align-items: center;
  background: #F28705;
  border-radius: 50px;
  padding: 6px 12px;
  list-style: none;
  margin: 0;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

#menu li {
  margin: 0;
}

#menu a {
  display: block;
  padding: 8px 14px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 30px;
  transition: all 0.3s ease;
}

#menu a:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.notification-container {
  position: relative;
  padding: 8px 12px;
  color: #fff;
}

.notification-counter {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff0000;
  color: white;
  font-size: 11px;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.btn-salir {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F28705;
}

.menu-user a {
  display: flex;
  align-items: center;
}

.btn-salir:hover {
  background: #F28705; /* mantiene el naranja */
  filter: brightness(1.1); /* efecto visual elegante */
}

#menu .btn-salir:hover {
  background: #F28705 !important;
}


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

  #menu a {
    padding: 0px 14px;
  }
 .menu-items a {
    font-size: 11px;
    padding: 5px 8px;
  }

  .menu-user .btn-salir {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    font-size: 0;
    position: relative;
  }

  .menu-user .btn-salir::after {
    font-size: 16px;
    line-height: 1;
    color: #000;
  }

  .btn-salir {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px; /* compacto */
  }

  .btn-salir i {
    margin: 8px 0px;
    line-height: 1;
    font-size: 18px;
  }

  .notification-counter {
    font-size: 18px;
    min-width: 14px;
    height: 14px;
  }

  .btn-salir {
    font-size: 0;
  }

 .btn-salir .txt-salir {
    display: none;
  }

}

@media (max-width: 576px) {

  #menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .menu-items {
    display: flex;
    flex: 1;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 6px 10px;
    background: #F28705;
    border-radius: 50px;

    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .menu-items::-webkit-scrollbar {
    display: none;
  }

  .menu-items li {
    flex-shrink: 0;
  }

  .menu-items a {
    white-space: nowrap;
    font-size: 12px;
    padding: 6px 10px;
  }

  .menu-user {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .menu-user .btn-salir {
    font-size: 11px;
    white-space: nowrap;
  }

  .img-circle {
    width: 36px;
    height: 36px;
  }

  .usuario, .navbar, .link {
    display: none;
  }

  .headerppal {
    flex-wrap: wrap;
    padding: 8px 10px;
  }

  .columncb {
    flex-basis: 100%;
    text-align: center;
  }

  .flex-container-logo {
    width: 150px;
  }

  .logo img {
    max-width: 140px;
    height: auto;
  }

  .colmediox {
    display: none;
  }

  .accionusuario {
    width: 190px;
    margin: 0px 100px 0px 2px;
    font-size: 14px;
  }

  .flex-container-inout {
    display: flex;
    width: 100%;
  }

  .proveedor-btn {
    padding: 8px 5px;
    font-size: 12px;
  }

  .search-section {
    width: 100%;
    background-color: #038C8C;     /* por si acaso */
  }

  .fotofondo {
    height: 76px;
  }

  #servicios-list {
    width: 320px;
  }

  #modalRegistro .modal-content {
    margin: 10px;
    width: 95%;
  }

  #modalRegistro .close {
    top: 0px;
    right: 0px;
  }

  #modalRegistro form {
    padding: 20px 15px;
  }

  .iniciarsesion img,
  .accesobtn img {
    max-width: 90px;
  }

  .notification-counter {
    font-size: 10px;
    min-width: 16px;
    height: 16px;
  }

}

/* Animación suave para cambio de pasos */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
