.andoaqui-login-registro,
.andoaqui-dashboard {
  max-width: 400px;
  margin: 20px auto;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #f9f9f9;
}

.andoaqui-login-registro h2,
.andoaqui-dashboard h2 {
  margin-top: 0;
}

.andoaqui-login-registro input[type="text"],
.andoaqui-login-registro input[type="email"],
.andoaqui-login-registro input[type="password"] {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
}

.andoaqui-login-registro button {
  width: 100%;
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.andoaqui-login-registro button:hover {
  background: #005177;
}


.content-botones_usuario {
    margin-top: 10px;
    flex: 1;
    align-items: end;
    display: flex;
    gap: 10px;
}

/*dashboard*/


.agregar-comercio{
  display: flex;
  cursor: pointer;
  padding: 8px;
  background: #0073aa;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  color: #fff;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.agregar-comercio:hover{
  background-color: #007bff;
}

.andoaqui-profile-sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 280px;
    text-align: center;
    position: relative;
    flex: 1;
}

.andoaqui-profile-picture {
    position: relative;
}

.andoaqui-profile-picture img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
        transition: opacity 0.3s;

}

.andoaqui-profile-picture:hover img {
    opacity: 0.5;
    
}

.edit-icon {
    position: absolute;
    bottom: 50%;
    right: 50%;
    transform: translate(50%, 50%);
    background: #000;
    color: #fff;
    border-radius: 50%;
    padding: 5px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    height: 40px;
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;

}


.andoaqui-profile-picture:hover .edit-icon {
    opacity: 1;
}

.andoaqui-profile-info {
    margin-top: 15px;
    text-align: left;
}

.profile-field {
    display: flex;
    align-items: center;
    margin: 10px 0;
    cursor: pointer;
    transition: color 0.3s;
}

.profile-field i {
    margin-right: 10px;
    color: #555;
}

.profile-field span {
    flex: 1;
}

.profile-field:hover {
    color: #0073aa;
}

.logout-btn {
    display: inline-block;
    margin-top: 20px;
    background: #d70000;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
}

.logout-btn:hover{
  background-color: #fa5050;
  color: #fff;
}

.button{
  transition: all ease-in-out 0.2s;
}

.button.button-primary{
  background-color: #0073aa;
  color: #fff;
  border: solid 1px #0073aa;
  line-height: normal;
  padding: 8px 16px;
  border-radius: 8px;

}

.button.button-primary:hover{
    background-color: #1498d6;

}

.button.button-secundary{
  background-color: #fff;
  color: #0073aa;
  border: solid 1px #0073aa;
  line-height: normal;
  padding: 8px 16px;
  border-radius: 8px;
}

.button.button-secundary:hover{
  color: #1498d6;
  border-color: #1498d6;


}

.edit-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.edit-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-height: 100%;
    overflow: overlay;
    position: relative;
}

.success-msg {
    color: green;
}



#nuevoComercioModal {
  display: none;
  /* tu estilo del modal */
}
#nuevoComercioModal.active {
  display: flex;
}


.modal.active{
  display: flex!important;
}



.modal-edit{
  justify-content: center;
  align-items: center;
  background-color: rgba(0,0,0,0.3);
  padding: 10px;
}
/*
loader
*/


/* Loader básico */
.spinner {
  font-weight: bold;
  color: #333;
  font-size: 1.2em;
}




.close-modal {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}
.close-modal:hover {
  color: #000;
}


.container-dashboard_user{
  display: flex;
  gap: 8px;
  align-items: flex-start;
}



.andoaqui-dashboard-content{
  flex: 1;
  background-color: #fff;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  width: 100%;

}
.head-dash_cont{
  display: flex;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
}


/*grid para comercios */

.andoaqui-comercios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 0;
}

/* Tarjeta individual del comercio */
.comercio-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 8px;
}

.comercio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Imagen destacada */
.comercio-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 8px;
}

.comercio-card p{
  margin-bottom: 8px;
}

/* Nombre y descripción */
.comercio-nombre {
  font-size: 1.1rem;
  margin: 0.8rem 1rem 0.4rem;
  color: #333;
  font-weight: 600;
}

.comercio-descripcion {
  font-size: 0.9rem;
  margin: 0 1rem 1rem;
  color: #666;
  flex-grow: 1;
}

/* Botón de ver más */
.btn-detalles {
  display: inline-block;
  margin: 0 1rem 1rem;
  padding: 0.5rem 1rem;
  background: #007bff;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.btn-detalles:hover {
  background: #0056b3;
}

/* Responsive tweaks (opcional) */
@media (max-width: 768px) {
  .comercio-card img {
    height: 160px;
  }
}

@media (max-width: 568px) {
  .andoaqui-profile-sidebar{
    width: 100%;
    max-width: 100%;
  } 
  .container-dashboard_user{
    flex-direction: column;
  }
}




.botones-accion {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.boton-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.5rem 0.8rem;
  text-decoration: none;
  background-color: #0073aa; /* azul WP */
  color: #fff;
  border-radius: 0.3rem;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.boton-action:hover {
  background-color: #005a8c;
}

.boton-action i {
  font-size: 1rem;
}


#loadingMessage{
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255,255,255,0.7);
  justify-content: center;
  align-items: center;
  display: flex;
  color: #0056b3;
  font-weight: bold;
}